473,624 Members | 2,185 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ComboBox ReadOnly

Hi,

using vb 2005 I'd like to have a combobox in READONLY mode, like I have for
textbox.
Combobox only has enabled property. When I turn this property false I can
not select the text in the combo.

Has anyone solved this problem?

Thanks
Mar 13 '06 #1
6 10524
Roberto,

Set the combobox's DropDownStyle to DropDownList.

Kerry Moorman
"Roberto" wrote:
Hi,

using vb 2005 I'd like to have a combobox in READONLY mode, like I have for
textbox.
Combobox only has enabled property. When I turn this property false I can
not select the text in the combo.

Has anyone solved this problem?

Thanks

Mar 13 '06 #2
Dear Kerry,

thanks for your reply, buti it is not what I'm asking for...maybe my
question was not well explained!

I need a combox in readonly mode from which I don't have to select, but from
which I can highlight text. Taht's what I'm looking for!

Thanks
Roberto,

Set the combobox's DropDownStyle to DropDownList.

Kerry Moorman
"Roberto" wrote:
Hi,

using vb 2005 I'd like to have a combobox in READONLY mode, like I have for
textbox.
Combobox only has enabled property. When I turn this property false I can
not select the text in the combo.

Has anyone solved this problem?

Thanks

Mar 13 '06 #3
Roberto,

I don't understand what you are asking for.

Perhaps you can give an example of what would be in the combobox and how you
want the user to be able to interact with the combobox.

Kerry Moorman
"Roberto" wrote:
Dear Kerry,

thanks for your reply, buti it is not what I'm asking for...maybe my
question was not well explained!

I need a combox in readonly mode from which I don't have to select, but from
which I can highlight text. Taht's what I'm looking for!

Thanks
Roberto,

Set the combobox's DropDownStyle to DropDownList.

Kerry Moorman
"Roberto" wrote:
Hi,

using vb 2005 I'd like to have a combobox in READONLY mode, like I have for
textbox.
Combobox only has enabled property. When I turn this property false I can
not select the text in the combo.

Has anyone solved this problem?

Thanks

Mar 13 '06 #4
I need a readonly property for ComboBox, similar to the read-only property of
a textbox.

In essence, make a combobox readonly...maki ng the combobox text not gray out
but be disabled. There is no readonly property for a combobox like there is
for a text box.

Thanks
"Kerry Moorman" wrote:
Roberto,

I don't understand what you are asking for.

Perhaps you can give an example of what would be in the combobox and how you
want the user to be able to interact with the combobox.

Kerry Moorman
"Roberto" wrote:
Dear Kerry,

thanks for your reply, buti it is not what I'm asking for...maybe my
question was not well explained!

I need a combox in readonly mode from which I don't have to select, but from
which I can highlight text. Taht's what I'm looking for!

Thanks
Roberto,

Set the combobox's DropDownStyle to DropDownList.

Kerry Moorman
"Roberto" wrote:

> Hi,
>
> using vb 2005 I'd like to have a combobox in READONLY mode, like I have for
> textbox.
> Combobox only has enabled property. When I turn this property false I can
> not select the text in the combo.
>
> Has anyone solved this problem?
>
> Thanks

Mar 13 '06 #5
Roberto,

Sorry I thought as well that Kerry had answered your question in his first
reply

Did you try what he told.

Cor
Mar 13 '06 #6
See an article I wrote in July 2005 from http://emoreau.s2i.com/

--
HTH

Éric Moreau, MCSD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Concept S2i inc. (www.s2i.com)
http://emoreau.s2i.com/

"Roberto" <Ro*****@discus sions.microsoft .com> wrote in message
news:18******** *************** ***********@mic rosoft.com...
I need a readonly property for ComboBox, similar to the read-only property
of
a textbox.

In essence, make a combobox readonly...maki ng the combobox text not gray
out
but be disabled. There is no readonly property for a combobox like there
is
for a text box.

Thanks
"Kerry Moorman" wrote:
Roberto,

I don't understand what you are asking for.

Perhaps you can give an example of what would be in the combobox and how
you
want the user to be able to interact with the combobox.

Kerry Moorman
"Roberto" wrote:
> Dear Kerry,
>
> thanks for your reply, buti it is not what I'm asking for...maybe my
> question was not well explained!
>
> I need a combox in readonly mode from which I don't have to select, but
> from
> which I can highlight text. Taht's what I'm looking for!
>
> Thanks
>
>
>
> > Roberto,
> >
> > Set the combobox's DropDownStyle to DropDownList.
> >
> > Kerry Moorman
> >
> >
> > "Roberto" wrote:
> >
> > > Hi,
> > >
> > > using vb 2005 I'd like to have a combobox in READONLY mode, like I
> > > have for
> > > textbox.
> > > Combobox only has enabled property. When I turn this property false
> > > I can
> > > not select the text in the combo.
> > >
> > > Has anyone solved this problem?
> > >
> > > Thanks

Mar 14 '06 #7

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

Similar topics

1
254
by: Ehud | last post by:
does anyone know how to make a combobox readonly? that is, you can choose from it, but not enter new text at the top row (when closed) ehud
1
4004
by: Jesper | last post by:
Hi, Is there a way to lock a combobox ( pseudo read-only) for direct text editing, such that it only can be changed/edited by selecting one of the values in Combobox.Items. Best regrets Jesper
3
3023
by: PeterZ | last post by:
G'day, After doing much searching and pinching bits of ideas from here there and everywhere I came up with a fairly 'clean' solution of including a comboBox into a dataGrid column. You can download a fully working C# sample with the Northwind.mdb here: www.insightgis.com.au/web/stuff/DataGridCombo.zip
1
42496
by: cashdeskmac | last post by:
I have a combobox which contains the different departments at my work place. However, if the user types another name into the combobox, it is accepted. I wish to allow only the names already associated with the control. Also, how can I set the control so that the user can type, for example, the letter "M" and it takes them to the first instance, which is manager? Visual Studio has no readonly property in the properties window, and doesn't...
9
2468
by: Jason Simard via .NET 247 | last post by:
Hi, Does anyone know a way to make a combobox "read-only", similar to the read-only property of a textbox? In essence, make a combobox readonly...making the combobox text not gray out but be disabled. There is no readonly property for a combobox like there is for a text box. Thx, Jason
3
8074
by: **Developer** | last post by:
I want to have a ComboBox that is loaded programmically not except keyboard inputs. I tried in KeyDown not calling MyBase.OnKeyDown(e) and also tried setting e.Handled = True but neither appear to suppress the keyboard input. Any suggestions I could try will be appreciated
1
1009
by: Zhiv Kurilka | last post by:
Hi, I need a drop down combobox, where user can only select values, but not change text. But I see no combobox.Readonly or combobox.Editable property. Please help,
1
2619
by: leiger | last post by:
Hi, I need help with this problem as soon as possible (within a couple of days). This is the first time I have ever used Access 2007 and therefore I am having some problems - especially as I am attempting some things I have never used in a database before this. As you can see in the picture, I need to create a form to edit pet details. I want to use a combo box to select the owner, then (if possible) have all of the records in the...
1
1294
by: sandeepdhole | last post by:
hello friends........ i am beginner in vb.net , i have to lock the combobox,. i searched very much on net, but i didnt get solution.by using following code i have made combobox readonly, but i have to lock the combobox................................ Combocen.DropDownStyle = ComboBoxStyle.DropDownList ......... plz help me......
0
8234
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
8677
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8335
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
7158
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6110
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
5563
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4174
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1784
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1482
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.