hello people,

I would like to position my text boxes using code. the anchor property is a bit limited. could someone help me on how to achieve that.

thanks.

You can use somezhing like this (.NET Framework 4.5):

 TextBox1.Location = New Point(15, 15)

or you can use the top and left properties:

TextBox1.Top = 100
TextBox1.Left = 30
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.