Click here to Skip to main content
16,004,944 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: VS 2010 - sqlexpress - connection string in wcf service Pin
Johan Hakkesteegt24-May-10 21:47
Johan Hakkesteegt24-May-10 21:47 
QuestionListView in virtualmode Pin
jtpaa24-May-10 3:43
jtpaa24-May-10 3:43 
AnswerRe: ListView in virtualmode Pin
Luc Pattyn24-May-10 5:15
sitebuilderLuc Pattyn24-May-10 5:15 
GeneralRe: ListView in virtualmode Pin
jtpaa24-May-10 6:23
jtpaa24-May-10 6:23 
GeneralRe: ListView in virtualmode Pin
Luc Pattyn24-May-10 6:31
sitebuilderLuc Pattyn24-May-10 6:31 
GeneralRe: ListView in virtualmode Pin
jtpaa24-May-10 6:59
jtpaa24-May-10 6:59 
AnswerRe: ListView in virtualmode Pin
Luc Pattyn24-May-10 7:17
sitebuilderLuc Pattyn24-May-10 7:17 
QuestionWindows 7 Cannot get Registered Owner/Organization Pin
QuickBooksDev24-May-10 2:59
QuickBooksDev24-May-10 2:59 
We have a working program in VB6 that gets the Windows Registered users and organization from the registry. It works fine on XP, Vista, etc.

If fails on Windows 7 and I believe W2008.

It returns Microsoft (which is incorrect) for both.

When we tried it with VB.net 2008 using
my.computer.registry.localmachine etc
It also fails but the same way. Obj below contains the string Microsoft. The line under (s =) also has Microsoft.

Can get the names but not the values????

Why

Here is the code.

Dim i As Short = 0
Dim s As String = vbNullString
Dim VNAR() As Object, SKNamesAR() As Object, Obj As Object
Const RO As String = "RegisteredOwner", ROrg As String = "RegisteredOrganization"
Const CV As String = "Software\Microsoft\Windows NT\CurrentVersion\" ' & RO
Const CVRO As String = CV & RO, CVROrg As String = CV & ROrg
Dim RK As Microsoft.Win32.RegistryKey = _
My.Computer.Registry.LocalMachine.OpenSubKey(CV)
Dim RK2 As Microsoft.Win32.RegistryKey
VNAR = RK.GetValueNames()
SKNamesAR = RK.GetSubKeyNames()
RK2 = RK.OpenSubKey(RO)
i = i
Obj = RK.GetValue(RO)
i = i

s = My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion", "RegisteredOrganization", vbNullString)
AnswerRe: Windows 7 Cannot get Registered Owner/Organization Pin
Dave Kreskowiak24-May-10 4:19
mveDave Kreskowiak24-May-10 4:19 
GeneralRe: Windows 7 Cannot get Registered Owner/Organization Pin
QuickBooksDev24-May-10 7:32
QuickBooksDev24-May-10 7:32 
GeneralRe: Windows 7 Cannot get Registered Owner/Organization Pin
Dave Kreskowiak24-May-10 9:02
mveDave Kreskowiak24-May-10 9:02 
GeneralRe: Windows 7 Cannot get Registered Owner/Organization Pin
QuickBooksDev16-Jun-10 3:14
QuickBooksDev16-Jun-10 3:14 
GeneralRe: Windows 7 Cannot get Registered Owner/Organization Pin
Dave Kreskowiak16-Jun-10 8:36
mveDave Kreskowiak16-Jun-10 8:36 
QuestionHow can my add-in consume events from another add-in? Pin
Sonhospa23-May-10 23:02
Sonhospa23-May-10 23:02 
AnswerRe: How can my add-in consume events from another add-in? Pin
Dave Kreskowiak24-May-10 4:13
mveDave Kreskowiak24-May-10 4:13 
GeneralRe: How can my add-in consume events from another add-in? Pin
Sonhospa24-May-10 9:20
Sonhospa24-May-10 9:20 
AnswerRe: How can my add-in consume events from another add-in? Pin
Luc Pattyn24-May-10 5:33
sitebuilderLuc Pattyn24-May-10 5:33 
GeneralRe: How can my add-in consume events from another add-in? Pin
Sonhospa24-May-10 9:08
Sonhospa24-May-10 9:08 
GeneralRe: How can my add-in consume events from another add-in? Pin
Luc Pattyn24-May-10 10:06
sitebuilderLuc Pattyn24-May-10 10:06 
QuestionBad DLL Calling Convention error when sending UDT from VB6 to Dev-C++ DLL Pin
bytelogik23-May-10 6:11
bytelogik23-May-10 6:11 
AnswerRe: Bad DLL Calling Convention error when sending UDT from VB6 to Dev-C++ DLL Pin
bytelogik23-May-10 9:21
bytelogik23-May-10 9:21 
QuestionIs Visual Studio 2010 compatible with older SQL versions Pin
Didier Cauberghe23-May-10 2:42
Didier Cauberghe23-May-10 2:42 
AnswerRe: Is Visual Studio 2010 compatible with older SQL versions Pin
DaveAuld23-May-10 3:07
professionalDaveAuld23-May-10 3:07 
AnswerRe: Is Visual Studio 2010 compatible with older SQL versions [modified] Pin
DaveAuld23-May-10 3:19
professionalDaveAuld23-May-10 3:19 
QuestionDisable form not fast enough Pin
Didier Cauberghe23-May-10 2:39
Didier Cauberghe23-May-10 2:39 

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.