C
Casper
Hi .Net experts,
I am trying to build a user control of textbox and would like to add a
public method to the object like
public void CheckOptions(string str)
{
// codes here
}
So over the WinForm, I would expect the following to work
txtMane.CheckOptions("Hello"); //txtMane is the reference to the user
control
But it does not. How can I make it happen?
Thanks
Casper
I am trying to build a user control of textbox and would like to add a
public method to the object like
public void CheckOptions(string str)
{
// codes here
}
So over the WinForm, I would expect the following to work
txtMane.CheckOptions("Hello"); //txtMane is the reference to the user
control
But it does not. How can I make it happen?
Thanks
Casper