I wan开发者_JS百科t to be able to access whatever Form hosts my control within the code of my Control, so like:
myControl.ParentForm
Is this possible? If so, how?
You can use the FindForm
method of the control:
Form parent = myControl.FindForm();
I wan开发者_JS百科t to be able to access whatever Form hosts my control within the code of my Control, so like:
myControl.ParentForm
Is this possible? If so, how?
You can use the FindForm
method of the control:
Form parent = myControl.FindForm();
识句义的意思是什么?:下一篇
精彩评论