473,383 Members | 1,855 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Strange combo box functionality

I have encountered a combo box acting with a mind of its own in a
VB.NET Windows app.

I have a wizard consisting of a tab control; depending on which page
is being displayed the tabs are added or removed.

On page 1 of the wizard I have a combo box which is populated via its
datasource using an array.

I show page 1 and choose an item in the combo box (other than the 1st
item) and then proceed onto the next page. This is where it gets
strange.

If I go back to page 1 without entering any data on page 2 the value
in the combo is still as before.

If I go back to page 1 after entering some data on page 2 the value in
the combo has changed to the 1st value in the combo. (NB. No combo
change events are fired in this step)

To prove it wasn't something in my code messing it up, I moved the
combo box off the tab control and repeated the tests. The value in the
combo remained the same.

Conclusion: The only thing that makes sense to me is that the tab
control is causing the combo to refresh under certain circumstances
(could be the adding or removing of the tabs in the tab control).

Any thoughts, anyone?

Edward
--
The reading group's reading group:
http://www.bookgroup.org.uk
Nov 20 '05 #1
1 1411
Removing the tabs will force a repaint.

Which is why your probably losing values.

-CJ
"Edward" <te********@hotmail.com> wrote in message
news:25**************************@posting.google.c om...
I have encountered a combo box acting with a mind of its own in a
VB.NET Windows app.

I have a wizard consisting of a tab control; depending on which page
is being displayed the tabs are added or removed.

On page 1 of the wizard I have a combo box which is populated via its
datasource using an array.

I show page 1 and choose an item in the combo box (other than the 1st
item) and then proceed onto the next page. This is where it gets
strange.

If I go back to page 1 without entering any data on page 2 the value
in the combo is still as before.

If I go back to page 1 after entering some data on page 2 the value in
the combo has changed to the 1st value in the combo. (NB. No combo
change events are fired in this step)

To prove it wasn't something in my code messing it up, I moved the
combo box off the tab control and repeated the tests. The value in the
combo remained the same.

Conclusion: The only thing that makes sense to me is that the tab
control is causing the combo to refresh under certain circumstances
(could be the adding or removing of the tabs in the tab control).

Any thoughts, anyone?

Edward
--
The reading group's reading group:
http://www.bookgroup.org.uk

Nov 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Karl Roes | last post by:
Hi All, I have a form with a standard combo box and 5 tabs in A2003. On Form Open, I set Me.Detail.Visible = False and in the after update event of the combo set Me.Detail.Visible = True,( to...
7
by: Arnold | last post by:
Greetings Gurus, In a mainform's header, I have a combobox named comboStudents. The rowsource for this combobox is: SELECT -999 As StudentID, "<Add New Student>" As FullName, "aaa" As...
2
by: tuffs | last post by:
Hi All, I am new to this group and this is my first mail to the group. I have a requirement wherein we need to support type ahead functionality for combo boxes. For e.g. Say we have 5...
2
by: scdowney | last post by:
First and foremost, thank you in advance for any attempts to help me out. I am working on a project with work, and it requires I use CSS selectors to locate elements within a webpage. For the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.