Closing Inherited User Control [Win C#]

  • Thread starter Thread starter MikeY
  • Start date Start date
M

MikeY

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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top