|
-
Oct 19th, 2000, 11:49 AM
#1
Thread Starter
Hyperactive Member
What is the code to change the background color in a user form to white?
Thanks Alot,
David Gottlieb
CIW Certified Internet Webmaster
Web Developer/Designer
-
Oct 19th, 2000, 12:03 PM
#2
Hyperactive Member
Easy!
Simply set the form's backcolor property to white.
form1.backcolor = &H8000000E8&
-
Oct 19th, 2000, 02:20 PM
#3
It's much easier to use the constants.
Code:
Form1.BackColor = vbWhite
-
Oct 19th, 2000, 02:52 PM
#4
Thread Starter
Hyperactive Member
Thanks Alot,
David Gottlieb
CIW Certified Internet Webmaster
Web Developer/Designer
-
Oct 19th, 2000, 02:54 PM
#5
Thread Starter
Hyperactive Member
Oh yeah. How do I change it back to the default color?
Thanks Alot,
David Gottlieb
CIW Certified Internet Webmaster
Web Developer/Designer
-
Oct 19th, 2000, 04:00 PM
#6
transcendental analytic
Code:
Form1.BAckColor=vb3DFace
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Oct 20th, 2000, 09:18 AM
#7
Thread Starter
Hyperactive Member
I am trying that code and it is not working. I have a multi page form too. It has two pages. The reason I need to turn it white is so that it will print white so that it can be faxed. Here is my code:
Code:
Sub Print()
frmReferral.BackColor = vbWhite
frmReferral.PrintForm
frmReferral.BackColor = vb3DFace
End Sub
What is wrong?
Thanks Alot,
David Gottlieb
CIW Certified Internet Webmaster
Web Developer/Designer
-
Oct 20th, 2000, 06:09 PM
#8
transcendental analytic
Code:
Sub Print()
frmReferral.BackColor = vbWhite
Doevents
frmReferral.PrintForm
frmReferral.BackColor = vb3DFace
End Sub
The form won't paint unless you give it a chance In fact it first prints, then paint it white and immediately paints it back. Doevents will allow your form to repaint.
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Oct 23rd, 2000, 01:10 PM
#9
Thread Starter
Hyperactive Member
For some reason that didn't work. What is wrong?
Code:
Sub Print1()
frmReferral.BackColor = vbWhite
DoEvents
frmReferral.PrintForm
frmReferral.BackColor = vb3DFace
MsgBox "Please pick up your referral off of the printer and save it for your personal records."
End Sub
Thank you for your help
Thanks Alot,
David Gottlieb
CIW Certified Internet Webmaster
Web Developer/Designer
-
Oct 23rd, 2000, 01:19 PM
#10
Thread Starter
Hyperactive Member
This may be the problem. I have MultiPage. I have two tabs that I am using over the form. How would I identify those to change them white?
Thanks Alot,
David Gottlieb
CIW Certified Internet Webmaster
Web Developer/Designer
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|