Click here to Skip to main content
15,922,419 members
Home / Discussions / C#
   

C#

 
GeneralRe: Threadin.Thread Problem Pin
humayunlalzad8-Jan-08 20:56
humayunlalzad8-Jan-08 20:56 
GeneralWeb services in runtime Pin
Goncalo Oliveira7-Jan-08 5:31
Goncalo Oliveira7-Jan-08 5:31 
GeneralRe: Web services in runtime Pin
Pete O'Hanlon7-Jan-08 10:27
mvePete O'Hanlon7-Jan-08 10:27 
Generalreading bytes into directory Pin
gottimukkala7-Jan-08 5:24
gottimukkala7-Jan-08 5:24 
GeneralRe: reading bytes into directory Pin
Judah Gabriel Himango7-Jan-08 7:52
sponsorJudah Gabriel Himango7-Jan-08 7:52 
GeneralRe: reading bytes into directory Pin
Christian Graus7-Jan-08 9:34
protectorChristian Graus7-Jan-08 9:34 
QuestionCan you tell what menu item the mouse is pointing at? [modified] Pin
earlgraham7-Jan-08 5:15
earlgraham7-Jan-08 5:15 
AnswerRe: Can you tell what menu item the mouse is pointing at? Pin
Judah Gabriel Himango7-Jan-08 6:24
sponsorJudah Gabriel Himango7-Jan-08 6:24 
Hi Glenn

I tried out a few things and here's what I came up with.

If you've got a MenuStrip (e.g. File, Edit, View, etc.) and you're trying to see if the mouse is over a particular menu item (e.g. the File->Exit), you can do it like this:

Point localPoint = fileMenuItem.DropDown.PointToClient(hlpevent.MousePos);
if(exitMenuItem == fileMenuItem.DropDown.GetItemAt(localPoint)) // then we're over the exit menu item!
Does this help?


Tech, life, family, faith: Give me a visit.
I'm currently blogging about: What this world needs... (Video)
The apostle Paul, modernly speaking: Epistles of Paul

Judah Himango


GeneralRe: Can you tell what menu item the mouse is pointing at? Pin
earlgraham7-Jan-08 10:07
earlgraham7-Jan-08 10:07 
GeneralRe: Can you tell what menu item the mouse is pointing at? Pin
Judah Gabriel Himango7-Jan-08 10:22
sponsorJudah Gabriel Himango7-Jan-08 10:22 
AnswerRe: Can you tell what menu item the mouse is pointing at? Pin
PIEBALDconsult7-Jan-08 8:13
mvePIEBALDconsult7-Jan-08 8:13 
GeneralRe: Can you tell what menu item the mouse is pointing at? Pin
earlgraham7-Jan-08 10:10
earlgraham7-Jan-08 10:10 
AnswerRe: Can you tell what menu item the mouse is pointing at? Pin
Luc Pattyn7-Jan-08 9:04
sitebuilderLuc Pattyn7-Jan-08 9:04 
GeneralRe: Can you tell what menu item the mouse is pointing at? Pin
earlgraham7-Jan-08 10:13
earlgraham7-Jan-08 10:13 
GeneralRe: Can you tell what menu item the mouse is pointing at? Pin
Luc Pattyn7-Jan-08 11:27
sitebuilderLuc Pattyn7-Jan-08 11:27 
GeneralRe: Can you tell what menu item the mouse is pointing at? Pin
earlgraham8-Jan-08 8:52
earlgraham8-Jan-08 8:52 
Generalbrowse word document Pin
angels7777-Jan-08 4:51
angels7777-Jan-08 4:51 
GeneralRe: browse word document Pin
Judah Gabriel Himango7-Jan-08 5:03
sponsorJudah Gabriel Himango7-Jan-08 5:03 
GeneralRe: browse word document Pin
angels7777-Jan-08 14:37
angels7777-Jan-08 14:37 
GeneralRe: browse word document Pin
Judah Gabriel Himango8-Jan-08 4:08
sponsorJudah Gabriel Himango8-Jan-08 4:08 
GeneralCalender Control Pin
kibromg7-Jan-08 4:43
kibromg7-Jan-08 4:43 
GeneralRe: Calender Control Pin
Bekjong7-Jan-08 4:47
Bekjong7-Jan-08 4:47 
GeneralRe: Calender Control Pin
PIEBALDconsult7-Jan-08 4:47
mvePIEBALDconsult7-Jan-08 4:47 
GeneralRe: Calender Control Pin
kibromg7-Jan-08 5:13
kibromg7-Jan-08 5:13 
GeneralRe: Calender Control Pin
PIEBALDconsult7-Jan-08 6:15
mvePIEBALDconsult7-Jan-08 6:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.