Click here to Skip to main content
15,899,005 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi all

When i am running my project i am creating a folder to a particular location in C:\ drive.
(C:\Application\Foldername)
Now i want to load this path to my combo box.

Please tell me how to do that
Posted

This microsoft documentation suggests a couple of ways of achieving this ... either in the code-behind or the xaml
http://msdn.microsoft.com/en-us/library/system.windows.controls.itemscontrol.items.aspx[^]
 
Share this answer
 
Comments
[no name] 22-May-13 8:36am    
The project is like i am creating new company in this particular form.so there may me 100 of folders..so how can i assign that to a list dynamically..
CHill60 22-May-13 9:05am    
In your post you said you were creating the folder ... so at that point in time add the name of the folder you are about to create to a list. When you are finished you can bind the control to the list (as per the 1st example in the link in my solution) OR you could just add the foldername to the combobox as you create the folder (as per the 2nd example in the link)
the string which you are providing to create directory add that same string to combobox
VB
Combobox1.items.add("You Path Here")
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900