Popup Control
Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=8059
Printed Date: 11 May 2024 at 12:35pm Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com
Topic: Popup Control
Posted By: OscarM
Subject: Popup Control
Date Posted: 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
|
Replies:
Posted By: OscarM
Date 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
|
Posted By: Oleg
Date 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
|
Posted By: OscarM
Date Posted: 04 October 2007 at 11:44am
|