Basic4ppc - Windows Mobile Development  

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

Code Samples & Tips Share your recent discoveries and ideas with other users.


My little contribution


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-03-2008, 02:45 PM
Junior Member
 
Join Date: Dec 2007
Posts: 39
Default My little contribution

I spent some time in finding a solution for the app I'm writing and I would like to share it.
I needed to use the same combobox as selectable input for different TextBox.
The reason is that in the real app the combo is quite huge (more than 8000 items - all the italian city) and I would like to save some memory (only 1 combo instead of 6).
I'm using the same routine (PlaceCombo) to show at runtime the combobox overlapped to each single textBox and to display the last selected item. Choosing an item from the combo, the SelectionChanged event sets the text property with the selected item.

The trick consists in adding to the Form a selectable (visible and enabled) object (Button), hidden under a blank label, and moving the focus on it after each SelectionChanged event. (try to comment out the Button1.Focus instruction and see what happens...)

May be my code is wrong or it exists a better solution....any comment is welcome!

My 2 cents...

Mimmo
Attached Files
File Type: sbp testcombo.sbp (1.9 KB, 70 views)
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


All times are GMT. The time now is 06:40 AM.


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