Click here to Skip to main content
15,887,267 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Visual Studio 2008 Pin
noboat128-Mar-12 10:38
noboat128-Mar-12 10:38 
GeneralRe: Visual Studio 2008 Pin
Simon_Whale28-Mar-12 21:54
Simon_Whale28-Mar-12 21:54 
QuestionGet middle number between two values Pin
Brandon-X1200026-Mar-12 10:00
Brandon-X1200026-Mar-12 10:00 
AnswerRe: Get middle number between two values Pin
Simon_Whale26-Mar-12 12:00
Simon_Whale26-Mar-12 12:00 
AnswerRe: Get middle number between two values Pin
Eddy Vluggen26-Mar-12 12:21
professionalEddy Vluggen26-Mar-12 12:21 
AnswerRe: Get middle number between two values Pin
Luc Pattyn26-Mar-12 12:24
sitebuilderLuc Pattyn26-Mar-12 12:24 
GeneralRe: Get middle number between two values Pin
Vipin_Arora26-Mar-12 19:48
Vipin_Arora26-Mar-12 19:48 
QuestionOpening Folders Pin
Jefferson Daniel24-Mar-12 11:29
Jefferson Daniel24-Mar-12 11:29 
In my Project I am trying to Open Folders, I listview the startup items, and you can right click and go to the item folder location. For this code, the users appdata folder works fine. the path

C:\ProgramData\Microsoft\Windows\Start Menu\Program\Startup" Doesnt open up to the right location. It just opens up the C:\user\username\ folder instead.

If anybody knows how to open this folder it would be greatly appreciated. I am using VB 2010.

VB
For a = 0 To (ListViewLogon.SelectedItems.Count - 1)
    Dim MyKey = ListViewLogon.SelectedItems.Item(a).SubItems.Item(4).Text

    Dim GroupFolderStartUpItems = ("C:\ProgramData\Microsoft\Windows\Start Menu\Program\Startup")
    Dim Group2FolderStartUpItems = ("C:\Users\" & Environment.UserName & "\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup")

    If MyKey = GroupFolderStartUpItems Then
        Dim sPathspec = "C:\ProgramData\Microsoft\Windows\Start Menu\Program\Startup"
        WshShell.run("explorer /e" & sPathspec, 1, False)
    ElseIf MyKey = "C:\Users\" & Environment.UserName & "\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup" Then
        Shell("explorer " & Group2FolderStartUpItems, vbNormalFocus)
    End If

Next

AnswerRe: Opening Folders Pin
Abhinav S24-Mar-12 16:33
Abhinav S24-Mar-12 16:33 
GeneralRe: Opening Folders Pin
Jefferson Daniel24-Mar-12 18:06
Jefferson Daniel24-Mar-12 18:06 
AnswerRe: Opening Folders Pin
Eddy Vluggen25-Mar-12 3:23
professionalEddy Vluggen25-Mar-12 3:23 
GeneralRe: Opening Folders Pin
Jefferson Daniel25-Mar-12 5:44
Jefferson Daniel25-Mar-12 5:44 
AnswerRe: Opening Folders Pin
Luc Pattyn25-Mar-12 16:03
sitebuilderLuc Pattyn25-Mar-12 16:03 
Questionweird deployment glitch? Pin
JavaCookies23-Mar-12 5:01
JavaCookies23-Mar-12 5:01 
AnswerRe: weird deployment glitch? Pin
Eddy Vluggen23-Mar-12 6:31
professionalEddy Vluggen23-Mar-12 6:31 
AnswerRe: weird deployment glitch? Pin
Dave Kreskowiak23-Mar-12 7:11
mveDave Kreskowiak23-Mar-12 7:11 
Generaldelet data Pin
haitamhaitham21-Mar-12 5:00
haitamhaitham21-Mar-12 5:00 
AnswerRe: delet data Pin
Eddy Vluggen21-Mar-12 6:12
professionalEddy Vluggen21-Mar-12 6:12 
AnswerRe: delet data Pin
ProEnggSoft23-Mar-12 19:07
ProEnggSoft23-Mar-12 19:07 
AnswerRe: delet data Pin
Abhinav S24-Mar-12 0:33
Abhinav S24-Mar-12 0:33 
Questiondownload from dynamic url Pin
bapay20-Mar-12 11:18
bapay20-Mar-12 11:18 
AnswerRe: download from dynamic url Pin
Bernhard Hiller20-Mar-12 23:15
Bernhard Hiller20-Mar-12 23:15 
QuestionTextbox numbers values Pin
Venecos20-Mar-12 7:11
Venecos20-Mar-12 7:11 
AnswerRe: Textbox numbers values Pin
Bernhard Hiller20-Mar-12 23:26
Bernhard Hiller20-Mar-12 23:26 
AnswerRe: Textbox numbers values Pin
ProEnggSoft23-Mar-12 20:24
ProEnggSoft23-Mar-12 20:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.