You may not want to do that. It is technically possible but possibly bad
programming practice to reference your UI elements from your classes.
Instead it is better to have the code in your classes UI independent.
Therefore, I would recommend referencing your class from your UI instead and
calling methods of your class passing information from the form. For example:
'*** In form load event create the class
MyClass = New MyClass
'*** In a button click or some other UI event handler call the method on
'*** the class passing the data from the form.
MyClass.DoSomething(txtTextBox.Text)
"Ithaqua" wrote:
Could you show me how to do that?
Cheers
Ithaqua
--
Cheers
Ithaqua
"Herfried K. Wagner [MVP]" wrote:
"Ithaqua" <It*****@discussions.microsoft.com> schrieb:I have a form created in the IDE and I want to access a combo bix control
on
this from. How do I do it?
You may want to pass a reference pointing to the form's instance to the
class.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>