View previous topic :: View next topic |
Author |
Message |
jicman
Joined: 22 Dec 2004 Posts: 298 Location: Rochester, NY
|
Posted: Fri Feb 12, 2010 12:01 am Post subject: Bringing a form to the front |
|
|
Greetings.
I have a form that contains a group and that group contains objects. If the form is behind another program, say, Notepad, when I click on the form in anything but the group, it brings the form to the front, but if I click on any part of the group, the form does not come to the front and it stays behind Notepad. I tried doing a quick click event,
Code: |
DetailsGroup.click ~= &DetailsGroup_click;
protected void DetailsGroup_click(Object sender, EventArgs ea)
{
DetailsGroup.bringToFront();
LSOpenProjs.bringToFront();
}
|
but this is not working. Any help would be greatly appreciated.
thanks,
iose |
|
Back to top |
|
|
Chris Miller
Joined: 27 Mar 2004 Posts: 514 Location: The Internet
|
Posted: Tue Feb 16, 2010 11:09 pm Post subject: Re: Bringing a form to the front |
|
|
I'm not sure why exactly, but it might have to do with the win32 window styles or extended window styles, or WM_NCHITTEST. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|