473,786 Members | 2,451 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1421
Removing the tabs will force a repaint.

Which is why your probably losing values.

-CJ
"Edward" <te********@hot mail.com> wrote in message
news:25******** *************** ***@posting.goo gle.com...
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
1468
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 open form with no info showing ) I've noticed something quite strange. I open the form ( details are not visible ) select any record ID with the combo and the details come up OK. I click anywhere on the
7
3343
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 LastName, "x" As FirstName From qryStudents UNION SELECT StudentID, FullName, LastName, FirstName FROM qryStudents ORDER BY LastName;
2
4242
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 entries in combo box "1, 23, 14, 18, 4". The default functionality of combobox is, whenever I press 1 from key board, it will take me to first entry in combo box which starts with
2
3743
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 most part, I have had no issues using the selectors, but I am having a very strange issue which does not seem to make much sense to me. Please advise if you have any input at all. Note, I am keeping this description at a high level for now because I...
0
9647
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9492
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10163
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10108
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9960
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7510
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5397
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3668
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.