Newbie here
-
I need explorer to open a folder so that i can view the files inside. No browsing or dialog box is needed, I just need to open that specific folder with Windows after clicking a button. Anyone knows how to do this? Another question would be how do i declare a statement as a string if that statement has "" in it? E.g. Marks = "69" Grades = "C" How do i declare the above sentence as one whole string?
-
I need explorer to open a folder so that i can view the files inside. No browsing or dialog box is needed, I just need to open that specific folder with Windows after clicking a button. Anyone knows how to do this? Another question would be how do i declare a statement as a string if that statement has "" in it? E.g. Marks = "69" Grades = "C" How do i declare the above sentence as one whole string?
Cx- wrote: Another question would be how do i declare a statement as a string if that statement has "" in it? I believe you double the quotes, as in String s = "Marks = ""69"" Grades = "C""" In C#, it's \", but I believe it's double quotes in VB. Cx- wrote: I need explorer to open a folder so that i can view the files inside. No browsing or dialog box is needed, I just need to open that specific folder with Windows after clicking a button. Anyone knows how to do this? I'd say that ShellExecute or Process.Start will do this, just pass in the path. Christian Graus - Microsoft MVP - C++
-
I need explorer to open a folder so that i can view the files inside. No browsing or dialog box is needed, I just need to open that specific folder with Windows after clicking a button. Anyone knows how to do this? Another question would be how do i declare a statement as a string if that statement has "" in it? E.g. Marks = "69" Grades = "C" How do i declare the above sentence as one whole string?
Dim str As String str = "Marks = ""69"" Grades = ""C"""
Where ever you want to put quotes inside of a string use "" So this --> 1 "2" 3 would be coded as "1 ""2"" 3". EDIT: Christian and I posted at the same time.