473,383 Members | 1,859 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.

Bug with ComboBox in usercontrol

My problem is: I have comboboxes which resides in a usercontrol.

Always when the usercontrol changes its visible status (the dialog is shown
or you switch to the tabpage where the usercontrol is), all text is selected
in the textfield of the combobox.

Is this a Bug? If yes, is there a workaround?

--
cody

[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk
Jul 21 '05 #1
5 1437
Is this a Bug? No

"codymanix" <do*********************@gmx.de> wrote in message
news:u#**************@TK2MSFTNGP12.phx.gbl... My problem is: I have comboboxes which resides in a usercontrol.

Always when the usercontrol changes its visible status (the dialog is shown or you switch to the tabpage where the usercontrol is), all text is selected in the textfield of the combobox.

Is this a Bug? If yes, is there a workaround?

--
cody

[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk

Jul 21 '05 #2
100
Hi codymanix,
AFAIK single line edit box (combobox uses such a control)selects the text
upon receiving the focus.

B\rgds
100

"codymanix" <do*********************@gmx.de> wrote in message
news:u%****************@TK2MSFTNGP12.phx.gbl...
My problem is: I have comboboxes which resides in a usercontrol.

Always when the usercontrol changes its visible status (the dialog is shown or you switch to the tabpage where the usercontrol is), all text is selected in the textfield of the combobox.

Is this a Bug? If yes, is there a workaround?

--
cody

[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk

Jul 21 '05 #3
> AFAIK single line edit box (combobox uses such a control)selects the text
upon receiving the focus.


The problem is, in that usercontrol there are many comboboxes and they are
*all* marked as selected (text has blue selected background). And none of
them has the focus, neither has the usercontrol. The real focus has another,
unrelated control in the window.

I can only unselect the text of the comboboxes when I click in them and then
click out. But when I switch to another tabpage and switch back they are
selected again.

I *would* call that a Bug!

--
cody

[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk
Jul 21 '05 #4
> > Is this a Bug?
No

Why not? Is is supposed to be that if I open the dialog, *all* comboboxes in
the usercontrols has their text selected, and even if I unselect the text,
when I switch the tabpage back and forth, they are selected again!

--
cody

[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk
Jul 21 '05 #5
100
Hi codymanix,
I couldn't reproduce the problem. If you want to you can post an example
demontrating it.

B\rgds
100
"codymanix" <do*********************@gmx.de> wrote in message
news:uw**************@TK2MSFTNGP09.phx.gbl...
AFAIK single line edit box (combobox uses such a control)selects the text upon receiving the focus.
The problem is, in that usercontrol there are many comboboxes and they are
*all* marked as selected (text has blue selected background). And none of
them has the focus, neither has the usercontrol. The real focus has

another, unrelated control in the window.

I can only unselect the text of the comboboxes when I click in them and then click out. But when I switch to another tabpage and switch back they are
selected again.

I *would* call that a Bug!

--
cody

[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk

Jul 21 '05 #6

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

Similar topics

1
by: bob scola | last post by:
I have a csharp, VS 2003 solution for a winform application The application uses an object called a "matter" and the class is defined in matter.cs. I can load matter objects into a combobox ...
5
by: codymanix | last post by:
My problem is: I have comboboxes which resides in a usercontrol. Always when the usercontrol changes its visible status (the dialog is shown or you switch to the tabpage where the usercontrol...
2
by: John B | last post by:
Hello I want to create a set of controls that have some common methods and properties. I was thinking that I should subclass the UserControl class and add these common features there and then...
3
by: Don | last post by:
My user control has a combobox with an arraylist attached to it along with custom add and remove methods. The "Add" method is working great. However I don't understand why the "Remove" method...
13
by: Michael Maes | last post by:
Hi, I have a UserControl containing some controls of which one is a ComboBox. All the InternalControls are Private and some are allowed to be accessed through Public Methods. One of the things I...
8
by: ChrisK | last post by:
Hi, I'm beginner with VB.net and i have a trouble... At work, they decided to program with tabcontrol...and i'mm in charge of this ! There is my problem. I've a form with one tabcontrol (TBC1...
4
by: Martin | last post by:
Hi everyone ! For those who haven't read my previous post, I have a problem with a UserControl. When I try to display it on a form, controls seem to appear one after one. In the following...
3
by: Simon Tamman | last post by:
I've come across an interesting bug. I have workarounds but i'd like to know the root of the problem. I've stripped it down into a short file and hope someone might have an idea about what's going...
8
by: =?Utf-8?B?RyBIdXN0aXM=?= | last post by:
This is the 2nd time posting so sorry for duplications. I am using VB.NT 2005 & a standard Combobox. I've been wracking my brain over this problem for a over a month & cannot seem to find a way to...
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.