Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting a Dialog Box to show where I want it to.
Message
From
29/01/2009 13:53:59
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
29/01/2009 13:19:37
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
01378200
Message ID:
01378210
Views:
19
>I have a Windows Form, that has a Panel, that has a textbox/button combo on it. When I click the button, I'd like a search window to popup right next to the Textbox. I'm not really sure how to reference the location so that I can achieve this. I've tried the following code in the click event of the button, but it doesn't do seem anything.
>
>SearchPopUp.Location = this.Location;
>
>Any ideas? Thanks!!
>
>bob
One of the ways I do this kind of thing is to have this function actually on the form as another panel but behind a different panel with other controls and maybe not visible. Then I either make it visible and bring to the front or just bring to the front. I also have a switchable controler class that lets me switch out controls on the form. If you want it to be a seperate form that pops up like you show then it would seem setting the location would work if it is contained inside something to reference from. Are your forms contained inside a MIDI form?
Tim
Timothy Bryan
Previous
Reply
Map
View

Click here to load this message in the networking platform