[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Problems with form back color

Posted on 2000-03-03
6
Medium Priority
?
146 Views
Last Modified: 2010-05-02
Hi
i am trying to change the backcolor of my form from blue 2 white.
it is not changing
this is the code i am trying to use. I am able to change my labels and text boxes with the same method except fpr the form backcolor

batches.backcolor = &h0&

Thanx
Craig

0
Comment
Question by:CraigLazar
[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 14

Accepted Solution

by:
wsh2 earned 90 total points
ID: 2579316
batches.backcolor = &H00FFFFFF&
0
 
LVL 10

Expert Comment

by:caraf_g
ID: 2579650
OK, apart from the fact that you've specified black as the backcolour rather than white I don't see a major mistake - the colour should still have changed.

Perhaps you're working with an instance of the form, and an object variable, and in this case you accidentally used the form name?

e.g.

Dim frmX As frmMain
Set frmX = New frmMain

frmX.SomeButton.BackColor = vbWhite

frmMain.BackColor = vbWhite '<-wrong,
frmX.BackColor = vbWhite '<-correct

?
0
 
LVL 14

Expert Comment

by:wsh2
ID: 2579666
Very good Caraf G.. I forgot all about the VB color constants.. thank you for the reminder.. <smile>
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 10

Expert Comment

by:caraf_g
ID: 2595028
Craig, I don't understand how wsh2's suggestion solved your problem?

In your question you state that you do:
batches.backcolor = &h0&

But, when you try that
"it is not changing"

That doesn't make sense. The form should have changed, except it should have gone black instead of white.

So from the premise that you gave us correct information in your question it logically follows that wsh2's answer cannot be the correct answer to solve your problem.
0
 
LVL 4

Author Comment

by:CraigLazar
ID: 2595089
Hi cara_g
i am very sorry
i meant to ask u to post the answer but i was in a rush and only realised after i acepted the answer.
So i am gonna post another question for u only to answer and i will grade it. Sorry mate i am embarrased and sorry if i hacked u off.

thanx for the great help

Craig
0
 
LVL 10

Expert Comment

by:caraf_g
ID: 2595134
Not at all, Craig, I didn't mean to come across like that. I was genuinely confused as I couldn't work it out.

Thanks

Pino
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

656 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