| | |
Snapping Forms together
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
Hey everyone, I am currently making a Media player project and so far it is going really well. It is pretty much a combination of WMP, Itunes and Winamp and everything is working so far apart from one thing I want to include in the program.
I tried looking for solutions but got no where. I basically currently got 2 forms. One form is the main player and one is a playlist form.
What I want is when I click a lock button on the playlist it will snap the two forms together. Aswell as this I want it so it stays locked even when I move the player form around. I have the moving code working.
Because I can't really explain it I drew a (really) rough diagram of what I want to achieve:
http://img178.imageshack.us/img178/4817/lockgt2.png
does anyone have a idea how I can achieve this?
I tried looking for solutions but got no where. I basically currently got 2 forms. One form is the main player and one is a playlist form.
What I want is when I click a lock button on the playlist it will snap the two forms together. Aswell as this I want it so it stays locked even when I move the player form around. I have the moving code working.
Because I can't really explain it I drew a (really) rough diagram of what I want to achieve:
http://img178.imageshack.us/img178/4817/lockgt2.png
does anyone have a idea how I can achieve this?
Try
VB.NET Syntax (Toggle Plain Text)
'In the forms event (Me.Move) of Form1 If Locked = True Then 'Locked as Boolean (Global) Form2.Left = Me.Left + Me.Width Form2.Top = Me.Top End If
![]() |
Other Threads in the VB.NET Forum
- Previous Thread: problem saving image into mysql database
- Next Thread: DataGridView integer problem?
| Thread Tools | Search this Thread |
.net .net2008 2005 2008 access account arithmetic array basic beginner bing browser button buttons center check code crystalreport cuesent data database datagrid datagridview date datetimepicker designer dissertation dissertations dissertationtopic dropdownlist excel fade file-dialog filter forms ftp generatetags google hardcopy html images input insert intel internet mobile monitor net networking objects open output panel passingparameters pdf picturebox picturebox1 port position print printing problem project save searchbox searchvb.net select serial settings shutdown soap sqlserver survey table tcp temperature text textbox timer timespan toolbox transparency trim update user vb vb.net vb.netformclosing()eventpictureboxmessagebox vb2008 vba vbnet visual visualbasic.net visualstudio.net visualstudio2008 web winforms wpf wrapingcode year





