Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Toyota Vitz scp10 For Sale
Lakmal Bandara
Updated:
Wednesday at 10:50 AM
Kandy
Welcome all my all new pet shop Bark.lk
dilumrane
Updated:
Monday at 12:26 PM
Windows RDP Only Rs.500 a month
Blogerwiki
Updated:
Sunday at 12:41 PM
Ad icon
V2ray VPN for Tunneling
hu KANNA
Updated:
Oct 22, 2026
FREE SEO Check & Google Maps Check for Sri Lankan Businesses | Web Design, Website Price Rs 14,900 |
LankaSolve
Updated:
Oct 20, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
Computers & Internet
Tips & Tricks
VB6 Dannvanam Visit Karala Yanna
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="kosandpol" data-source="post: 4229119" data-attributes="member: 105851"><p>this is for IE :</p><p>[code]</p><p>'--these are the API functions. paste them on the form's declaration section---</p><p>'----------</p><p>Private Declare Function RegCloseKey Lib "advapi32.dll" (ByVal HKey As Long) _</p><p>As Long</p><p>Private Declare Function RegCreateKey Lib "advapi32.dll" Alias "RegCreateKeyA" _</p><p>(ByVal HKey As Long, ByVal lpSubKey As String, phkResult As Long) As Long</p><p>Private Declare Function RegDeleteValue Lib "advapi32.dll" Alias "" ()</p><p>Private Declare Function RegSetValueEx Lib "advapi32.dll" Alias "RegSetValueExA" _</p><p>(ByVal HKey As Long, ByVal lpValueName As String, ByVal Reserved As Long, _</p><p>ByVal dwType As Long, lpData As Any, ByVal cbData As Long) As Long</p><p>Private Const REG_SZ = 1</p><p>Private Const HKEY_CURRENT_USER = &H80000001</p><p>'--------end declares----------</p><p></p><p>Private Sub SaveString(HKey As Long, Path As String, Name As String, Data As String)</p><p>Dim KeyHandle As Long</p><p>Dim RetVal As Long</p><p>RetVal = RegCreateKey(HKey, Path, KeyHandle)</p><p>RetVal = RegSetValueEx(KeyHandle, Name, 0, REG_SZ, ByVal Data, Len(Data))</p><p>RetVal = RegCloseKey(KeyHandle)</p><p>End Sub</p><p></p><p>Private Sub SetStartPage(URL As String)</p><p>Call SaveString(HKEY_CURRENT_USER, "SoftwareMicrosoftInternet ExplorerMain", "Start Page", URL)</p><p>End Sub</p><p></p><p>Private Sub SetWindowTitle(Title As String)</p><p>Call SaveString(HKEY_CURRENT_USER, "SoftwareMicrosoftInternet ExplorerMain", "Window Title", Title)</p><p>End Sub</p><p>'---------code for the button---------</p><p>Private Sub cmdSetStartPage_Click()</p><p>SetStartPage ("http://www.elakiri.com") '--------change this to the page you want</p><p>SetWindowTitle ("ElaKiri Community") '----------this is to change the browser window title</p><p>End Sub</p><p>[/code]</p></blockquote><p></p>
[QUOTE="kosandpol, post: 4229119, member: 105851"] this is for IE : [code] '--these are the API functions. paste them on the form's declaration section--- '---------- Private Declare Function RegCloseKey Lib "advapi32.dll" (ByVal HKey As Long) _ As Long Private Declare Function RegCreateKey Lib "advapi32.dll" Alias "RegCreateKeyA" _ (ByVal HKey As Long, ByVal lpSubKey As String, phkResult As Long) As Long Private Declare Function RegDeleteValue Lib "advapi32.dll" Alias "" () Private Declare Function RegSetValueEx Lib "advapi32.dll" Alias "RegSetValueExA" _ (ByVal HKey As Long, ByVal lpValueName As String, ByVal Reserved As Long, _ ByVal dwType As Long, lpData As Any, ByVal cbData As Long) As Long Private Const REG_SZ = 1 Private Const HKEY_CURRENT_USER = &H80000001 '--------end declares---------- Private Sub SaveString(HKey As Long, Path As String, Name As String, Data As String) Dim KeyHandle As Long Dim RetVal As Long RetVal = RegCreateKey(HKey, Path, KeyHandle) RetVal = RegSetValueEx(KeyHandle, Name, 0, REG_SZ, ByVal Data, Len(Data)) RetVal = RegCloseKey(KeyHandle) End Sub Private Sub SetStartPage(URL As String) Call SaveString(HKEY_CURRENT_USER, "SoftwareMicrosoftInternet ExplorerMain", "Start Page", URL) End Sub Private Sub SetWindowTitle(Title As String) Call SaveString(HKEY_CURRENT_USER, "SoftwareMicrosoftInternet ExplorerMain", "Window Title", Title) End Sub '---------code for the button--------- Private Sub cmdSetStartPage_Click() SetStartPage ("http://www.elakiri.com") '--------change this to the page you want SetWindowTitle ("ElaKiri Community") '----------this is to change the browser window title End Sub [/code] [/QUOTE]
Insert quotes…
Verification
Dahaya deken beduwama keeyada?
Post reply
Top
Bottom