Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


ComboBox text input


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-07-2007, 07:52 PM
Junior Member
 
Join Date: Apr 2007
Posts: 42
Send a message via Yahoo to mwaite
Default ComboBox text input

B4PPC Help states "ComboBox does not support the Text property and the user cannot write anything inside a ComboBox".

I wish this were true. I can overwrite any selected item in the combobox with other text. Then when I try to read the combobox, eg. combo1.Item(combo1.SelectedIndex), I get an error about a bad Index -1 value.

So it appears I need to handle and dispose of the user entered text in the combobox.

I'm not sure of the best way to handle this situation. Anyone have a suggestion??
__________________
Regards,
Mike

PPC Cingular 8525 WM5 4Gb SD
Reply With Quote
  #2 (permalink)  
Old 06-07-2007, 08:04 PM
Junior Member
 
Join Date: Apr 2007
Posts: 42
Send a message via Yahoo to mwaite
Default Figured it out

Well after I thought about it some more, I figured it out...

Sub combo1_LostFocus
If combo1.SelectedIndex = -1 then combo1.SelectedIndex = 0
End Sub

Wasn't as difficult as I was making it out to be. Guess I was just surprised that you could enter text at all when the Help said "user cannot write ..." (should be "user should not write...")
__________________
Regards,
Mike

PPC Cingular 8525 WM5 4Gb SD
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
SIP Input leestevens Questions & Help Needed 2 08-01-2008 04:00 PM
Label/Text Control text centering TWELVE Basic4ppc Wishlist 1 06-04-2008 04:20 PM
SOund Input? PKinz Basic4ppc Wishlist 1 12-12-2007 03:51 PM
Scientific Math Text Input Evaluator Rioven Code Samples & Tips 5 11-24-2007 07:53 AM
Sound/Mic input Bill Todd Questions & Help Needed 2 06-22-2007 12:29 PM


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


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0