none
Open folder in ,aximised (full screen) view. RRS feed

  • Question

  • If CAR_FOLDER.Checked = True Then System.Diagnostics.Process.Start("\\LEWISPNW01\vol1\Engineering\ENGR\Project Spending\CAR\") End If

    How do I have this folder always open in maximised view? I am using Visual Basic 2010 Express.

    Thanks, Glenn

    Saturday, November 3, 2012 7:57 PM

Answers

  • If CAR_FOLDER.Checked = True Then
    
     Dim filePath As String
            filePath = "\\LEWISPNW01\vol1\Engineering\ENGR\Project Spending\CAR\"
    
            Dim startInfo As New ProcessStartInfo(filePath)
            startInfo.WindowStyle = ProcessWindowStyle.Maximized
            Process.Start(startInfo)
    End IF


    • Edited by Pantelis44999 Monday, November 5, 2012 2:13 AM
    • Marked as answer by Chevyman57 Wednesday, November 7, 2012 11:48 AM
    Monday, November 5, 2012 2:13 AM

All replies

  • You have to create a instance of ProcessStartInfo and then run pass that to the Process.Start method with this override.

    ProcessStartInfo has a property called WindowStyle, you can set that to Maximized.

    Saturday, November 3, 2012 11:17 PM
  • Thanks for the reply but I am just a novice at this and really need much more specific instructions. Can you supply me an example? I am not sure how to create an instance of anyhting! I followed the two links above but with no success.

    Glenn

    Monday, November 5, 2012 1:42 AM
  • If CAR_FOLDER.Checked = True Then
    
     Dim filePath As String
            filePath = "\\LEWISPNW01\vol1\Engineering\ENGR\Project Spending\CAR\"
    
            Dim startInfo As New ProcessStartInfo(filePath)
            startInfo.WindowStyle = ProcessWindowStyle.Maximized
            Process.Start(startInfo)
    End IF


    • Edited by Pantelis44999 Monday, November 5, 2012 2:13 AM
    • Marked as answer by Chevyman57 Wednesday, November 7, 2012 11:48 AM
    Monday, November 5, 2012 2:13 AM
  • Pantelis44999

    Worked great....thanks.

    Glenn

    Wednesday, November 7, 2012 11:49 AM