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
NURSING , CAREGIVER , HOTEL & BEAUTY COURSES
IVA Para Medical Campus
Updated:
Today at 9:24 AM
Handmade Character Soft Toys Peppa Pig Family
anil1961
Updated:
Yesterday at 9:58 PM
Ad icon
Video Content Creator
pramukag
Updated:
Sunday at 6:10 AM
Ad icon
QA Engineer Intern
pramukag
Updated:
Sunday at 6:07 AM
Ad icon
Sell your Land, House on idamata.lk for FREE
sajith.xp.pk
Updated:
Jun 25, 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
Haya warak paha keeyada? (haya wadi kireema paha)
Post reply
Top
Bottom