Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. How to Set different forecolor to numbers between 0-9.

How to Set different forecolor to numbers between 0-9.

Scheduled Pinned Locked Moved Visual Basic
helptutorialquestion
7 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mdrizwan_1
    wrote on last edited by
    #1

    Hello , I wanna create an VB6 Appln, in which each number between 0-9 has different forecolor .And when the number is pressed specified forecolor for that number should set in cell.Eg: If 0 = Red, 1=Green, 2 =Blue. When 0 is pressed its forecolor should be red and when 1 is pressed its forecolor should be Green and so on. And When 12 is pressed 1=Green and 2=Blue. Can anybody help me to achieve this.Any suggestion Appreciated.What should i start with? Regards Rizwan

    D 1 Reply Last reply
    0
    • M mdrizwan_1

      Hello , I wanna create an VB6 Appln, in which each number between 0-9 has different forecolor .And when the number is pressed specified forecolor for that number should set in cell.Eg: If 0 = Red, 1=Green, 2 =Blue. When 0 is pressed its forecolor should be red and when 1 is pressed its forecolor should be Green and so on. And When 12 is pressed 1=Green and 2=Blue. Can anybody help me to achieve this.Any suggestion Appreciated.What should i start with? Regards Rizwan

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      mdrizwan_1 wrote:

      I wanna create an VB6 Appln,

      A what? Are you saying that you want to create an Excel AddIn in VB6?

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008
      But no longer in 2009...

      M 1 Reply Last reply
      0
      • D Dave Kreskowiak

        mdrizwan_1 wrote:

        I wanna create an VB6 Appln,

        A what? Are you saying that you want to create an Excel AddIn in VB6?

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007, 2008
        But no longer in 2009...

        M Offline
        M Offline
        mdrizwan_1
        wrote on last edited by
        #3

        Hello Dave Kreskowiak, Thanks for your response. You may assume it as an AddIn. Its a mini project where i can enter number with different colors and save it in Excel or any supportable format. and it should be editable. Any suggestion appreciated? Regards Rizwan

        D 1 Reply Last reply
        0
        • M mdrizwan_1

          Hello Dave Kreskowiak, Thanks for your response. You may assume it as an AddIn. Its a mini project where i can enter number with different colors and save it in Excel or any supportable format. and it should be editable. Any suggestion appreciated? Regards Rizwan

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          I've never written an Excel AddIn in VB6 and I recommend you don't either. I'd use something far more up-to-date, like VB.NET. You can find examples with a little application of Google. Here...[^]

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007, 2008
          But no longer in 2009...

          M 1 Reply Last reply
          0
          • D Dave Kreskowiak

            I've never written an Excel AddIn in VB6 and I recommend you don't either. I'd use something far more up-to-date, like VB.NET. You can find examples with a little application of Google. Here...[^]

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                 2006, 2007, 2008
            But no longer in 2009...

            M Offline
            M Offline
            mdrizwan_1
            wrote on last edited by
            #5

            Hello Dave, Thanks for the link .Can you help me for a start ??? Regards Rizwan

            D 1 Reply Last reply
            0
            • M mdrizwan_1

              Hello Dave, Thanks for the link .Can you help me for a start ??? Regards Rizwan

              D Offline
              D Offline
              Dave Kreskowiak
              wrote on last edited by
              #6

              I already did with the links. I've never written an Excel AddIn, nor have I touched VB6 in about 8 years.

              A guide to posting questions on CodeProject[^]
              Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                   2006, 2007, 2008
              But no longer in 2009...

              M 1 Reply Last reply
              0
              • D Dave Kreskowiak

                I already did with the links. I've never written an Excel AddIn, nor have I touched VB6 in about 8 years.

                A guide to posting questions on CodeProject[^]
                Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                     2006, 2007, 2008
                But no longer in 2009...

                M Offline
                M Offline
                mdrizwan_1
                wrote on last edited by
                #7

                Thanks for it Dave. Regards Rizwan

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups