Wrox Programmer Forums
|
Visual Studio 2005 For discussing Visual Studio 2005. Please post code questions about a specific language (C#, VB, ASP.NET, etc) in the correct language forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Studio 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 1st, 2009, 01:31 PM
Registered User
 
Join Date: May 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Combobox in C#

Hello all,
i am developing a windows application in C# & in this, i want to have two combo boxes

comboState & comboCity

i have added items in comboState & i want to add items in comboCity at runtime when user selects a particular item in comboState.

Selecting a different item in comboState also updates items in comboCity.

i am unable to do it, is there anyone who could help me out !
thanks
 
Old November 3rd, 2009, 05:35 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

Well its a quiet simple
u load ur comboState from State
then un ur comboStat_SelectedIndex_Changed() u load comboCity from city by state filter

HTH
__________________
Always,
Hovik Melkomian.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Filling Combobox with value from other Combobox ayazhoda Access VBA 6 June 5th, 2007 04:58 AM
Combobox stepdev Excel VBA 1 May 22nd, 2006 02:50 PM
combobox calvados ADO.NET 1 February 8th, 2005 05:37 PM
combobox Warbird General .NET 0 January 7th, 2005 12:26 PM
ComboBox: HELP! ;) ashley_y ADO.NET 1 December 29th, 2003 10:44 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.