martin2k

Google
 
Web www.martin2k.co.uk

Combo box_Change


Home Read and add posts to the Visual Basic 6.0 Forums Download some of my programs and OCXs Read the Tips here The old style forum is still available here Contact

Back


From: Devin E-mail: devinmcnally@lycos.com 1

Date: Tuesday, October 23, 2001 at 05:03:47

Subject: Combo box_Change

Comments:

ok...  I'm new to VB but I had an idea for a program so I decided to jump right in.  For some reason, my combo box change procedure is not executing when I change the text in the combo box. It does work with the get focus thing... which is what confuses me.  I leave everything else the same and it doesn't work with _change.  Any suggestions would be greatly appreciated.

Private Sub CharClass_Change()
    CharMaxHP.Text = 12
End Sub

CharClass is the name of the combo box.  CharMaxHP is a textbox.  I am sure the names are correct and match.  I'm just using this simple line to trouble-shoot cause it should make the textbox read 12 when I change the combo box text... shouldn't it?

From: Martin Allen E-mail: <No e-mail> 2

Date: Wednesday, October 24, 2001 at 19:43:06

Subject: RE: Combo box_Change

Comments:

I created a textbox called CharMaxHP and a combobox called CharClass and pasted your code into the code window.  When typing some text into the combobox the textboxes text changes to '12'.  I am not sure why this doesn't work when you try it.  Maybe you are also using the textboxes change event that executes when the textboxes text changes.


This forum is no longer taking new messages or replies since 01 November 2002.  The above material is for reference purposes only.

The new Visual Basic 6.0 forum can be found here.


Martin Allen 1999 - 2003.  Last updated Monday 12 May 2003 08:10:37 PM +0100.