move textbox or label controls to specific XY location
Posted on 2006-06-14
I have a form that I want to format upon loading.
What i need is code to move textbox and label controls to certain xy positions on the form.
it may be so simple i just missed it, i tried
textbox.Location.X = myX1
textbox.Location.Y = myY1
but when build i get the following error:
"Expression is a value and therefore cannot be the target of an assignment."
Any help would be greatly appreciated.