Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Movable screen objects

Status
Not open for further replies.

mushin

Programmer
Oct 4, 2000
49
I am rewriting an existing app from another language to vb.net.
It is basically a form designer for user defined forms.

The old app allows the user to select and move the screen objects,(textbox, combobox, etc) to new locations
and then stores the coordinates to a database table.

The objects have properties like "selectable" resizable, etc,to facilitate this activity.

Are there equivalent properties in vb.net screen objects to allow this type of activity?

I see "locked" but that is about it.


Any clues?


 
Create your own user control, inherited from TextBox or ComboBox etc., and just add your own properties such as Selectable, Resizable etc.


Hope this helps.

[vampire][bat]
 
Thanks, but not really.

The key here is how do you manipulate the position of
a screen object via the mouse?

In Progress(the old apps lang), if I set selectable and movable for a textbox, the I can, as a user), select and move that textbox to a new location.

If I create a new control in dotnet, then I still have to write those properties, but the question is how.

Do I trap the mouse coordinates and pro grammatically
reassign the location?


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top