HI, I'm making a program that i need to dock to the side of my desktop. Only thing is i don't know how the hell to do this!!! I found info on docking in an MDI window but not in explorer!!! Can n e 1 pls help???
THX :รพ
Printable View
HI, I'm making a program that i need to dock to the side of my desktop. Only thing is i don't know how the hell to do this!!! I found info on docking in an MDI window but not in explorer!!! Can n e 1 pls help???
THX :รพ
you need a timer(timer1) in this example:
If you try to dock it to the bottom of the screen, the taskbar kind gets in the way.Code:Private Sub Form_Load()
Timer1.Interval = 50
End Sub
Private Sub Timer1_Timer()
Dim Spce&
Spce = 500 'change that to change how far away the window can be before
'it gets docked
If Me.Left < Spce Then Me.Left = 0
If Me.Top < Spce Then Me.Top = 0
If Me.Left + Me.Width > Screen.Width - Spce Then Me.Left = Screen.Width - Me.Width
If Me.Top + Me.Height > Screen.Height - Spce Then Me.Top = Screen.Height - Me.Height
End Sub
Thank u v.much! thats helped alot!
I can now do that in my messenger project. Thanx again!
there is a class that does a better (more windows like job of docking) avalible at www.vbaccelerator.com that lets you dock a window just like the task bar!!!!