Results 1 to 6 of 6

Thread: [RESOLVED] [2005] Color dialog -- show current color?

Hybrid View

  1. #1
    PowerPoster sparrow1's Avatar
    Join Date
    May 2005
    Location
    Globetrotter
    Posts
    2,820

    Re: [2005] Color dialog -- show current color?

    Hi,

    Did you tryed this;

    vb Code:
    1. TextBox1.Backcolor = ColorDialog1.Color

    Wkr,

    sparrow1
    Wkr,
    sparrow1

    If I helped you, don't forget to Rate my post. Thank you

    I'm using Visual Studio.Net 2003 and
    2005
    How to learn VB.Net Create setup with VB 2005 Drawing for beginners VB.Net Tutorials GDI+ Tutorials
    Video's for beginners

  2. #2

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2007
    Posts
    751

    Re: [2005] Color dialog -- show current color?

    I'm not having a problem with the chosen dialog color.

    What I mean is, AFTER it has a color in it.

    Let's say I go back and double click the textbox to perhaps change the color.

    I've seen some programs (maybe they were graphics -- can't remember) where
    once you bring up the color dialog, it will actually show you the value of the current color in RGB.

    That's what I want to achieve.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2007
    Posts
    751

    Re: [2005] Color dialog -- show current color?

    Or maybe what you're saying is that part of my IF routine with the box, I should make the color dialog color the textbox color?

    so it would be the reverse?

    colordialog1.color = textbox1.color

    I'll try it.

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