Click here to Skip to main content
15,898,222 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: open file *.* Pin
Dave Kreskowiak3-Nov-04 17:22
mveDave Kreskowiak3-Nov-04 17:22 
GeneralRe: open file *.* Pin
Mekong River3-Nov-04 21:06
Mekong River3-Nov-04 21:06 
GeneralProblem while create subkey in registry Pin
Mekong River3-Nov-04 14:35
Mekong River3-Nov-04 14:35 
GeneralRe: Problem while create subkey in registry Pin
Dave Kreskowiak3-Nov-04 17:21
mveDave Kreskowiak3-Nov-04 17:21 
GeneralRe: Problem while create subkey in registry Pin
Mekong River3-Nov-04 17:49
Mekong River3-Nov-04 17:49 
GeneralRe: Problem while create subkey in registry Pin
Dave Kreskowiak4-Nov-04 1:07
mveDave Kreskowiak4-Nov-04 1:07 
GeneralRe: Problem while create subkey in registry Pin
Mekong River4-Nov-04 2:34
Mekong River4-Nov-04 2:34 
GeneralRe: Problem while create subkey in registry Pin
Dave Kreskowiak4-Nov-04 3:33
mveDave Kreskowiak4-Nov-04 3:33 
Then you did something else, though I have no idea what it is. All that's required is to add the Imports statement at the top of your code and declare a variable as RegistryKey. You'll have to post the code your using, including the Imports section, and the code around where your having the problem.
Imports Microsoft.Win32
.
.
Public Class myForm
    .
    .
    Private Sub myMethod(some parameters...)
        ' Creating a Subkey
        Dim regKey As RegistryKey
        regKey = Registry.LocalMachine.OpenSubKey("SOFTWARE", True)
        regKey.CreateSubKey("MyApp")
        regKey.Close()
    End Sub
End Class

There is nothing to this... If you get the little squiggly line under RegistryKey it means that the Microsoft.Win32 namespace has not been imported.


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: Problem while create subkey in registry Pin
Chris Quick3-Nov-04 17:25
Chris Quick3-Nov-04 17:25 
QuestionDetecting if user has logged on (windows service)? Pin
mrdance3-Nov-04 7:11
mrdance3-Nov-04 7:11 
AnswerRe: Detecting if user has logged on (windows service)? Pin
Chris Quick3-Nov-04 17:19
Chris Quick3-Nov-04 17:19 
GeneralLocking XML File Pin
Sumit Domyan3-Nov-04 1:49
Sumit Domyan3-Nov-04 1:49 
GeneralRe: Locking XML File Pin
Sebastien Lachance4-Nov-04 6:01
Sebastien Lachance4-Nov-04 6:01 
GeneralUploading Progress Bar Pin
cwayman2-Nov-04 23:40
cwayman2-Nov-04 23:40 
GeneralQuerying XML File Pin
Sumit Domyan2-Nov-04 18:09
Sumit Domyan2-Nov-04 18:09 
GeneralRe: Querying XML File Pin
cwayman2-Nov-04 22:33
cwayman2-Nov-04 22:33 
GeneralAny suggestiong on building reports with asp.net - Urgent please Pin
leon_yoo2-Nov-04 15:14
leon_yoo2-Nov-04 15:14 
GeneralRun an app in windows form Pin
nobita3x2-Nov-04 14:27
nobita3x2-Nov-04 14:27 
GeneralRe: Run an app in windows form Pin
nobita3x2-Nov-04 16:56
nobita3x2-Nov-04 16:56 
GeneralRe: Run an app in windows form Pin
Dave Kreskowiak3-Nov-04 3:17
mveDave Kreskowiak3-Nov-04 3:17 
GeneralRe: Run an app in windows form Pin
MohammadAmiry3-Nov-04 6:27
MohammadAmiry3-Nov-04 6:27 
GeneralRe: Run an app in windows form Pin
nobita3x3-Nov-04 17:18
nobita3x3-Nov-04 17:18 
GeneralThe Final Solution Pin
MohammadAmiry5-Nov-04 21:24
MohammadAmiry5-Nov-04 21:24 
GeneralRe: The Final Solution Pin
nobita3x7-Nov-04 18:21
nobita3x7-Nov-04 18:21 
GeneralRe: Run an app in windows form Pin
Dave Kreskowiak4-Nov-04 4:13
mveDave Kreskowiak4-Nov-04 4:13 

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.