Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15578

VS 2015 RightToLeft Alignment dosn't work when assigned to (Application Settings)

$
0
0
On my form there are two textboxes called (Subject1) & (detail1)
When using the flowing code without assigning the them to (Application Settings) they work fine and I can set them at run time to left or right. But after assigning them to (Application Settings) the don't seem to be responding to the button click.

Code:

Private Sub Button9_Click(sender As Object, e As EventArgs) Handles Button9.Click
        Subject1.RightToLeft = RightToLeft.Yes
        Subject1.TextAlign = HorizontalAlignment.Right
        Detail1.RightToLeft = RightToLeft.Yes
        Detail1.TextAlign = HorizontalAlignment.Right
    End Sub

Private Sub Button8_Click(sender As Object, e As EventArgs) Handles Button8.Click
        Subject1.RightToLeft = RightToLeft.No
        Subject1.TextAlign = HorizontalAlignment.Left
        Detail1.RightToLeft = RightToLeft.No
        Detail1.TextAlign = HorizontalAlignment.Left
    End Sub

I don't know what exactly is going on ?!!

Viewing all articles
Browse latest Browse all 15578

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>