Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB.NET
|
VB.NET General VB.NET discussions for issues that don't fall into other VB.NET forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 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 June 4th, 2003, 02:55 AM
Registered User
 
Join Date: Jun 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default changing property doesn't work

I've created a class with a label with forecolor red. I've put this label on a form. Then I change the forecolor of the label in the class to yellow. But the label on the form stays red. Is this normal behaviour ?
 
Old June 4th, 2003, 12:43 PM
Registered User
 
Join Date: Jun 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to mc439
Default

I've experienced this type of behaviour before, and in the past insuring that the form redrew itself helped.
you can try frmName.ActiveForm.Refresh() where frmName is your form's name.
Hope it helps.
 
Old June 5th, 2003, 06:35 AM
Registered User
 
Join Date: Jun 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This happens not when i'm running my form , but when i'm in desigmode. Even when i run it stays the same color like before.
 
Old June 5th, 2003, 09:27 AM
Authorized User
 
Join Date: Jun 2003
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Its not inheriting the forecolour of the container is it?

If the forms forecolour is red, try changing the forecolour of the form and see what happens.

Quote:
quote:Originally posted by Vanni
 I've created a class with a label with forecolor red. I've put this label on a form. Then I change the forecolor of the label in the class to yellow. But the label on the form stays red. Is this normal behaviour ?
 
Old July 1st, 2005, 07:50 AM
Registered User
 
Join Date: Jul 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Satishhhh
Default

This will not be a normal behaviour..





Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing the BackColor property of a Form Qman69 Visual Basic 2005 Basics 0 March 14th, 2007 04:43 PM
Problem when changing the Location property armandoa Crystal Reports 0 October 8th, 2004 06:21 PM
changing the onclick property dynamically? nerssi Javascript 8 September 21st, 2004 12:59 AM
Changing Control Property from another Frame Wandha ASP.NET 1.0 and 1.1 Basics 4 August 8th, 2003 01:34 AM
Changing Control Property from another Frame Wandha Forum and Wrox.com Feedback 1 August 5th, 2003 07:43 AM





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