| | |
Run-time error 424 Object required
![]() |
•
•
Join Date: Apr 2008
Posts: 491
Reputation:
Solved Threads: 0
Hi,
Code below generates this error "Run-time error 424 Object required". What can i do? VB6.
thanks
Code below generates this error "Run-time error 424 Object required". What can i do? VB6.
thanks
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Private Sub Command3_Click() My.Computer.Registry.CurrentUser.CreateSubKey ("TestKey") End Sub
Last edited by veledrom; Jan 22nd, 2009 at 6:18 am. Reason: .
Use VB.Net.... not VB 6 
Seriously, I like VB6 a thousand times more than .NET, but the fact is, that code is meant for the .NET platform. VB 6 is not quite that object oriented and structured. I suggest however, that to do the same thing in VB6, use WSH. Using the native VB commands to modify the registry (all API Calls) is really ugly. So I guess something like:

Seriously, I like VB6 a thousand times more than .NET, but the fact is, that code is meant for the .NET platform. VB 6 is not quite that object oriented and structured. I suggest however, that to do the same thing in VB6, use WSH. Using the native VB commands to modify the registry (all API Calls) is really ugly. So I guess something like:
vb Syntax (Toggle Plain Text)
Dim wsh Set wsh = CreateObject("WScript.Shell") wsh.regwrite "HKCU\testkey\", "hi", "REG_SZ" Set wsh = Nothing
![]() |
Similar Threads
- Colored Cell in List box (Visual Basic 4 / 5 / 6)
- VB 6 login (Visual Basic 4 / 5 / 6)
- debugging (Visual Basic 4 / 5 / 6)
- VB6 - Look up email address from outlook address book? (Visual Basic 4 / 5 / 6)
- VB6 - Outlook Email set up - Error 424: Object required (Visual Basic 4 / 5 / 6)
- Help with "My" functions! (Visual Basic 4 / 5 / 6)
- Adding pictures (Visual Basic 4 / 5 / 6)
- VB6 RTE '424' Object required. (Visual Basic 4 / 5 / 6)
- Run-Time Error 424 (Visual Basic 4 / 5 / 6)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: creating separator bar in vb6 for the column
- Next Thread: Message display
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age application basic beginner birth bmp calculator cd cells.find click client code college component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report save search sendbyte sites sort sql sql2008 sqlserver subroutine tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows






