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.Value property


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-30-2007, 10:06 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,092
Default ComboBox.Value property

I bet the title just made you wonder....

I know there is no value Property....but there should be!!

I have a combobox in a form that is filled with the name of textboxes....
When I remove the selected index from the List, it gets removed but the text remains in the combobox....I've tryed various things to either make blanck, like unselected, or go to the index number imediatly before the one removed...

How to do it?

Edit:

Although not listed, is HAS a text property....

So its Fixed...
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD

Last edited by Cableguy : 06-30-2007 at 10:09 PM.
Reply With Quote
  #2 (permalink)  
Old 07-01-2007, 10:47 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,778
Default

The best way is:
value = ComboBox1.Items(ComboBox1.SelectedIndex)
Reply With Quote
  #3 (permalink)  
Old 07-01-2007, 02:06 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,092
Default

But how to use it outside selection changed event, wre the value parameter is not passeed?
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD
Reply With Quote
  #4 (permalink)  
Old 07-01-2007, 02:09 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,778
Default

You can use it everywhere:
v = ComboBox1.Items(ComboBox1.SelectedIndex)
or
ComboBox1.Items(ComboBox1.SelectedIndex) = "abc"
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
Desktop - Change RightToLeft property Erel Code Samples & Tips 0 06-07-2008 06:08 AM
ComboBox Raytracer Italian Forum 3 04-15-2008 04:15 PM
Readonly property in the Textbox control bidibulle Basic4ppc Wishlist 14 11-16-2007 08:19 AM
Visible property for menus alfcen Basic4ppc Wishlist 2 11-11-2007 11:15 AM
property settin in the pda Cableguy Basic4ppc Wishlist 3 05-10-2007 03:40 PM


All times are GMT. The time now is 11:32 PM.


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