Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Basic4ppc Wishlist > Bug Reports
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Bug Reports Post about errors or bugs encountered.

clear combo box

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-03-2009, 12:44 AM
tremara1's Avatar
Senior Member
 
Join Date: Oct 2008
Location: Ballarat Victoria Australia
Posts: 175
Default clear combo box

When I use a combo box and clear it the list is cleared but the last value displayed is not cleared. Anyone else have this problem. A simple example has been uploaded.
Reply With Quote
  #2 (permalink)  
Old 01-03-2009, 07:10 AM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,463
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

This is the 'normal' behaviour of the ComboBox.
To clear the text, you must add following code
cb.Text=""

Or, you could use a ListBox.

Best regards.
__________________
Klaus
Switzerland

Beginner's Guide / User's Guide
Reply With Quote
  #3 (permalink)  
Old 01-03-2009, 07:28 AM
tremara1's Avatar
Senior Member
 
Join Date: Oct 2008
Location: Ballarat Victoria Australia
Posts: 175
Default combo clear

Thanks Klaus, The text property is not in the auto complete so I did not try it.
Still Learning.........................

tremara
Ballarat Victoria,Australia
Reply With Quote
  #4 (permalink)  
Old 01-03-2009, 07:32 AM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,463
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

The ComboBox is a Combination of a ListBox and a TextBox.
cb.Clear clears the listbox and
cb.Text="" clears the textbox.

Best regards.
__________________
Klaus
Switzerland

Beginner's Guide / User's Guide
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to clear image control? RB Smissaert Questions (Windows Mobile) 9 12-27-2008 11:42 PM
clear all textboxes tremara1 Questions (Windows Mobile) 0 10-22-2008 08:39 AM
Clear TextBox? cdeane Questions (Windows Mobile) 2 04-21-2008 07:16 PM
How to clear the screen ? gjoisa Questions (Windows Mobile) 1 03-11-2008 04:50 PM
Can't set SelectedIndex of a combo box willisgt Questions (Windows Mobile) 12 09-21-2007 04:25 PM


All times are GMT. The time now is 03:33 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0