anyone got some ideas how to dock forms? up/down,side/side
Printable View
anyone got some ideas how to dock forms? up/down,side/side
you mean minimize it?
Check out the SHAppBarMessage Api, there are some examples here on VBworld also.
no actually i mean like winamp playlist docks to winamp similiar to this
I don't know of another way, so here goes:
to dock 2 forms to eachother, write code in the Form_Resize() events to keep them together
in the otherform do something similar.Code:Private Sub Form_Resize()
me.top=otherform.top+otherform.height+someoffset
me.left=otherform.left
End Sub
that depends on how exacly you want to dock them, in this case Me would be docked to Otherform's lower edge.
Gerco.