Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB 6.0 and XP Pro

Status
Not open for further replies.

doramsey

Programmer
Sep 13, 2001
12
US
Using VB 6.0, I have a dropdown combo that when a listmember(name for example) is selected associated data for the selection is displayed. All data is updated on my form except the combobox text is empty.(This is in the development mode) All works fine on Win98 and even on XP Pro if I create an exe and run it. Help!
 
I switched to XP (when it came out) and had the same problem. I could not create the exe successfully. After spending too much time not finding a solution I eventiually switched back to win 2000. I know this is not what you want to hear but you may need to compile and build on another OS. Either switch yours or install VB on another machine.

Thanks and Good Luck!

zemp
 
Try a Me.Refresh whenever a selection is made.
Also solved the problem when using SetFocus on an XP machine.
Seems to be caused by XP enhanced visual interface.
 
Sorry, monday morning, I completely misunderstood the question. Thought that you were having trouble creating the exe.

Thanks and Good Luck!

zemp
 
Thanks rzs0502 but neither idea solved the problem. Let me further explain what's happenning...I select an item in the dropdown combobox, the click event calls a function that updates form data with data associated with the newly selected combobox item and combobox.text is set to new name. All is fine til the click event is exited (I put a msgbox statement in as last line and all data is there. When continuing (exiting the click event) the combobox.text is cleared. Same codes works great with Win 98 and ME.
 
I have been using XP for more than a year now, never had any troble with VB.

Would you be able to paste some of your code, it's looks like something is happening after you click event

**********************************
May the Code Be With You...
----------
x50-8 (X Fifty Eigt)
 
Couldn't be the code...its works on 98 and ME and NT. ANd it even works on XP from the EXE.
 
x50-8, it is something happening after the click event. If I put a break on the End statement of the Click event, the form is show and the combobox is updated. Then I click the resume, focus is returned to the combobox in which the text is blank. The box is still populated though.
 
The reason why I am asking is I have once found a problem with win9x that is this

Everything worked fine by me but on win98 is gave some errors where I had used variable = text1 instead of variable = text1.text

Just a thought
can you submit your'e code?

**********************************
May the Code Be With You...
----------
x50-8 (X Fifty Eigt)
 
All I can now think of is to disable all visual effects on XP...

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top