change appearence for textbox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shruthiKKKK
    New Member
    • Oct 2007
    • 3

    change appearence for textbox

    change appearence for textbox by using combolist
    Last edited by debasisdas; Oct 30 '07, 11:19 AM. Reason: Changed the caption to more appropriate one.
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    Kindly post your question clearly .

    What exactly you are trying to do ?

    Comment

    • shruthiKKKK
      New Member
      • Oct 2007
      • 3

      #3
      change textbox appearance using by combobox listindex

      i taken a new form in vb6.0
      then i placed 1 textbox and 1 combobox.
      for combobox i given a list that is 0 and 1.
      my problem is|
      i want change the appearance of textbox by using cobo's list.


      how can i wright code in vb6 for this?

      Comment

      • shruthiKKKK
        New Member
        • Oct 2007
        • 3

        #4
        please give code for my quetion?

        Comment

        • debasisdas
          Recognized Expert Expert
          • Dec 2006
          • 8119

          #5
          what doyou mean by appeareance ?

          Are you trying to change the text of textbox from combobox selection.

          Comment

          • debasisdas
            Recognized Expert Expert
            • Dec 2006
            • 8119

            #6
            Both the threads are merged for better management of forum.

            Comment

            • Copyrite
              New Member
              • Oct 2007
              • 16

              #7
              What do you mean by change appearance?

              The size?
              Text Colour?
              Background Color?
              Font Style? etc.

              Comment

              • Ali Rizwan
                Banned
                Contributor
                • Aug 2007
                • 931

                #8
                Originally posted by Copyrite
                What do you mean by change appearance?

                The size?
                Text Colour?
                Background Color?
                Font Style? etc.
                Hello,
                Here is a sample. I think this will be enough for your requirements.

                GOOD LUCK
                ALI
                Attached Files
                Last edited by Killer42; Nov 2 '07, 01:11 AM.

                Comment

                • jamesd0142
                  Contributor
                  • Sep 2007
                  • 471

                  #9
                  Basically double-click your combobox,

                  use the IndexChanged event (or similar)

                  and put

                  If cbobox.selected item.text = "0" then
                  do something to text box
                  elseif cbobox.selected item.text = "1" then
                  do something to text box
                  end if
                  Last edited by Killer42; Nov 2 '07, 01:19 AM.

                  Comment

                  Working...