473,387 Members | 1,388 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

context menu font

VB.NET

i`ve created a systray icon using a context menu and the
notifyicon class.

how do i change the font for a particular menu item ?

i.e

Me.MenuItem4.Text = "Settings"

i want to make this entry bold.

me.font.bold=true

is readonly so can`t be done. Settings OwnerDraw = True
won`t work due to the bug with context menus.

any ideas ?
thanks in advance

dave
Nov 22 '05 #1
3 3187
Set it's DefaultItem property to True.

--
Mick Doherty
http://dotnetrix.co.uk
"dave" <an*******@discussions.microsoft.com> wrote in message
news:26*****************************@phx.gbl...
VB.NET

i`ve created a systray icon using a context menu and the
notifyicon class.

how do i change the font for a particular menu item ?

i.e

Me.MenuItem4.Text = "Settings"

i want to make this entry bold.

me.font.bold=true

is readonly so can`t be done. Settings OwnerDraw = True
won`t work due to the bug with context menus.

any ideas ?
thanks in advance

dave

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.701 / Virus Database: 458 - Release Date: 07/06/2004
Nov 22 '05 #2
!!!!! so simple !!! but all that i needed .. thanks
-----Original Message-----
Set it's DefaultItem property to True.

--
Mick Doherty
http://dotnetrix.co.uk
"dave" <an*******@discussions.microsoft.com> wrote in messagenews:26*****************************@phx.gbl...
VB.NET

i`ve created a systray icon using a context menu and the
notifyicon class.

how do i change the font for a particular menu item ?

i.e

Me.MenuItem4.Text = "Settings"

i want to make this entry bold.

me.font.bold=true

is readonly so can`t be done. Settings OwnerDraw = True
won`t work due to the bug with context menus.

any ideas ?
thanks in advance

dave

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.701 / Virus Database: 458 - Release Date:

07/06/2004

.

Nov 22 '05 #3
so simple !!!!! thanks
-----Original Message-----
Set it's DefaultItem property to True.

--
Mick Doherty
http://dotnetrix.co.uk
"dave" <an*******@discussions.microsoft.com> wrote in messagenews:26*****************************@phx.gbl...
VB.NET

i`ve created a systray icon using a context menu and the
notifyicon class.

how do i change the font for a particular menu item ?

i.e

Me.MenuItem4.Text = "Settings"

i want to make this entry bold.

me.font.bold=true

is readonly so can`t be done. Settings OwnerDraw = True
won`t work due to the bug with context menus.

any ideas ?
thanks in advance

dave

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.701 / Virus Database: 458 - Release Date:

07/06/2004

.

Nov 22 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Macamba | last post by:
Hi all, I am currently developing a website for a voluntary organisation. It is my first step in website development. The dynamic menu I developed has some bugs, which I addressed in another...
4
by: JesusFreak | last post by:
From: us_traveller@yahoo.com (JesusFreak) Newsgroups: microsoft.public.scripting.jscript Subject: toolbar script problem NNTP-Posting-Host: 192.92.126.136 Recently, I downloaded the following...
1
by: ajay | last post by:
I have following code for a slide menu but i twiked it to work for a single level menu. Open it in a Browser to get a clear picture. I have 2 Qs 1) How to make first entry as non-link. i.e i...
3
by: dave | last post by:
VB.NET i`ve created a systray icon using a context menu and the notifyicon class. how do i change the font for a particular menu item ? i.e Me.MenuItem4.Text = "Settings"
2
by: Jackson Yap | last post by:
can someone kind enough to help me look at the attached html and js file? Why is it that the javascript menu could not work at www.apchosting.net but could work at...
4
by: Anushya | last post by:
Hi How to create a context menu with icons?? I know there is no straight way of doing it.And i have the code downloaded for vb.net. does anybody have code written in c#?? Anushya
0
by: Andrew Baker | last post by:
Have a look at the code below. It's a really simple example where I have added two controls to a form, a textbox and a combo box. Both add owner drawn context menus to the controls, but the...
1
by: CKich30 | last post by:
When viewing my page (siuehockey.net) in Firefox, it's setup how I want it to look. When i viewed it using IE, the menu at the top runs into the "Cougar Hockey/cougarhockey.net" at the top left....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.