vb.net - Handling a very large list of options for a user -



vb.net - Handling a very large list of options for a user -

i have application allows users select location.

currently have 5 locations pick from, i'd expand utilize master list containing 100 options.

i need have user's preference saved.

currently, working code works follows:

save setting:

my.settings.settingsearchlocationcal = cint(settingsradlocationcal.checked) my.settings.settingsearchlocationmis = cint(settingsradlocationmis.checked) my.settings.settingsearchlocationmon = cint(settingsradlocationmon.checked) my.settings.settingsearchlocationlon = cint(settingsradlocationlon.checked) my.settings.settingsearchlocationott = cint(settingsradlocationott.checked) my.settings.settingsearchlocationtor = cint(settingsradlocationtor.checked)

determin location selected:

if settingsradlocationtor.checked = true locationname = "ontario" locationid = "1700272" elseif settingsradlocationott.checked = true locationname = "ottawa" locationid = "1700185" elseif settingsradlocationmis.checked = true locationname = "ontario" locationid = "1700276" elseif settingsradlocationlon.checked = true locationname = "london" locationid = "1700214" elseif settingsradlocationmon.checked = true locationname = "montreal" locationid = "80002" elseif settingsradlocationcal.checked = true locationname = "calgary" locationid = "1700199" end if

currently, i'm using radio buttons this, i'm trying figure out how should allow user select location. i've been experimenting file menu, expandable menus features (tree arcitecture), seems work ok now.

my questuions follows:

is there improve container should using? (user select country, province/state, , city. ideally i'd in 1 control, hence file menu)

is there way can import txt file menu construction file menu (or other container) opposed filling in each entry manually?

and.

how can handle determining alternative selected on list of on 100 entries? need go on having .setting each entry? or there improve way can handle this?

appreciate help can provided. hope i've explained makes sense.

thanks!

for record, decided go file menu, combobox did not meet needs. yes, extensive amount of time code it, i'm much happier results.

p.s downwards vote guys.

vb.net drop-down-menu large-data saving-data

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -