473,320 Members | 2,080 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,320 software developers and data experts.

How to keep combo box kept unedited on runtime?

Adithya Adi
There are some List of items in my ComboBox Collection to choose the necessary on run time.
But on Run time, I can also write the value on the combo text and it is also saved in the database.

I dont need anything to be changed on the combobox. I need only the items to show in the dropdown list. No other items can be added to the database using combo box on the run time.

how can i manage that without using e.SuppressKeyPress=True ?
Dec 27 '11 #1
3 2201
Killer42
8,435 Expert 8TB
I'm not sure about VB.Net, but for the ComboBox control in VB6, you'd have set the Style property to "2 - Dropdown Listbox". Chances are it's something fairly similar.
Dec 28 '11 #2
Thank you, It works :) .. but it looks like a button. is there any other way that I could solve this out.
Dec 28 '11 #3
Killer42
8,435 Expert 8TB
I'm not familiar with adjusting the look of controls in VB.Net, sorry. I'd suggest you post that as a new question, as people may be more likely to notice it.

Be sure to have a play with the control first, though - it's much more satisfying if you can find the answer yourself.
Dec 29 '11 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Ivan Debono | last post by:
Hi, I keep getting an Unknown runtime error on line 3 below: 1 If oField.Type <> 136 Then 'adChapter 2 If Right(oField.name, 3) = "_id" Then 3 For Each...
7
by: Yongsub Eric Shin | last post by:
Hi. I'm just a beginner in ASP.Net. I started writing codes and I keep on getting this Runtime Error page, where it says "Description: An application error occurred on the server. The current...
4
by: Richard Hollenbeck | last post by:
I thought I was very specific in this SQL request. There is a form open with a selected record (and a corresponding "lngRecipeID" on that form. The table also has a field called "lngRecipeID". ...
0
by: kwng | last post by:
Hi. I have create a program that create controls such as textboxes, labels and combo box during runtime. However, the textboxes created have default property for multiline which is none. This is not...
2
by: MikeP | last post by:
Hi there, This is actually (probably) a C# or .NET issue. I'm working on an VS 2005 AddIn and at one point I'm caching all "EnvDTE80.ErrorItem" objects that result from compiling one or more...
0
by: Mr Gray | last post by:
HI guys, I am developing a winform and need to update the contents of a combo box at runtime. I currently click a button that brings up a new dialog and click save. I then return to the parent...
1
by: sunilkds | last post by:
I want code for how to clear values in the datacombo at run time. Plz give corect method or solution
4
by: sunilkds | last post by:
I want code for how to clear values in the datacombo box (not combo box) at run time. Plz give corect method or solution
0
by: Marie Gardner | last post by:
Hi, I want to create a form that filters a report that is between a date range, and includes only the data for the item selected in the combo box. For example, I am creating a time manager...
1
by: Marie Gardner | last post by:
Hi, I want to create a form that filters a report that is between a date range, and includes only the data for the item selected in the combo box. For example, I am creating a time manager...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.