J
JMUApache
Hi,
A have a problem with Inhreit Control.
I try to Change its Size in Construct Function, And it works.
Code Here:
--------------------------------------------------
public class UserControl:TextBox
{
public UserControl()
{
this.Size = new Size (100, 100);
}
}
--------------------------------------------------
And then I try to Change it's Location, but it won't work.
Code Here:
--------------------------------------------------
public class UserControl:TextBox
{
public UserControl()
{
this.Location = new Point (100, 100);
}
}
--------------------------------------------------
What can I do if I want to change the Control's Location by the
Control itself?
Any help would be appreciate!
Thanks
chen
A have a problem with Inhreit Control.
I try to Change its Size in Construct Function, And it works.
Code Here:
--------------------------------------------------
public class UserControl:TextBox
{
public UserControl()
{
this.Size = new Size (100, 100);
}
}
--------------------------------------------------
And then I try to Change it's Location, but it won't work.
Code Here:
--------------------------------------------------
public class UserControl:TextBox
{
public UserControl()
{
this.Location = new Point (100, 100);
}
}
--------------------------------------------------
What can I do if I want to change the Control's Location by the
Control itself?
Any help would be appreciate!
Thanks
chen