FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Bringing a form to the front

 
Post new topic   Reply to topic     Forum Index -> DFL
View previous topic :: View next topic  
Author Message
jicman



Joined: 22 Dec 2004
Posts: 298
Location: Rochester, NY

PostPosted: Fri Feb 12, 2010 12:01 am    Post subject: Bringing a form to the front Reply with quote

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
View user's profile Send private message
Chris Miller



Joined: 27 Mar 2004
Posts: 514
Location: The Internet

PostPosted: Tue Feb 16, 2010 11:09 pm    Post subject: Re: Bringing a form to the front Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> DFL All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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