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.
I don't know what exactly is going on ?!!
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