Context Menu

J

Jonathan Dixon

Can someone tell me how to make an entry in a context menu Bold.

E.g

On msn Messenger when clicking on the tray icon

Open Msn Messenger is displayed in BOLD

Regards

Jonathan Dixon
 
H

Herfried K. Wagner [MVP]

* "Jonathan Dixon said:
Can someone tell me how to make an entry in a context menu Bold.

Set the item's 'DefaultItem' property to 'True'.
 
J

Jonathan Dixon

I am not sure i can do that as i am creating the context menu at runtime

m_menu = new ContextMenu();

m_menu.MenuItems.Add(0,

new MenuItem("Show",new System.EventHandler(Show_Click)));

m_menu.MenuItems.Add(1,

new MenuItem("Hide",new System.EventHandler(Hide_Click)));

m_menu.MenuItems.Add(2,

new MenuItem("&Exit",new System.EventHandler(Exit_Click)));



Regards



Jonathan Dixon
 
H

Herfried K. Wagner [MVP]

* "Jonathan Dixon said:
I am not sure i can do that as i am creating the context menu at runtime

m_menu = new ContextMenu();

m_menu.MenuItems.Add(0,

new MenuItem("Show",new System.EventHandler(Show_Click)));

m_menu.MenuItems.Add(1,

new MenuItem("Hide",new System.EventHandler(Hide_Click)));

m_menu.MenuItems.Add(2,

new MenuItem("&Exit",new System.EventHandler(Exit_Click)));

\\\
Dim mi As New MenuItem
mi.Text = "kkk"
mi.DefaultItem = True
AddHandler ...
m_Menu.MenuItems.Add(mi)
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top