|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Knowing window handle from an control itselfHi!
I am writing a custom control. Is there a way for my control to refer to the form (that hosted this control) handle programmatically? What I wanted to do is to set form property when the control properties changes. How could I refer to form during design time when the form is unknown? Is there something like : ContainerForm.Height = 50 ? Thanks Bob <qing***@gmail.com> schrieb:
> I am writing a custom control. Is there a way for my control to refer Check out the control's 'FindForm' method.> to the form (that hosted this control) handle programmatically? -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> Herfried K. Wagner [MVP] wrote:
> <qing***@gmail.com> schrieb: Thanks. Never thought that the solution is that simple. 8-)> > I am writing a custom control. Is there a way for my control to refer > > to the form (that hosted this control) handle programmatically? > > Check out the control's 'FindForm' method. > > -- > M S Herfried K. Wagner > M V P <URL:http://dotnet.mvps.org/> > V B <URL:http://classicvb.org/petition/>
Common VB nomenclature
Thread issue ?? Data in datagridview from a text file Working with multiple displays referencing cells in Excel and finding empty cells Access to Access Database Need I internet programming with Socket? ASP.net - GridView create registry value - bug in VS? ActiveX can't creat object? |
|||||||||||||||||||||||