Click here to Skip to main content
15,946,074 members
Home / Discussions / C#
   

C#

 
QuestionURL Changes when using Server Transfer, why? Pin
Meera Nair5-Sep-04 6:50
Meera Nair5-Sep-04 6:50 
Questionhow to enable asp.net to set active directory user password Pin
Anonymous5-Sep-04 6:28
Anonymous5-Sep-04 6:28 
AnswerRe: how to enable asp.net to set active directory user password Pin
Mazdak5-Sep-04 18:57
Mazdak5-Sep-04 18:57 
GeneralListBox right click Pin
eggie55-Sep-04 4:57
eggie55-Sep-04 4:57 
GeneralEvent Handler Wizard Pin
Cliff Hatch5-Sep-04 4:44
Cliff Hatch5-Sep-04 4:44 
GeneralRe: Event Handler Wizard Pin
mav.northwind5-Sep-04 8:09
mav.northwind5-Sep-04 8:09 
GeneralRe: Event Handler Wizard Pin
Cliff Hatch6-Sep-04 8:48
Cliff Hatch6-Sep-04 8:48 
GeneralUPDATE_COMMAND_UI Pin
Cliff Hatch8-Sep-04 10:02
Cliff Hatch8-Sep-04 10:02 
After a bit more exploration I found that I had indeed missed something:

If you right click on menu items and select the "add event handler" option, the Event Handler Wizard appears and gives you the option to create or edit COMMAND and UPDATE_COMMAND_UI messages - so that's where they're hidden!

The rule seems to be: right click on the thing you want to create a handler for and the Event Handler Wizard will provide pretty much the same functionality as MFC's ClassWizard - except that it doesn't work for toolbar buttons because you don't get an opportunity to call it up.

I suppose one way round this is always to build a menu item first, attach handlers to it, then build a toolbar button with the same ID - and it will share the same handlers. Perhaps it is good practice to replicate every toolbar function in a menu, so maybe this approach makes sense. On the other hand, I don't see why a right click on the toolbar shouldn't offer the "add event handler" option. The treatment of toolbar buttons seems inconsistent with that of menu items and dialog buttons.


Best Regards

Cliff
QuestionDouble scrollbar in datagrid? Pin
obby5-Sep-04 4:16
obby5-Sep-04 4:16 
Generalsoftware update project Pin
karanba5-Sep-04 3:29
karanba5-Sep-04 3:29 
GeneralRe: software update project Pin
Baris Kurtlutepe6-Sep-04 11:26
Baris Kurtlutepe6-Sep-04 11:26 
GeneralLabel Height Pin
sreejith ss nair5-Sep-04 2:25
sreejith ss nair5-Sep-04 2:25 
GeneralRe: Label Height Pin
Stefan Troschuetz5-Sep-04 2:41
Stefan Troschuetz5-Sep-04 2:41 
GeneralRe: Label Height Pin
EssOEss5-Sep-04 9:25
EssOEss5-Sep-04 9:25 
GeneralRe: Label Height Pin
sreejith ss nair5-Sep-04 17:40
sreejith ss nair5-Sep-04 17:40 
QuestionYahoo Mail client api? Pin
Amberite005-Sep-04 1:38
Amberite005-Sep-04 1:38 
AnswerRe: Yahoo Mail client api? Pin
Colin Angus Mackay5-Sep-04 1:57
Colin Angus Mackay5-Sep-04 1:57 
GeneralRe: Yahoo Mail client api? Pin
Amberite005-Sep-04 2:09
Amberite005-Sep-04 2:09 
GeneralRe: Yahoo Mail client api? Pin
Colin Angus Mackay5-Sep-04 4:47
Colin Angus Mackay5-Sep-04 4:47 
AnswerRe: Yahoo Mail client api? Pin
eggie55-Sep-04 4:41
eggie55-Sep-04 4:41 
GeneralTrapping Close Window in C# Pin
YiannisF5-Sep-04 0:56
YiannisF5-Sep-04 0:56 
GeneralRe: Trapping Close Window in C# Pin
Colin Angus Mackay5-Sep-04 1:58
Colin Angus Mackay5-Sep-04 1:58 
QuestionCan i add self explained description to a Method or Function? Pin
cindy0235-Sep-04 0:07
cindy0235-Sep-04 0:07 
AnswerRe: Can i add self explained description to a Method or Function? Pin
Colin Angus Mackay5-Sep-04 2:01
Colin Angus Mackay5-Sep-04 2:01 
AnswerRe: Can i add self explained description to a Method or Function? Pin
Stefan Troschuetz5-Sep-04 2:39
Stefan Troschuetz5-Sep-04 2:39 

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.