Hi all,

In my program, when my program is running, enduser can press a button to
create another "command button".

And now I have a problem of create a "command button" with coding in that
"Click event method" at the same time in the above situation.

--
Thanks !

Re: How to write click event by Stefan

Stefan
Fri Mar 24 03:22:14 CST 2006


"·s¥J" <abc@xyz.com> schrieb im Newsbeitrag news:uInuyMyTGHA.1204@TK2MSFTNGP12.phx.gbl...
> Hi all,
>
> In my program, when my program is running, enduser can press a button to create another
> "command button".
>
> And now I have a problem of create a "command button" with coding in that "Click event
> method" at the same time in the above situation.

You cannot add a method at runtime - typically you'd use a myButtonClass
instead of the base class, containing pre-defined Click code.
Other options might be BindEvent() or ExecScript()


hth
-Stefan



--
|\_/| ------ ProLib - programmers liberty -----------------
(.. ) Our MVPs and MCPs make the Fox run....
- / See us at www.prolib.de or www.AFPages.de
-----------------------------------------------------------



Re: How to write click event by ·s¥J

·s¥J
Fri Mar 24 03:32:09 CST 2006

thanks for your reply!

--
Thanks !


"Stefan Wuebbe" <stefan.wuebbe@gmx.de> ¼¶¼g©ó¶l¥ó·s»D:%23ahSGSyTGHA.5924@TK2MSFTNGP09.phx.gbl...
>
> "·s¥J" <abc@xyz.com> schrieb im Newsbeitrag
> news:uInuyMyTGHA.1204@TK2MSFTNGP12.phx.gbl...
>> Hi all,
>>
>> In my program, when my program is running, enduser can press a button to
>> create another "command button".
>>
>> And now I have a problem of create a "command button" with coding in that
>> "Click event method" at the same time in the above situation.
>
> You cannot add a method at runtime - typically you'd use a myButtonClass
> instead of the base class, containing pre-defined Click code.
> Other options might be BindEvent() or ExecScript()
>
>
> hth
> -Stefan
>
>
>
> --
> |\_/| ------ ProLib - programmers liberty -----------------
> (.. ) Our MVPs and MCPs make the Fox run....
> - / See us at www.prolib.de or www.AFPages.de
> -----------------------------------------------------------
>
>



Re: How to write click event by Olaf

Olaf
Fri Mar 24 06:23:08 CST 2006


> In my program, when my program is running, enduser can press a button to
> create another "command button".
You could instead already have that button on the form invisible
and, instead of creating it, make it visible. Use the Visible property.

Bye, Olaf.



Re: How to write click event by ·s¥J

·s¥J
Fri Mar 24 07:20:23 CST 2006

Hi Olaf.Doschke,

Thanks for you reply!

I have add column to grid, and modify the column right click method. thanks!

--
Thanks !


"Olaf.Doschke" <b2xhZi5kb3NjaGtlQHNldG1pY3MuZGU@strconv.14.de> ¼¶¼g©ó¶l¥ó·s»D:OUsgC3zTGHA.4436@TK2MSFTNGP10.phx.gbl...
>
>> In my program, when my program is running, enduser can press a button to
>> create another "command button".
> You could instead already have that button on the form invisible
> and, instead of creating it, make it visible. Use the Visible property.
>
> Bye, Olaf.
>