Visual Studio Development Bookmark and Share   
 index > Visual Basic Express Edition > how do I code a combo box for text document viewing
 

how do I code a combo box for text document viewing

Ok here is the deal I got a combo box on my windows form and I have text documents in my program and Im having trouble finding a code to make it so when you select one of the names in the box it will open a text document that would match it. Im using VB 2008 express. Can anyone help me with this coding for this.
wolfofdarkness  Saturday, October 17, 2009 8:27 AM
You handle the SelectionChangeCommitted event for the combobox to determine which item the user has selected.

What do you mean by open the document. You can use Process.Start to open it in the default editor for your computer or you can read it into a textbox in your program.
Dave299  Saturday, October 17, 2009 10:13 AM

You can use google to search for other answers

Custom Search

More Threads

• custom and user controls
• Direct X
• MonthCalendar Control detects changing the month as a date changed event
• migration VBA to VB
• Serial Ports into an Array ...
• sum a secod
• Can someone tell me if I'm on the right track
• still get the same error when I tried this
• Screen shot
• Clearing all control values on multipage userform