very very very newbie and easy

J

Josema

Hi to all...
I have a little question...

I have a webform for one hand
this webform its empty...

For other hand i have a class that creates a TexTBox and
a button (this class inherits from webcontrol),then i
compiled this class and there is a dll result, ok...

I put in the toolbox this dll (the control), and i drag
and drop into my webform...

I would like to know how can i make this:

-When i click the button, i want that shows in the page
the text of the textbox

Thanks In advance...
Best Regards.
Josema
 
F

Frank Oquendo

Josema said:
-When i click the button, i want that shows in the page
the text of the textbox

Double-click the button. This will generate an event handler stub for
you. In that stub, enter something similar to the following:

Label1.Text = TextBox1.Text;

Of course, there needs to be a Label1 and TextBox1 control.

--
There are 10 kinds of people. Those who understand binary and those who
don't.

http://code.acadx.com
(Pull the pin to reply)
 
J

Josema

Thanks frank, but i cant make double click into the
textbox, cause i have in the GUI mi control, but its in
execution time when this control generate the textbox and
the button...

Do you know another method to do that...

Thanks Frank.
Kind Regards.
Josema.
 
F

Frank Oquendo

Josema said:
Do you know another method to do that...

No problem:

myButton.Click += new EventHandler(<nameOfEventHandlerMethod>);

--
There are 10 kinds of people. Those who understand binary and those who
don't.

http://code.acadx.com
(Pull the pin to reply)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top