Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Make a label bold in VB.NET

Posted on 2003-11-07
6
Medium Priority
?
1,201 Views
Last Modified: 2008-02-01
How do I programatically change a windows form Label control to display in bold-faced?

Thanks!
0
Comment
Question by:CraigWettstein
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 44

Expert Comment

by:Arthur_Wood
ID: 9701452
Label1.Font.Bold=True

AW
0
 

Author Comment

by:CraigWettstein
ID: 9701477
Thanks, Arthur -

I tried that, and when I did, the IDE put the blue squiggly line under my whole line of code.  When I hover my mouse over the line of code, a tip pops up that says: "Property 'Bold' is 'ReadOnly'."
0
 

Accepted Solution

by:
dibblm earned 180 total points
ID: 9701614
me.label1.Font = New Font("MS San Serif,Font.Bold)
0
Fill in the form and get your FREE NFR key NOW!

Veeam® is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

 

Author Comment

by:CraigWettstein
ID: 9701737
Thanks, dibblm -

That gave me an error also, but it pointed me in the right direction.  The correct format of the code is "me.label1.Font = New Font("Microsoft Sans Serif", 8, FontStyle.Bold)".
0
 

Expert Comment

by:dibblm
ID: 9702710
Thank you and you are correct about the formatting. I just pulled it out of my hat without trying it first with the help of intellisense.

 If you are accustom to working with modal forms or forms that open as a dialog. I could use some help myself.

if you have 2 forms (1) and (2)
form (1) opens dialog which opens form(2) dialog

How can I issue a close to close both of them.. me.close of course doesnt close them.
me.close will close the top form or dialog however still leaving the 1st dialog still open to be closed.
0
 

Author Comment

by:CraigWettstein
ID: 9734287
No, sorry, I have worked with dialog forms very little.
0

Featured Post

Fill in the form and get your FREE NFR key NOW!

Veeam® is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question