Wrox Programmer Forums
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 27th, 2007, 02:26 AM
Registered User
 
Join Date: Feb 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default checkbox trouble

Checkbox trouble

At run time, when i click on the check box the text inside the label control displays a false string,
i want the text string to be display in bold..once the check box has been tick..

here is my code, what am i doing wrong..



Private Sub boldCheckBox_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles boldCheckBox.CheckedChanged

        With Me
            KindredBloomOrderForm.formHeaderlbl.ForeColor = Color.Black
            If .boldCheckBox.Checked Then
                KindredBloomOrderForm.formHeaderlbl.Text = Font.Bold = True


            End If
        End With

 
Old October 28th, 2007, 09:34 PM
Friend of Wrox
 
Join Date: Sep 2005
Posts: 812
Thanks: 1
Thanked 53 Times in 49 Posts
Default

Hi

KindredBloomOrderForm.formHeaderlbl.Font.Bold = True

should be fine to change the font of the label

Cheers
Shasur

http://www.dotnetdud.blogspot.com

VBA Tips & Tricks (http://www.vbadud.blogspot.com)





Similar Threads
Thread Thread Starter Forum Replies Last Post
If Else Trouble Cibressus Beginning PHP 0 May 1st, 2007 02:04 PM
checkbox checked by default by html:checkbox sachin.tathod Struts 3 December 4th, 2006 03:41 PM
ASP.NET C# - Trouble with checkbox booksnore2 General .NET 1 October 5th, 2004 11:46 PM
trouble databass Classic ASP Databases 2 August 16th, 2003 10:27 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.