|
-
Jun 6th, 2006, 08:53 PM
#1
Thread Starter
PowerPoster
[RESOLVED] Custom form drag-bar
Is there a way, if I set form-borderstyle to none, to put (for instance) a label or image at the top (or anywhere, for that matter) and make it control the form's location on-screen?
I can imagine an "on mousedown" event that notes the location which was clicked and if mouse moves form's top/left moves accordingly, but I don't know if I could write code that could handle this efficiently enough.
Also, could I do something like this on a form that is *embedded* within another form. I am currently thinking about designing a Windows 3.11 *style* OS (you know, just trying to build a basic OS look with functional design) in VB as a form with embedded forms within...I will of course only go as far as I feel I am able with a project like ths, so if it's a lot of work to do all the embedding and such I won't bother :-)
I know that certain aspects of VB allow for drag and drop, but that's not really what I am trying to do...I don't think, anyway...this is going to be a pet project of mine and mostly a playaround to see what I can achieve on my own and with help :-)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|