Click here to Skip to main content
15,890,123 members
Home / Discussions / C#
   

C#

 
GeneralStreamReader Pin
Member Salamon5-Apr-03 8:30
Member Salamon5-Apr-03 8:30 
GeneralRe: StreamReader Pin
leppie6-Apr-03 2:10
leppie6-Apr-03 2:10 
GeneralRe: StreamReader Pin
James T. Johnson6-Apr-03 4:50
James T. Johnson6-Apr-03 4:50 
GeneralRe: StreamReader Pin
Member Salamon6-Apr-03 5:26
Member Salamon6-Apr-03 5:26 
GeneralTime trials & registration keys Pin
S O S4-Apr-03 19:25
S O S4-Apr-03 19:25 
GeneralRe: Time trials & registration keys Pin
Alex Korchemniy5-Apr-03 8:49
Alex Korchemniy5-Apr-03 8:49 
GeneralRe: Time trials & registration keys Pin
S O S5-Apr-03 23:06
S O S5-Apr-03 23:06 
QuestionHow to create dynamic Menus in smart device application Pin
newtocsharp4-Apr-03 18:28
newtocsharp4-Apr-03 18:28 
Hello,

I am developing the application in compact framework using c#.I want to create the dynamic menu which will take values from database and on clicking on the menuitems (retrieved from database) certain functioning should happen.Can anybody tell me how should I achieve the event handling for this?

I am pasting the code herewith:

for(int i=0;i<arrmenu.length;i++)
{
="" query="select description from configMaster where tableName='Menu' and tblId=" +="" arrmenu[i];
="" record.open(query,con);
="" menuitem="" mymenu="new" menuitem();
="" mymenu.text="record.Fields[0].Value.ToString();
" mymenu.click="" eventhandler(mymenu_click);
="" menuitem1.menuitems.add(mymenu);
="" record.close();
="" }
="" }

="" private="" void="" mymenu_click(object="" sender,="" eventargs="" e)
="" <u="">I AM NOT ABLE TO DETECT HERE WHICH MENUITEM IS CLICKED.

//MessageBox.Show(mainMenu1.MenuItems.GetEnumerator().Equals(sender).ToString());
}
AnswerRe: How to create dynamic Menus in smart device application Pin
Stephane Rodriguez.4-Apr-03 19:15
Stephane Rodriguez.4-Apr-03 19:15 
GeneralRe: How to create dynamic Menus in smart device application Pin
J. Dunlap4-Apr-03 20:03
J. Dunlap4-Apr-03 20:03 
GeneralRe: How to create dynamic Menus in smart device application Pin
newtocsharp4-Apr-03 20:52
newtocsharp4-Apr-03 20:52 
GeneralRe: How to create dynamic Menus in smart device application Pin
Stephane Rodriguez.4-Apr-03 21:25
Stephane Rodriguez.4-Apr-03 21:25 
GeneralIOCP in .NET Pin
BestSnowman4-Apr-03 14:06
BestSnowman4-Apr-03 14:06 
GeneralRe: IOCP in .NET Pin
Alex Korchemniy5-Apr-03 8:52
Alex Korchemniy5-Apr-03 8:52 
GeneralRe: IOCP in .NET Pin
James T. Johnson5-Apr-03 13:45
James T. Johnson5-Apr-03 13:45 
QuestionHow to call the default event handler? Pin
Alvaro Mendez4-Apr-03 11:51
Alvaro Mendez4-Apr-03 11:51 
AnswerRe: How to call the default event handler? Pin
neroknights4-Apr-03 12:00
neroknights4-Apr-03 12:00 
GeneralRe: How to call the default event handler? Pin
Alvaro Mendez4-Apr-03 12:27
Alvaro Mendez4-Apr-03 12:27 
GeneralRe: How to call the default event handler? Pin
neroknights7-Apr-03 5:08
neroknights7-Apr-03 5:08 
AnswerRe: How to call the default event handler? Pin
James T. Johnson5-Apr-03 13:21
James T. Johnson5-Apr-03 13:21 
QuestionHow would I make a button act like a ReadLine method Pin
Ioncycle4-Apr-03 10:05
Ioncycle4-Apr-03 10:05 
GeneralClass inheritance issue with XmlNodeList Pin
econner4-Apr-03 9:35
econner4-Apr-03 9:35 
GeneralRe: Class inheritance issue with XmlNodeList Pin
neroknights4-Apr-03 12:09
neroknights4-Apr-03 12:09 
GeneralGetting the FQDN of the host Pin
Arun Bhalla4-Apr-03 9:33
Arun Bhalla4-Apr-03 9:33 
GeneralClass Design Question Pin
Mark Sanders4-Apr-03 4:46
Mark Sanders4-Apr-03 4:46 

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.