View Single Post
  #2 (permalink)  
Old 03-15-2008
techno techno is offline
New Foot Prints
 
Join Date: Mar 2008
Posts: 7
BRL$: 99.42
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
techno is on a distinguished road
Default Re: Writing to Windows Registry using VB

I hope following code will be useful to you, it works with vb 6
HTML Code:
Dim ClickCounter As Integer
Private Sub Form_Load()
ClickCounter = 0
End Sub
Private Sub Form_MouseDown(button As Integer, _
   shift As Integer, x As Single, y As Single)
   ClickCounter = ClickCounter + 1
   SaveSetting "AboutVBExample", _
         "Location\Click" & ClickCounter, _
         "button", button
   SaveSetting "AboutVBExample", _
         "Location\Click" & ClickCounter, _
         "shift", shift
   SaveSetting "AboutVBExample", _
         "Location\Click" & ClickCounter, _
         "x", x
   SaveSetting "AboutVBExample", _
         "Location\Click" & ClickCounter, _
         "y", y
End Sub 
Hope it helps


Current Promotions... Post a New Thread anywhere on Web Development Board to earn BRL$ 5 for every thread. Post a new Reply there and earn BRL$ 3 for every reply.
Important - Read before posting Please carefully read the Global Rules and Posting Rules for GPT / Buy - Sell Offers / Link Exchange sections before posting.
Reply With Quote