I am using a For-Next loop through all panel controls to print out a screen. I have everything working except the alignment of the text within the label.
Does anyone know how to obtain the text alignment property of a Label control?
That definitely works while you are creating the Label and want to set the alignment. I am, however, trying to get the text alignment of a Label that has already been created. There is no such property as textalign on the control.
For example, here is a sample line for how I get the starting X location of the already created Label:
Dim labelLocationX As Integer = ctl.Location.X
Nothing similar seems to exists to get the Text Alignment of the Label.
Hi, I'm looking at the code that thatrickguy used in order to add functionality to a control. It may help me with what I'm doing.
I'm looking to be able to set the scroll position in a textbox. Unfortunately the textbox control does not include an .Autoscroll function which would let me set the x and y points. Any idea of how I could do this?
I ran into that same issue when I first started working with .Net. I think it might have been something as simple as setting the cursor position of the text box.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.