By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,465 Members | 1,463 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,465 IT Pros & Developers. It's quick & easy.

Closing Inherited User Control [Win C#]

P: n/a
Hi Everyone,

I'm trying to figure out how to close my inherited user control
(myKeyBoard). My Code is as follows for calling my control:

HOST.I_Ctrl_KeyBoard myKeyBoard= new HOST.I_Ctrl_KeyBoard();
myKeyBoard.Location = new System.Drawing.Point(275, 305);
myKeyBoard.Parent = this;
myKeyBoard.BringToFront();
myKeyBoard.Show();

All works fine to get my keyboard up and running. But I can't seem to close
this control from either my control or from the frmOrderScreen.cs. I've also
been trying to accomplish this through delegates, but that seems the wrong
direction. Any suggestions. If I need to pass something back to
frmOrderScreen.cs what way should I be doing this?

Been racking my brain all night, soooo any and all help is appreciated.

Thanks in advance,

MikeY
May 17 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
PS. If I can't use delagates for my Inherited User Control, they how should
I go about passing my selected data back to the parent??

MikeY
"MikeY" <mi*******@yaho.com> wrote in message
news:By*******************@news20.bellglobal.com.. .
Hi Everyone,

I'm trying to figure out how to close my inherited user control
(myKeyBoard). My Code is as follows for calling my control:

HOST.I_Ctrl_KeyBoard myKeyBoard= new HOST.I_Ctrl_KeyBoard();
myKeyBoard.Location = new System.Drawing.Point(275, 305);
myKeyBoard.Parent = this;
myKeyBoard.BringToFront();
myKeyBoard.Show();

All works fine to get my keyboard up and running. But I can't seem to
close this control from either my control or from the frmOrderScreen.cs.
I've also been trying to accomplish this through delegates, but that seems
the wrong direction. Any suggestions. If I need to pass something back to
frmOrderScreen.cs what way should I be doing this?

Been racking my brain all night, soooo any and all help is appreciated.

Thanks in advance,

MikeY

May 17 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.