Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 31st, 2008, 02:50 PM
Friend of Wrox
 
Join Date: Dec 2006
Location: , , .
Posts: 176
Thanks: 0
Thanked 0 Times in 0 Posts
Default ToolStripMenuItem Enter & Leave Event

Hi
I need an Event such as Enter and leave Event For ToolStripMenuItems.
in fact I need an Event when toolstripMenuItem is Active the Enter event become fire and when toolstripMenuItem is diactivated the Leave Evente become fire

the ToolStripMenuItem Class doesn't these Events in normally. can I Declare these Evente For this Class?
  #2 (permalink)  
Old April 1st, 2008, 05:29 AM
samjudson's Avatar
Friend of Wrox
Points: 8,687, Level: 40
Points: 8,687, Level: 40 Points: 8,687, Level: 40 Points: 8,687, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

What about MouseEnter and MouseLeave?

/- Sam Judson : Wrox Technical Editor -/
  #3 (permalink)  
Old April 1st, 2008, 07:44 AM
Friend of Wrox
 
Join Date: Dec 2006
Location: , , .
Posts: 176
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by samjudson
 What about MouseEnter and MouseLeave?

/- Sam Judson : Wrox Technical Editor -/
I want handle the Keyboard keys and performe some action when ToolStripMenuItem become Active (enter Event) and when it become deactive too.
  #4 (permalink)  
Old April 2nd, 2008, 09:26 AM
Friend of Wrox
 
Join Date: Dec 2006
Location: , , .
Posts: 176
Thanks: 0
Thanked 0 Times in 0 Posts
Default

realy there is no answer for this problem?!!!
  #5 (permalink)  
Old April 2nd, 2008, 09:33 AM
samjudson's Avatar
Friend of Wrox
Points: 8,687, Level: 40
Points: 8,687, Level: 40 Points: 8,687, Level: 40 Points: 8,687, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

I've had a look and I can't think of any way of doing what you are asking - which is indeed strange. You might like to ask on the MSDN forums though.

/- Sam Judson : Wrox Technical Editor -/
  #6 (permalink)  
Old April 2nd, 2008, 01:48 PM
Friend of Wrox
 
Join Date: Dec 2006
Location: , , .
Posts: 176
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I created a custom Menu Strip with costum ToolStripMenuItem.
i override ToolStripMenuItem Class For creating a custom toolstripItem.
I override th paint method, when the mouse is over the item, the gradient rectangle was drwan on the toolstripitem..
i override the MouseEnter event and insdie it i called the Invalidate method to force the toolstripitem to draw...
it works fun.. but when user use keyboard to scrol items, the invalidate method didn't call, there for my custom shape doesn't work coorectly .. i need a event which fire paint event wehn user use keaybord to get items..
  #7 (permalink)  
Old November 21st, 2008, 04:57 PM
Registered User
 
Join Date: Nov 2008
Location: Tirupur, Tamilnadu, India.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi dude..

i have got this problem now..

keyboard doesnt call OnPaint function.. d

Did u find the solution..

Pls Pls let me know the solution..
 i got serious problem with this error..

Looking forward to ur reply

this is mail id:
alavu_deen@rediffmail.com(and)aabdul...nauti x.co.in

 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Capturing a "Enter" key event in C# windows applic bhavna VS.NET 2002/2003 1 March 15th, 2007 07:45 AM
MsgBox in Enter Event does not allow update richtrini Excel VBA 2 March 8th, 2006 10:43 AM
Pressing Enter should fire an event r_ganesh76 ASP.NET 1.0 and 1.1 Professional 4 September 28th, 2004 12:02 AM
Enter Key event handler KevinO ASP.NET 1.0 and 1.1 Basics 2 August 17th, 2004 09:57 AM



All times are GMT -4. The time now is 10:14 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.