Results 1 to 3 of 3

Thread: [RESOLVED] [2005] Color Dialog

  1. #1

    Thread Starter
    Hyperactive Member leeprice2006's Avatar
    Join Date
    Jul 2006
    Posts
    258

    Resolved [RESOLVED] [2005] Color Dialog

    Hi I was wondering if it is possible to display the color selected in a color dialog as a HTML HEX color in a text box?
    Hello, Im a complete beginner so I if I ask obvious questions don't laugh. I have had no special training and I thought I'd learn and I thought this is the best place to start.

    I started off using VB 6.0 but when I bought a new computer I decided to upgrade to VB 2005, so its a little bit different to what i'm used to

  2. #2
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: [2005] Color Dialog

    Try this.

    VB Code:
    1. If ColorDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then
    2.             MessageBox.Show(Drawing.ColorTranslator.ToHtml(ColorDialog1.Color))
    3.         End If
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  3. #3

    Thread Starter
    Hyperactive Member leeprice2006's Avatar
    Join Date
    Jul 2006
    Posts
    258

    Re: [2005] Color Dialog

    thank you!
    Hello, Im a complete beginner so I if I ask obvious questions don't laugh. I have had no special training and I thought I'd learn and I thought this is the best place to start.

    I started off using VB 6.0 but when I bought a new computer I decided to upgrade to VB 2005, so its a little bit different to what i'm used to

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width