![]() |
Popup Control |
Post Reply
|
| Author | |
OscarM
Groupie
Joined: 07 November 2005 Status: Offline Points: 72 |
Post Options
Thanks(0)
Quote Reply
Topic: Popup ControlPosted: 18 September 2007 at 3:28am |
|
It is possible to show the Popup control without having to show a form? I need to have calls to the control encapsulated, since I reuse it from several points of my project
Note: VS2005 |
|
![]() |
|
OscarM
Groupie
Joined: 07 November 2005 Status: Offline Points: 72 |
Post Options
Thanks(0)
Quote Reply
Posted: 03 October 2007 at 6:29am |
|
Please, help. With VB6 this is possible, but i dont know how to do it with VS2005
Thanks |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 03 October 2007 at 2:15pm |
|
Hi,
Here C# code:
static class PopupControl{ static Panel popupHost = null; static public void Show(){ AxXtremeSuiteControls.AxPopupControl axPopupControl1; if (popupHost == null){ popupHost = new Panel(); popupHost.CreateControl();axPopupControl1 = new AxXtremeSuiteControls.AxPopupControl(); (( System.ComponentModel.ISupportInitialize)(axPopupControl1)).BeginInit(); popupHost.Controls.Add(axPopupControl1);(( System.ComponentModel.ISupportInitialize)(axPopupControl1)).EndInit();} else{ axPopupControl1 = popupHost.Controls[0] as AxXtremeSuiteControls.AxPopupControl;} axPopupControl1.ShowDelay = 1000; axPopupControl1.Show();} }; usage: private void button1_Click(object sender, EventArgs e) { PopupControl.Show();} |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
OscarM
Groupie
Joined: 07 November 2005 Status: Offline Points: 72 |
Post Options
Thanks(0)
Quote Reply
Posted: 04 October 2007 at 11:44am |
|
perfect, thanks
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |