Open any file

f15e

Member
Joined
May 4, 2006
Messages
21
Programming Experience
Beginner
I am looking for a way to open any document whether it be a .doc, .txt, .pdf, etc.. I had the code to do it at one point but I misplaced it. I remember it being pretty simple code. I haven't programmed in a while and don't remember the syntax etc....
Anyway, I am looking for a simple way to open a document on my computer using my windows app. Thank you.
 
You mean open with default application that can handle the particular file?
VB.NET:
Process.Start(FullFilename)
 
Yes, That'S it. Thanks. I have forgotten a lot about VB. I am trying to add items to a combo box and am having difficulty. I googled it, but I am just not coming across anything that helps for some reason. This was my last attempt at populating the combo box:
****************************
Imports System.Windows.Forms.ComboBox
Class Form1

Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged
ComboBox1.Items.Add("Item 1")

End Sub
End Class
****************************

The combo box keeps coming up empty. What am I missing? Where is a good website for beginners to get information on code?
 
Read a general/beginner VB.Net book, you should be up to par in a week.
 
Back
Top