Click here to Skip to main content
15,921,179 members
Home / Discussions / C#
   

C#

 
Questiondeveloping applications for mobile Pin
anupj24-May-06 1:57
anupj24-May-06 1:57 
AnswerRe: developing applications for mobile [modified] Pin
Bayli24-May-06 2:18
Bayli24-May-06 2:18 
GeneralRe: developing applications for mobile [modified] Pin
lmoelleb24-May-06 2:49
lmoelleb24-May-06 2:49 
GeneralRe: developing applications for mobile [modified] Pin
Bayli24-May-06 2:55
Bayli24-May-06 2:55 
Questionaccessing remote machine using IP Address Pin
V.V.Thakur24-May-06 1:40
V.V.Thakur24-May-06 1:40 
AnswerRe: accessing remote machine using IP Address Pin
Ed.Poore24-May-06 3:58
Ed.Poore24-May-06 3:58 
QuestionContextmenu Shell Extension problem Pin
Larantz24-May-06 1:27
Larantz24-May-06 1:27 
AnswerRe: Contextmenu Shell Extension problem Pin
Larantz25-May-06 21:52
Larantz25-May-06 21:52 
Solved it.

I'll post the solution incase anyone else runs into the same problem.

My extension is made up with dynamic contextmenus that vary in size and content according to the
filetype etc. So I had identifier baseIDs like i.e: baseIDTxt 0, baseIDDoc 100, baseIDRtf 200;
These baseIDs are then used when creating/populating the menus so it's easier to locate the correct
commands when InvokeCommand is called. I'd just switch on the baseids:

case baseIDTxt + 0: //menuitem index 0
//do something to txt file
break;

case baseIDTxt + 1: //menuitem index 1
//do something else to txt file
break;

The problem for me was that if I used a baseID larger then 100 for some of my menus, and the InvokeCommand for that specific contextmenu wouldn't show.

So try and keep them below 100 and you should be fine.
I now have a dynamic contextmenu with dynamic number of sumbmenuitems that varies for 4 filecases.
I used four bases i.e: baseX = 0, baseY = 25, baseZ = 75 and baseLast = 100;

-Larantz-
QuestionHow to accept double values using textbox Pin
praveenqwe24-May-06 1:19
praveenqwe24-May-06 1:19 
AnswerRe: How to accept double values using textbox Pin
rah_sin24-May-06 1:23
professionalrah_sin24-May-06 1:23 
GeneralRe: How to accept double values using textbox Pin
praveenqwe24-May-06 1:41
praveenqwe24-May-06 1:41 
AnswerRe: How to accept double values using textbox [modified] Pin
Bayli24-May-06 1:26
Bayli24-May-06 1:26 
QuestionAccessing main form from user component Pin
Bayli24-May-06 1:13
Bayli24-May-06 1:13 
AnswerRe: Accessing main form from user component Pin
stancrm24-May-06 1:36
stancrm24-May-06 1:36 
GeneralRe: Accessing main form from user component Pin
Bayli24-May-06 2:00
Bayli24-May-06 2:00 
QuestionArrayList help? Pin
eric_tran24-May-06 1:09
eric_tran24-May-06 1:09 
AnswerRe: ArrayList help? [modified] Pin
J4amieC24-May-06 1:12
J4amieC24-May-06 1:12 
GeneralRe: ArrayList help? [modified] Pin
Larantz24-May-06 1:16
Larantz24-May-06 1:16 
AnswerRe: ArrayList help? [modified] Pin
User 665824-May-06 1:33
User 665824-May-06 1:33 
GeneralRe: ArrayList help? [modified] Pin
J4amieC24-May-06 1:46
J4amieC24-May-06 1:46 
GeneralRe: ArrayList help? [modified] Pin
User 665824-May-06 2:00
User 665824-May-06 2:00 
AnswerRe: ArrayList help? Pin
eric_tran24-May-06 2:24
eric_tran24-May-06 2:24 
AnswerRe: ArrayList help? Pin
eric_tran24-May-06 2:31
eric_tran24-May-06 2:31 
Questiona few important questions about forms ? Pin
cmpeng3424-May-06 0:37
cmpeng3424-May-06 0:37 
AnswerRe: a few important questions about forms ? Pin
J4amieC24-May-06 1:05
J4amieC24-May-06 1:05 

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.