473,503 Members | 2,082 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1442
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
3668
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
1462
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
2077
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
3793
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
5320
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
4129
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
2457
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
7491
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
13373
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
7204
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,...
0
7091
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...
0
7342
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...
1
6998
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...
0
5586
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4680
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3162
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
741
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
391
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...

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.