Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting a Dialog Box to show where I want it to.
Message
De
29/01/2009 13:53:59
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
29/01/2009 13:19:37
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
01378200
Message ID:
01378210
Vues:
13
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform