Click here to Skip to main content
15,897,704 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How to set different mode for one submit button Pin
JUNEYT6-Mar-07 19:22
JUNEYT6-Mar-07 19:22 
GeneralRe: How to set different mode for one submit button Pin
hygeenams6-Mar-07 23:57
hygeenams6-Mar-07 23:57 
GeneralRe: How to set different mode for one submit button Pin
Dave Kreskowiak7-Mar-07 5:07
mveDave Kreskowiak7-Mar-07 5:07 
QuestionProject help Pin
sundar_mca6-Mar-07 18:19
sundar_mca6-Mar-07 18:19 
AnswerRe: Project help Pin
Carmine_XX7-Mar-07 3:39
Carmine_XX7-Mar-07 3:39 
AnswerRe: Project help Pin
Dave Kreskowiak7-Mar-07 5:05
mveDave Kreskowiak7-Mar-07 5:05 
QuestionList All Registry Values Pin
MatrixCoder6-Mar-07 16:22
MatrixCoder6-Mar-07 16:22 
AnswerRe: List All Registry Values Pin
Dave Kreskowiak6-Mar-07 17:08
mveDave Kreskowiak6-Mar-07 17:08 
Take the slash in front of "\Software\..." out. It should be "Software\...".
Your code is ASSUMING that OpenSubKey is actually returning something. It'll help if you checked GetValues (that's a bad variable name BTW) for an object before you try and use it in your loop. You might also want to get the values from the Run key you opened and not from the root of Local Machine. Also, you have to close the key you opened when you're done with it.
Dim runKey As RegistryKey = Registry.LocalMachine.OpenSubKey("Software\Microsoft\Windows\CurrentVersion\Run")
If Not runKey Is Nothing Then
    For Each valueName As String In runKey.GetValueNames()
        Dim itemValue As String = runKey.GetValue(valueName, "").ToString()
        Debug.WriteLine(String.Format("{0} : {1}", valueName, itemValue))
    Next
    runKey.Close()
End If





Dave Kreskowiak
Microsoft MVP - Visual Basic


GeneralRe: List All Registry Values Pin
MatrixCoder7-Mar-07 3:56
MatrixCoder7-Mar-07 3:56 
Questionneed help wit listing file name in bin folder Pin
neodeaths6-Mar-07 15:39
neodeaths6-Mar-07 15:39 
AnswerRe: need help wit listing file name in bin folder Pin
MatrixCoder6-Mar-07 16:15
MatrixCoder6-Mar-07 16:15 
AnswerRe: need help wit listing file name in bin folder Pin
The ANZAC6-Mar-07 17:53
The ANZAC6-Mar-07 17:53 
QuestionDateTime in MS Acces with ADO.NET Pin
Scott Page6-Mar-07 13:43
professionalScott Page6-Mar-07 13:43 
QuestionLocalization with VB .net and Access Database Pin
rhaseena6-Mar-07 11:10
rhaseena6-Mar-07 11:10 
QuestionIt looks right? Pin
Anybloodyid6-Mar-07 10:37
Anybloodyid6-Mar-07 10:37 
AnswerRe: It looks right? Pin
Christian Graus6-Mar-07 10:46
protectorChristian Graus6-Mar-07 10:46 
AnswerRe: It looks right? Pin
JUNEYT6-Mar-07 10:50
JUNEYT6-Mar-07 10:50 
GeneralRe: It looks right? Pin
Anybloodyid6-Mar-07 11:06
Anybloodyid6-Mar-07 11:06 
AnswerRe: It looks right? Pin
Taylor Kobani6-Mar-07 22:46
Taylor Kobani6-Mar-07 22:46 
QuestionLet user add new items to a databound combobox Pin
NDD576-Mar-07 9:55
NDD576-Mar-07 9:55 
AnswerRe: Let user add new items to a databound combobox Pin
Scott Page7-Mar-07 12:23
professionalScott Page7-Mar-07 12:23 
GeneralRe: Let user add new items to a databound combobox Pin
NDD579-Mar-07 7:36
NDD579-Mar-07 7:36 
Questiona Simple Clock Alarm Pin
HoseinQuest6-Mar-07 9:43
HoseinQuest6-Mar-07 9:43 
AnswerRe: a Simple Clock Alarm Pin
JUNEYT6-Mar-07 10:41
JUNEYT6-Mar-07 10:41 
QuestionCan't see ODBC datasource Pin
cstrader2326-Mar-07 8:07
cstrader2326-Mar-07 8:07 

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.