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

Screen refresh issue

RSH
Hi,

I have a Windows form that has several ComboBoxes on it. I would like to be
able to clear the existing values when the user clicks on the Clear button,
and then I need some of the Combos to be disabled. The problem I am having
is that all of the Combo boxes retain their last selected value on screen.

cmbAccessTable.Items.Clear();

cmbAccessTable.Enabled = false;

cmbSQLDatabase.Items.Clear();

cmbSQLDatabase.Enabled = false;

cmbSQLTable.Items.Clear();

cmbSQLTable.Enabled = false;

How do I clear them?????

Thanks,

Ron
Dec 22 '05 #1
1 1017
RSH wrote:
Hi,

I have a Windows form that has several ComboBoxes on it. I would like to be
able to clear the existing values when the user clicks on the Clear button,
and then I need some of the Combos to be disabled. The problem I am having
is that all of the Combo boxes retain their last selected value on screen.

cmbAccessTable.Items.Clear();

cmbAccessTable.Enabled = false;

cmbSQLDatabase.Items.Clear();

cmbSQLDatabase.Enabled = false;

cmbSQLTable.Items.Clear();

cmbSQLTable.Enabled = false;

How do I clear them?????

Thanks,

Ron


cmbAccessTable.Items.Clear();
cmbAccessTable.SelectedText = "";
cmbAccessTable.Enabled = false;

I think that's the property you have to clear. I could be wrong on the
name, but I know it has "Text" in it.

Chris
Dec 22 '05 #2

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

Similar topics

10
by: Conax | last post by:
Hi there, My boss is hoping that I can come up with a page that displays some information. The information will always be displayed on specific part of the page, with auto refresh. But he...
6
by: Logger | last post by:
Help, Want someone's option. I'm calling a popup screen, say form B, to add/edit a record. In, say form A, I call form B using javascript window.open in server side code. I need to know when I...
0
by: jimvn | last post by:
while my screen saver (webshots) is active, my vb.net windows app updates a textbox. after exiting the password protected screen saver, the text box does not appear to be updated, but it has been,...
3
by: John Baker | last post by:
Hi: As in the "Wizard of Oz", I want people to "pay no attention to the man behind the curtain", by freezing the screen while a whole lot of things happen. I know about ECHO OFF, but this...
5
by: Andrew Chanter | last post by:
I have a situation where I am using an unbound dialog form to update data in an Access 2002 split back end / front end scenario. The data update is done via an ADO call (direct to the back end...
3
by: serge anton | last post by:
Hi, I want to refresh all the screen (including the desktop) or a part of the screen. I can have a reference to the screen with win32 API : public static extern int GetWindowDC(IntPtr...
3
by: redneon | last post by:
Is an event fired whenever there's a screen refresh? I'm wanting to run a certain method whenever there's a screen refresh and was wondering if I could override wndproc and listen for an event to...
0
by: Casey Bralla | last post by:
For some reason, I can't get curses to refresh the screen. Can someone offer a suggestion to try to debug this? Here is my python code snippet: stdscr=curses.initscr() curses.noecho()...
0
by: Casey Bralla | last post by:
My problem was caused by a getch() function which paused, waiting for the character. Live and learn. <sigh> For some reason, I can't get curses to refresh the screen. Can someone offer a...
23
by: alag20 | last post by:
Hi Guys, I have made an application which has a splash screen. This has one of the delegates to update a string which works fine. My issue is that I want to automatically refresh this splash...
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...
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:
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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.