|
-
Oct 7th, 2002, 05:45 AM
#1
Thread Starter
Hyperactive Member
Form BackGround Color[RESOLVED]
hi,
i need to know whether can i use my own colors for the background of a form.
When i go to the form-->properties-->back color, i get onl limited colors in the pallete.I need to have my own custom color as background.
The html equivalent of my colors is "#ccddff" and "#000033"
Can anyone provide me with the Windows constant for these colors?????
If this is not possible then another approach wud be that i will create a background image with thez colors.
Can anyone help me in this????
regds,
ashay
Last edited by ashay; Oct 7th, 2002 at 06:05 AM.
"If you should die before me, ask if you could bring a friend."
- Stone Temple Pilots
-
Oct 7th, 2002, 05:54 AM
#2
Fanatic Member
first one is RGB(204, 221, 255)
second is RGB(0, 0, 51)
ie.
VB Code:
Form1.BackColor = RGB(204, 221, 255)
-
Oct 7th, 2002, 05:55 AM
#3
Thread Starter
Hyperactive Member
hi,
thanx for the reply....but i hv never used this kinda code before....
can u plz explain how do i use it to change the form back ground color.......
regds,
ashay
"If you should die before me, ask if you could bring a friend."
- Stone Temple Pilots
-
Oct 7th, 2002, 05:56 AM
#4
Fanatic Member
just edited my last reply
-
Oct 7th, 2002, 05:58 AM
#5
Frenzied Member
Form_Load
or command1_click
when ever you want your color to change
Mostly form_load
-
Oct 7th, 2002, 05:59 AM
#6
Thread Starter
Hyperactive Member
hi,
dat was real fast....n it works....thanx a lot dude
By the way ....mind telling me how u get the RGB values so that in the future if i need some different color i need not bother u
regds,
ashay
"If you should die before me, ask if you could bring a friend."
- Stone Temple Pilots
-
Oct 7th, 2002, 06:01 AM
#7
Fanatic Member
teehee, i kinda cheated i used paint shop pro (it allows you to enter an HTML colour code and will give you the RGB values). not sure how you do it in code, but i'm sure there's lots of threads about it if you do a search.
-
Oct 7th, 2002, 06:04 AM
#8
Fanatic Member
-
Oct 7th, 2002, 06:04 AM
#9
Thread Starter
Hyperactive Member
hi tron,
thanx a ton again.......
All thez colors r static colors.....that is i dun wanna create the colors dynamically or sumthing like that.....
so i guess i will also use the paint shop to do this
thanx again....
regds,
ashay
"If you should die before me, ask if you could bring a friend."
- Stone Temple Pilots
-
Oct 7th, 2002, 06:07 AM
#10
Fanatic Member
the link i just posted has the code for it btw
-
Oct 7th, 2002, 06:07 AM
#11
Frenzied Member
U-can-also-use-M$-frontpage
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
|