User Control (WinForm)

  • Thread starter Thread starter Xaz
  • Start date Start date
X

Xaz

Hi, if in a User Control I have a button, this User Control I add it to a
Form which has a Textbox, when doing click in the button i want to complete
the textbox, how to? Greetings.
 
Xaz,

Why not include the textbox in your user control as well, and then you
will have access to it and can change it.

Hope this helps.
 
Nicholas:
I am using example OLAF (Outlook 2003 Look and Feel), and uses "user
control" to create menu of the left and not know how to communicating from
the user control the click of the button to the main form.

Nicholas Paldino said:
Xaz,

Why not include the textbox in your user control as well, and then you
will have access to it and can change it.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Xaz said:
Hi, if in a User Control I have a button, this User Control I add it to a
Form which has a Textbox, when doing click in the button i want to
complete the textbox, how to? Greetings.
 
http://www.akadia.com/services/dotnet_user_controls.html

Xaz said:
Nicholas:
I am using example OLAF (Outlook 2003 Look and Feel), and uses "user
control" to create menu of the left and not know how to communicating from
the user control the click of the button to the main form.

Nicholas Paldino said:
Xaz,

Why not include the textbox in your user control as well, and then you
will have access to it and can change it.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Xaz said:
Hi, if in a User Control I have a button, this User Control I add it to
a Form which has a Textbox, when doing click in the button i want to
complete the textbox, how to? Greetings.
 
Back
Top