MrSco...@gmail.com
unread,Jun 10, 2008, 3:26:11 AM6/10/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Hi,
Thanks for your response. It was kind of you.
But call to the handler is not raising event. My statement was I want
to raise event i.e. button automatically calls handler once I raise
event on that button. Just wondering if it is possible to raise events
on the controls.
I feel my example previously was not good enough to make it clear as
to what exactly i want. Let me explain the exact scenario as to why I
need raising event.
I have developed a custom button control which is derived from Control
class. My control fires click event upon clicking but I also want to
fire click event when user presses enter or space key on that
control.
Currently I have solved my problem by implementing my own event
ButtonClick, which I fire each time when someone clicks or presses
space or enter key. But I don't want two events like Click or
ButtonClick, I just want one event and that is Click event, which is
the already there in Control class. How to fire that event of that
super class upon keypress?
Thanks in Advance.
Happy Programming!
Adeel.
On Jun 9, 10:27 pm, "Andrew Badera" <
and...@badera.us> wrote:
> Just call the handler and pass it the appropriate references. Yes, it really
> is just that easy.
>
> On Mon, Jun 9, 2008 at 3:22 AM,
mrscorp...@gmail.com <
MrScorp...@gmail.com>
> wrote:
>
>
>
> > Hi All,
>
> > I want to know, if there is any way to raise an event of a standard
> > control programmatically. Scenario is that I want to raise the click
> > event of a button control upon changing the text of a text box
> > control. How can I do that?
>
> > Thanks in Advance.
> > Happy Programming!
> > Adeel.
>
> --
> --
> --Andy Baderahttp://higherefficiency.nethttp://
flipbitsnotburgers.blogspot.com/http://andrew.badera.us/http://changeroundup.com/