473,513 Members | 2,563 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with eventhandlers (!?)

I have a client server app. On the client i have buttons (derived from user
contol) that let user perform actions when they are connected to the server.
so when they connect (using a menuitem) i add event handlers to the buttons
and when they disconnect i remove them. Now, everything works fine when
they connnect for the first time. All of the msgs are sent propoerly by the
client. To figure out what button is click by the client i used the "Tag"
property rather than having a on click event for each of the buttons ( see
click event code).

However, if the following scenario occurs it goes through both msgs(like
kind of having two event handlers for button click being executed)
connect -> disconnect->connect.
can someone please tell me what could be worng? only think i can think
about is something to do with event handlers thats it :(
------------------------------------------
i am only adding handlers once with every connect msg as follows:
private void SetupFunctionButtons()
{
foreach(WACButton btn in Names)
{
btn.MouseHover +=new EventHandler(btn_MouseHover);
btn.MouseLeave +=new EventHandler(btn_MouseLeave);
btn.MouseEnter +=new EventHandler(btn_MouseEnter);
btn.MouseUp +=new MouseEventHandler(btn_MouseUp);
btn.MouseDown +=new MouseEventHandler(btn_MouseDown);
btn.Click +=new EventHandler(btn_Click);
}
btnEmpty1.ImageIndex = 1;
btnEmpty2.ImageIndex = 1;
}
------------------------------------------
I know i am removing all handlers every time they disconnect (b/c u can t
click or do anyting with the button)

private void RemoveFunctionButtons()
{
foreach(WACButton btn in Names)
{
btn.MouseHover -=new EventHandler(btn_MouseHover);
btn.MouseLeave -=new EventHandler(btn_MouseLeave);
btn.MouseEnter -=new EventHandler(btn_MouseEnter);
btn.MouseUp -=new MouseEventHandler(btn_MouseUp);
btn.MouseDown -=new MouseEventHandler(btn_MouseDown);
btn.Click -=new EventHandler(btn_Click);
}
}

------------------------------------------

private void btn_Click(object sender, EventArgs e)
{
Carets.HideCaret(this.Handle);
WACButton btn = (WACButton)sender;
btn.ImageIndex = 3;
Thread.Sleep(200);
string tag = ((WACButton)sender).Tag.ToString();
try
{
switch(tag)
{
case "dnd":
{
s.IRCConnection.SendMessage(string.Format("PRIVMSG {0} :DNDON
UN|{1}^",mIRCRoom,mMyInfo.Name));
btn.ButtonText = "Disable DND";
btn.Tag = "disablednd";
break;
}
case "disablednd":
{
s.IRCConnection.SendMessage(string.Format("PRIVMSG {0} :DNDOFF
UN|{1}^",mIRCRoom,mMyInfo.Name));
btn.ButtonText = "DND";
btn.Tag = "dnd";
break;
}

}//end case//
}
catch
{
return;
}
Carets.ShowCaret(this.Handle);
}
Nov 17 '05 #1
5 1428
Hi,

It's not clear to me why you add/remove the handlers, I would instead use a
flag to indicate if they should react to the events or not. In your case
even the Enabled/ property can be used.

If that is not enough, then create ONLY ONE isntance of each event and just
assign it as needed:

EventHandler m_mouseHover;

mouseHover = new EventHandler(btn_MouseHover);

// to hook
btn.MouseHover += mouseHover ;
// to unhook
btn.MouseHover -= mouseHover ;
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation


"Raj Chudasama" <ra*@asteriasgi.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
I have a client server app. On the client i have buttons (derived from
user contol) that let user perform actions when they are connected to the
server. so when they connect (using a menuitem) i add event handlers to the
buttons and when they disconnect i remove them. Now, everything works fine
when they connnect for the first time. All of the msgs are sent propoerly
by the client. To figure out what button is click by the client i used the
"Tag" property rather than having a on click event for each of the buttons
( see click event code).

However, if the following scenario occurs it goes through both msgs(like
kind of having two event handlers for button click being executed)
connect -> disconnect->connect.
can someone please tell me what could be worng? only think i can think
about is something to do with event handlers thats it :(
------------------------------------------
i am only adding handlers once with every connect msg as follows:
private void SetupFunctionButtons()
{
foreach(WACButton btn in Names)
{
btn.MouseHover +=new EventHandler(btn_MouseHover);
btn.MouseLeave +=new EventHandler(btn_MouseLeave);
btn.MouseEnter +=new EventHandler(btn_MouseEnter);
btn.MouseUp +=new MouseEventHandler(btn_MouseUp);
btn.MouseDown +=new MouseEventHandler(btn_MouseDown);
btn.Click +=new EventHandler(btn_Click);
}
btnEmpty1.ImageIndex = 1;
btnEmpty2.ImageIndex = 1;
}
------------------------------------------
I know i am removing all handlers every time they disconnect (b/c u can t
click or do anyting with the button)

private void RemoveFunctionButtons()
{
foreach(WACButton btn in Names)
{
btn.MouseHover -=new EventHandler(btn_MouseHover);
btn.MouseLeave -=new EventHandler(btn_MouseLeave);
btn.MouseEnter -=new EventHandler(btn_MouseEnter);
btn.MouseUp -=new MouseEventHandler(btn_MouseUp);
btn.MouseDown -=new MouseEventHandler(btn_MouseDown);
btn.Click -=new EventHandler(btn_Click);
}
}

------------------------------------------

private void btn_Click(object sender, EventArgs e)
{
Carets.HideCaret(this.Handle);
WACButton btn = (WACButton)sender;
btn.ImageIndex = 3;
Thread.Sleep(200);
string tag = ((WACButton)sender).Tag.ToString();
try
{
switch(tag)
{
case "dnd":
{
s.IRCConnection.SendMessage(string.Format("PRIVMSG {0} :DNDON
UN|{1}^",mIRCRoom,mMyInfo.Name));
btn.ButtonText = "Disable DND";
btn.Tag = "disablednd";
break;
}
case "disablednd":
{
s.IRCConnection.SendMessage(string.Format("PRIVMSG {0} :DNDOFF
UN|{1}^",mIRCRoom,mMyInfo.Name));
btn.ButtonText = "DND";
btn.Tag = "dnd";
break;
}

}//end case//
}
catch
{
return;
}
Carets.ShowCaret(this.Handle);
}

Nov 17 '05 #2
Hi, thanks for reply

thants what i am doing, i have one instance of each event. All buttons get
these events assigned to them. so use switch statement to figure out which
button was clicked. It works well, except the problem i stated. They are
basically disabled when they are not connected to the server, since there
are no event handlers assigned to them..

i will try some sort of flag.

thanks



"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> wrote
in message news:%2****************@tk2msftngp13.phx.gbl...
Hi,

It's not clear to me why you add/remove the handlers, I would instead use
a flag to indicate if they should react to the events or not. In your case
even the Enabled/ property can be used.

If that is not enough, then create ONLY ONE isntance of each event and
just assign it as needed:

EventHandler m_mouseHover;

mouseHover = new EventHandler(btn_MouseHover);

// to hook
btn.MouseHover += mouseHover ;
// to unhook
btn.MouseHover -= mouseHover ;
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation


"Raj Chudasama" <ra*@asteriasgi.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
I have a client server app. On the client i have buttons (derived from
user contol) that let user perform actions when they are connected to the
server. so when they connect (using a menuitem) i add event handlers to
the buttons and when they disconnect i remove them. Now, everything works
fine when they connnect for the first time. All of the msgs are sent
propoerly by the client. To figure out what button is click by the client
i used the "Tag" property rather than having a on click event for each of
the buttons ( see click event code).

However, if the following scenario occurs it goes through both msgs(like
kind of having two event handlers for button click being executed)
connect -> disconnect->connect.
can someone please tell me what could be worng? only think i can think
about is something to do with event handlers thats it :(
------------------------------------------
i am only adding handlers once with every connect msg as follows:
private void SetupFunctionButtons()
{
foreach(WACButton btn in Names)
{
btn.MouseHover +=new EventHandler(btn_MouseHover);
btn.MouseLeave +=new EventHandler(btn_MouseLeave);
btn.MouseEnter +=new EventHandler(btn_MouseEnter);
btn.MouseUp +=new MouseEventHandler(btn_MouseUp);
btn.MouseDown +=new MouseEventHandler(btn_MouseDown);
btn.Click +=new EventHandler(btn_Click);
}
btnEmpty1.ImageIndex = 1;
btnEmpty2.ImageIndex = 1;
}
------------------------------------------
I know i am removing all handlers every time they disconnect (b/c u can t
click or do anyting with the button)

private void RemoveFunctionButtons()
{
foreach(WACButton btn in Names)
{
btn.MouseHover -=new EventHandler(btn_MouseHover);
btn.MouseLeave -=new EventHandler(btn_MouseLeave);
btn.MouseEnter -=new EventHandler(btn_MouseEnter);
btn.MouseUp -=new MouseEventHandler(btn_MouseUp);
btn.MouseDown -=new MouseEventHandler(btn_MouseDown);
btn.Click -=new EventHandler(btn_Click);
}
}

------------------------------------------

private void btn_Click(object sender, EventArgs e)
{
Carets.HideCaret(this.Handle);
WACButton btn = (WACButton)sender;
btn.ImageIndex = 3;
Thread.Sleep(200);
string tag = ((WACButton)sender).Tag.ToString();
try
{
switch(tag)
{
case "dnd":
{
s.IRCConnection.SendMessage(string.Format("PRIVMSG {0} :DNDON
UN|{1}^",mIRCRoom,mMyInfo.Name));
btn.ButtonText = "Disable DND";
btn.Tag = "disablednd";
break;
}
case "disablednd":
{
s.IRCConnection.SendMessage(string.Format("PRIVMSG {0} :DNDOFF
UN|{1}^",mIRCRoom,mMyInfo.Name));
btn.ButtonText = "DND";
btn.Tag = "dnd";
break;
}

}//end case//
}
catch
{
return;
}
Carets.ShowCaret(this.Handle);
}


Nov 17 '05 #3
Hi,

They are not disabled, just they do nothing, but it may annoy the user, just
disable them.

and use one eventhandler, do not create them without reason.

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Raj Chudasama" <ra*@asteriasgi.com> wrote in message
news:uc**************@TK2MSFTNGP14.phx.gbl...
Hi, thanks for reply

thants what i am doing, i have one instance of each event. All buttons
get these events assigned to them. so use switch statement to figure out
which button was clicked. It works well, except the problem i stated.
They are basically disabled when they are not connected to the server,
since there are no event handlers assigned to them..

i will try some sort of flag.

thanks



"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us>
wrote in message news:%2****************@tk2msftngp13.phx.gbl...
Hi,

It's not clear to me why you add/remove the handlers, I would instead use
a flag to indicate if they should react to the events or not. In your
case even the Enabled/ property can be used.

If that is not enough, then create ONLY ONE isntance of each event and
just assign it as needed:

EventHandler m_mouseHover;

mouseHover = new EventHandler(btn_MouseHover);

// to hook
btn.MouseHover += mouseHover ;
// to unhook
btn.MouseHover -= mouseHover ;
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation


"Raj Chudasama" <ra*@asteriasgi.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
I have a client server app. On the client i have buttons (derived from
user contol) that let user perform actions when they are connected to the
server. so when they connect (using a menuitem) i add event handlers to
the buttons and when they disconnect i remove them. Now, everything
works fine when they connnect for the first time. All of the msgs are
sent propoerly by the client. To figure out what button is click by the
client i used the "Tag" property rather than having a on click event for
each of the buttons ( see click event code).

However, if the following scenario occurs it goes through both msgs(like
kind of having two event handlers for button click being executed)
connect -> disconnect->connect.
can someone please tell me what could be worng? only think i can think
about is something to do with event handlers thats it :(
------------------------------------------
i am only adding handlers once with every connect msg as follows:
private void SetupFunctionButtons()
{
foreach(WACButton btn in Names)
{
btn.MouseHover +=new EventHandler(btn_MouseHover);
btn.MouseLeave +=new EventHandler(btn_MouseLeave);
btn.MouseEnter +=new EventHandler(btn_MouseEnter);
btn.MouseUp +=new MouseEventHandler(btn_MouseUp);
btn.MouseDown +=new MouseEventHandler(btn_MouseDown);
btn.Click +=new EventHandler(btn_Click);
}
btnEmpty1.ImageIndex = 1;
btnEmpty2.ImageIndex = 1;
}
------------------------------------------
I know i am removing all handlers every time they disconnect (b/c u can
t click or do anyting with the button)

private void RemoveFunctionButtons()
{
foreach(WACButton btn in Names)
{
btn.MouseHover -=new EventHandler(btn_MouseHover);
btn.MouseLeave -=new EventHandler(btn_MouseLeave);
btn.MouseEnter -=new EventHandler(btn_MouseEnter);
btn.MouseUp -=new MouseEventHandler(btn_MouseUp);
btn.MouseDown -=new MouseEventHandler(btn_MouseDown);
btn.Click -=new EventHandler(btn_Click);
}
}

------------------------------------------

private void btn_Click(object sender, EventArgs e)
{
Carets.HideCaret(this.Handle);
WACButton btn = (WACButton)sender;
btn.ImageIndex = 3;
Thread.Sleep(200);
string tag = ((WACButton)sender).Tag.ToString();
try
{
switch(tag)
{
case "dnd":
{
s.IRCConnection.SendMessage(string.Format("PRIVMSG {0} :DNDON
UN|{1}^",mIRCRoom,mMyInfo.Name));
btn.ButtonText = "Disable DND";
btn.Tag = "disablednd";
break;
}
case "disablednd":
{
s.IRCConnection.SendMessage(string.Format("PRIVMSG {0} :DNDOFF
UN|{1}^",mIRCRoom,mMyInfo.Name));
btn.ButtonText = "DND";
btn.Tag = "dnd";
break;
}

}//end case//
}
catch
{
return;
}
Carets.ShowCaret(this.Handle);
}



Nov 17 '05 #4
HI tanks again

those event handlers sort of give it some nice looks. For each event
(mouseevent) i change buttons so it sort has that look of macro media flash
app.

i still can t seem to figure out why it executes click event twice.
"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> wrote
in message news:Oy**************@TK2MSFTNGP12.phx.gbl...
Hi,

They are not disabled, just they do nothing, but it may annoy the user,
just disable them.

and use one eventhandler, do not create them without reason.

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Raj Chudasama" <ra*@asteriasgi.com> wrote in message
news:uc**************@TK2MSFTNGP14.phx.gbl...
Hi, thanks for reply

thants what i am doing, i have one instance of each event. All buttons
get these events assigned to them. so use switch statement to figure out
which button was clicked. It works well, except the problem i stated.
They are basically disabled when they are not connected to the server,
since there are no event handlers assigned to them..

i will try some sort of flag.

thanks



"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us>
wrote in message news:%2****************@tk2msftngp13.phx.gbl...
Hi,

It's not clear to me why you add/remove the handlers, I would instead
use a flag to indicate if they should react to the events or not. In
your case even the Enabled/ property can be used.

If that is not enough, then create ONLY ONE isntance of each event and
just assign it as needed:

EventHandler m_mouseHover;

mouseHover = new EventHandler(btn_MouseHover);

// to hook
btn.MouseHover += mouseHover ;
// to unhook
btn.MouseHover -= mouseHover ;
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation


"Raj Chudasama" <ra*@asteriasgi.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
I have a client server app. On the client i have buttons (derived from
user contol) that let user perform actions when they are connected to
the server. so when they connect (using a menuitem) i add event handlers
to the buttons and when they disconnect i remove them. Now, everything
works fine when they connnect for the first time. All of the msgs are
sent propoerly by the client. To figure out what button is click by the
client i used the "Tag" property rather than having a on click event for
each of the buttons ( see click event code).

However, if the following scenario occurs it goes through both
msgs(like kind of having two event handlers for button click being
executed)
connect -> disconnect->connect.
can someone please tell me what could be worng? only think i can think
about is something to do with event handlers thats it :(
------------------------------------------
i am only adding handlers once with every connect msg as follows:
private void SetupFunctionButtons()
{
foreach(WACButton btn in Names)
{
btn.MouseHover +=new EventHandler(btn_MouseHover);
btn.MouseLeave +=new EventHandler(btn_MouseLeave);
btn.MouseEnter +=new EventHandler(btn_MouseEnter);
btn.MouseUp +=new MouseEventHandler(btn_MouseUp);
btn.MouseDown +=new MouseEventHandler(btn_MouseDown);
btn.Click +=new EventHandler(btn_Click);
}
btnEmpty1.ImageIndex = 1;
btnEmpty2.ImageIndex = 1;
}
------------------------------------------
I know i am removing all handlers every time they disconnect (b/c u can
t click or do anyting with the button)

private void RemoveFunctionButtons()
{
foreach(WACButton btn in Names)
{
btn.MouseHover -=new EventHandler(btn_MouseHover);
btn.MouseLeave -=new EventHandler(btn_MouseLeave);
btn.MouseEnter -=new EventHandler(btn_MouseEnter);
btn.MouseUp -=new MouseEventHandler(btn_MouseUp);
btn.MouseDown -=new MouseEventHandler(btn_MouseDown);
btn.Click -=new EventHandler(btn_Click);
}
}

------------------------------------------

private void btn_Click(object sender, EventArgs e)
{
Carets.HideCaret(this.Handle);
WACButton btn = (WACButton)sender;
btn.ImageIndex = 3;
Thread.Sleep(200);
string tag = ((WACButton)sender).Tag.ToString();
try
{
switch(tag)
{
case "dnd":
{
s.IRCConnection.SendMessage(string.Format("PRIVMSG {0} :DNDON
UN|{1}^",mIRCRoom,mMyInfo.Name));
btn.ButtonText = "Disable DND";
btn.Tag = "disablednd";
break;
}
case "disablednd":
{
s.IRCConnection.SendMessage(string.Format("PRIVMSG {0} :DNDOFF
UN|{1}^",mIRCRoom,mMyInfo.Name));
btn.ButtonText = "DND";
btn.Tag = "dnd";
break;
}

}//end case//
}
catch
{
return;
}
Carets.ShowCaret(this.Handle);
}



Nov 17 '05 #5
Hi,

Even so, you can create the delegates only once, and regarding the
buttons( or menuitems ) do not create them each time you change the look,
create them once and just keep them in an array.

Create the minimun qty of instances needed, this way you will consume less
memory
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Raj Chudasama" <ra*@asteriasgi.com> wrote in message
news:OO**************@TK2MSFTNGP12.phx.gbl...
HI tanks again

those event handlers sort of give it some nice looks. For each event
(mouseevent) i change buttons so it sort has that look of macro media
flash app.

i still can t seem to figure out why it executes click event twice.
"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us>
wrote in message news:Oy**************@TK2MSFTNGP12.phx.gbl...
Hi,

They are not disabled, just they do nothing, but it may annoy the user,
just disable them.

and use one eventhandler, do not create them without reason.

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Raj Chudasama" <ra*@asteriasgi.com> wrote in message
news:uc**************@TK2MSFTNGP14.phx.gbl...
Hi, thanks for reply

thants what i am doing, i have one instance of each event. All buttons
get these events assigned to them. so use switch statement to figure
out which button was clicked. It works well, except the problem i
stated. They are basically disabled when they are not connected to the
server, since there are no event handlers assigned to them..

i will try some sort of flag.

thanks



"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us>
wrote in message news:%2****************@tk2msftngp13.phx.gbl...
Hi,

It's not clear to me why you add/remove the handlers, I would instead
use a flag to indicate if they should react to the events or not. In
your case even the Enabled/ property can be used.

If that is not enough, then create ONLY ONE isntance of each event and
just assign it as needed:

EventHandler m_mouseHover;

mouseHover = new EventHandler(btn_MouseHover);

// to hook
btn.MouseHover += mouseHover ;
// to unhook
btn.MouseHover -= mouseHover ;
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation


"Raj Chudasama" <ra*@asteriasgi.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
>I have a client server app. On the client i have buttons (derived from
>user contol) that let user perform actions when they are connected to
>the server. so when they connect (using a menuitem) i add event
>handlers to the buttons and when they disconnect i remove them. Now,
>everything works fine when they connnect for the first time. All of the
>msgs are sent propoerly by the client. To figure out what button is
>click by the client i used the "Tag" property rather than having a on
>click event for each of the buttons ( see click event code).
>
> However, if the following scenario occurs it goes through both
> msgs(like kind of having two event handlers for button click being
> executed)
> connect -> disconnect->connect.
> can someone please tell me what could be worng? only think i can
> think about is something to do with event handlers thats it :(
> ------------------------------------------
> i am only adding handlers once with every connect msg as follows:
> private void SetupFunctionButtons()
> {
> foreach(WACButton btn in Names)
> {
> btn.MouseHover +=new EventHandler(btn_MouseHover);
> btn.MouseLeave +=new EventHandler(btn_MouseLeave);
> btn.MouseEnter +=new EventHandler(btn_MouseEnter);
> btn.MouseUp +=new MouseEventHandler(btn_MouseUp);
> btn.MouseDown +=new MouseEventHandler(btn_MouseDown);
> btn.Click +=new EventHandler(btn_Click);
> }
> btnEmpty1.ImageIndex = 1;
> btnEmpty2.ImageIndex = 1;
> }
> ------------------------------------------
> I know i am removing all handlers every time they disconnect (b/c u
> can t click or do anyting with the button)
>
> private void RemoveFunctionButtons()
> {
> foreach(WACButton btn in Names)
> {
> btn.MouseHover -=new EventHandler(btn_MouseHover);
> btn.MouseLeave -=new EventHandler(btn_MouseLeave);
> btn.MouseEnter -=new EventHandler(btn_MouseEnter);
> btn.MouseUp -=new MouseEventHandler(btn_MouseUp);
> btn.MouseDown -=new MouseEventHandler(btn_MouseDown);
> btn.Click -=new EventHandler(btn_Click);
> }
> }
>
> ------------------------------------------
>
> private void btn_Click(object sender, EventArgs e)
> {
> Carets.HideCaret(this.Handle);
> WACButton btn = (WACButton)sender;
> btn.ImageIndex = 3;
> Thread.Sleep(200);
> string tag = ((WACButton)sender).Tag.ToString();
> try
> {
> switch(tag)
> {
> case "dnd":
> {
> s.IRCConnection.SendMessage(string.Format("PRIVMSG {0} :DNDON
> UN|{1}^",mIRCRoom,mMyInfo.Name));
> btn.ButtonText = "Disable DND";
> btn.Tag = "disablednd";
> break;
> }
> case "disablednd":
> {
> s.IRCConnection.SendMessage(string.Format("PRIVMSG {0} :DNDOFF
> UN|{1}^",mIRCRoom,mMyInfo.Name));
> btn.ButtonText = "DND";
> btn.Tag = "dnd";
> break;
> }
>
> }//end case//
> }
> catch
> {
> return;
> }
> Carets.ShowCaret(this.Handle);
> }
>



Nov 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1471
by: Matthias Pieroth | last post by:
Hi NG, I have an OCX (VC++ 6.0) that fires some events. I have to use it on a form an have to catch the events in event-handlers in another form (MDI-Child). BUT: I have to create the other...
3
1868
by: Robert | last post by:
I need some assistance doing some "right way to do it" coding. The following are EventHandlers associated with Delegates in a child form that call a procedure in the MDI form that resets a timer....
1
3087
by: Pieter | last post by:
Hi, I have a custom List that inherits from BindingList. It has some methods overloaded, like the Add/Insert/etc to add and remove some eventhandlers when adding or removing an item T of the...
1
2351
by: Pieter | last post by:
Hi, I have a custom List that inherits from BindingList. It has some methods overloaded, like the Add/Insert/etc to add and remove some eventhandlers when adding or removing an item T of the...
4
5034
by: ICPooreMan | last post by:
I've got some code which works in firefox that's giving me fits in IE7 (maybe other versions too I haven't tested it). What I want to do is get the oncontextmenu attribute of something, change the...
0
7380
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7535
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5683
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5085
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3232
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3221
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1592
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
455
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.