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

Visual Basic

 
QuestionHow to set different mode for one submit button Pin
hygeenams6-Mar-07 18:26
hygeenams6-Mar-07 18:26 
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 
Hi,

I've been trying to list all the registry values in a certain key, but I keep getting an "Object Reference Not Set to an Instance of an Object" error on the first line. My code is:

Dim GetValues As Microsoft.Win32.RegistryKey = My.Computer.Registry.LocalMachine.OpenSubKey("\Software\Microsoft\Windows\CurrentVersion\Run")
  For Each ValueKey As String In GetValues.GetValueNames
    Dim ItemRead As String = My.Computer.Registry.GetValue(GetValues.ToString, ValueKey, "")
    'Add Items to ListView
    GlobalList.Items.Add(ItemRead)
  Next


Is there maybe a better way to list the registry values than the way I've been trying? Nothing seems to work.

Thanks for the help.





Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.

AnswerRe: List All Registry Values Pin
Dave Kreskowiak6-Mar-07 17:08
mveDave Kreskowiak6-Mar-07 17:08 
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 

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.