G
Guest
hi,guys
I am confused about Control component 's property
What is the diffenent between ClientSize and Size?
I want to create a customer Panel.
for example:
public calss myPanelanel
{
public myPanel()
{
CheckBox cb = new CheckBox();
cb.location = new Point(0,0);
ComboBox cbb = new ComboBox();
//here if I use new Point(cb.Size.Width,0)
//I can not see comboBox, it is covered by CheckBox
//When I watch the cb.Size and ClientSize;
//it is not same.the ClientSize.Width is much more bigger than Size.Width
cbb.location = new Point(cb.ClientSize.Width,0);
Add(cb);
Add(cbb);
}
}
Thanks
I am confused about Control component 's property
What is the diffenent between ClientSize and Size?
I want to create a customer Panel.
for example:
public calss myPanelanel
{
public myPanel()
{
CheckBox cb = new CheckBox();
cb.location = new Point(0,0);
ComboBox cbb = new ComboBox();
//here if I use new Point(cb.Size.Width,0)
//I can not see comboBox, it is covered by CheckBox
//When I watch the cb.Size and ClientSize;
//it is not same.the ClientSize.Width is much more bigger than Size.Width
cbb.location = new Point(cb.ClientSize.Width,0);
Add(cb);
Add(cbb);
}
}
Thanks