home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.visual.basic      MS Visual Basic discussions, NOT dot-net      10,840 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 9,532 of 10,840   
   Saxman to All   
   Option Buttons   
   27 May 05 20:08:41   
   
   From: john.h.williamsremovethis@btinternet.com   
      
   I created a text box labeled txtText1.   
      
   The text box has a sample of text within.   
      
   The Enabled property is set to False and the Multiline property set to True.   
      
   I have four option buttons set within a frame labeled fra1.   
      
   The four option buttons are:-   
      
   optForeRed   
   optForeYellow   
   optForeBlue   
   optForeGreen   
      
   I have set up the following as constants in the General Declarations:-   
      
   RED = &HFF&   
   YELLOW = &HFFFF&   
   BLUE = &HFF0000   
   GREEN = &HC000&   
      
   What is the code required to alter the forecolour of the textbox for   
   clicking on any of the option buttons please?   
      
   This looks a simple task, but I cannot sort it by trying several   
   different coding examples.   
      
   Thanks in advance from a complete novice.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca