Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Newbie here

Newbie here

Scheduled Pinned Locked Moved Visual Basic
questiontutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Cx
    wrote on last edited by
    #1

    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?

    C D 2 Replies Last reply
    0
    • C Cx

      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?

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      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++

      1 Reply Last reply
      0
      • C Cx

        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?

        D Offline
        D Offline
        Daniel1324
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups