Hi,
I created a form called form1 with FormBorderStyle set to none and where on top there is a panel called TitlePanel in order to handle form1 moving.
With a ToolStripmenuItem I open a second form called form2:
When form2 is active, if I move mouse pointer on TitlePanel without clicking, form1 is activated and it brings to front instead of staying behind form2.
Meanwhile I want that form1 is activated only when I click with mouse on TitlePanel.
I believe that I have to handle TitlePanel.MouseHover on form1 but I don't know how to specify the form1 to stay behind form2
Thank in advanced
gio
I created a form called form1 with FormBorderStyle set to none and where on top there is a panel called TitlePanel in order to handle form1 moving.
With a ToolStripmenuItem I open a second form called form2:
Code:
...
dim myNewForm as new form2
myNewForm.Focus()
myNewForm.BringToFront()
myNewForm.activate()
myNewForm.Show()
Meanwhile I want that form1 is activated only when I click with mouse on TitlePanel.
I believe that I have to handle TitlePanel.MouseHover on form1 but I don't know how to specify the form1 to stay behind form2
Thank in advanced
gio