Jump to content

form background to the selected colour

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
10 replies to this topic

#1
mosgba

mosgba

    Newbie

  • Members
  • PipPip
  • 15 posts
i want to write a Visual Basic program that allows users to select a colour from the combo box and change the form background colour to the selected colour. The colour options are: Black, Blue, Green, Light Cyan, Light Red, Magenta, Light Yellow, Bright White, and Gray. help pls and thank you in advance

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
What do you have so far?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
mosgba

mosgba

    Newbie

  • Members
  • PipPip
  • 15 posts
i have so far

Private Sub cmb_BgColour()
Background colour.BgColoure = cmbBgColour.Coloure = "blue"
End Sub

Private Sub cmbBgColoure_Change()
BackColor.BackColor = QBColor(lightred)
End Sub

#4
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
Please use CODE tags.

Just hook it up to a ColorDialog and use its Color property to be assigned to the form's BackColor property.
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#5
eyes888

eyes888

    Newbie

  • Members
  • Pip
  • 2 posts
How to know the System & Hardware information using VB thnks

#6
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
I don't understand your question, eyes888?
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#7
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
I believe he wants a program that will probe the computer's hardware and display it. Things like what video card you have, how much RAM, etc.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#8
eyes888

eyes888

    Newbie

  • Members
  • Pip
  • 2 posts
"I believe he wants a program that will probe the computer's hardware and display it. Things like what video card you have, how much RAM, etc."

You got my point thanks..

#9
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
Well, why ask it here then? Create a new thread.
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#10
Guest_duabevnh_*

Guest_duabevnh_*
  • Guests
New thread did'nt create!

#11
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
WTF?
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums