•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Visual Basic 4 / 5 / 6 section within the Software Development category of DaniWeb, a massive community of 391,584 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,676 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Visual Basic 4 / 5 / 6 advertiser:
Views: 1904 | Replies: 20 | Solved
![]() |
•
•
Join Date: Feb 2007
Location: Bangalore,India
Posts: 1,213
Reputation:
Rep Power: 4
Solved Threads: 78
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
So, Please do something before post your thread.
* PM Asking will be ignored *
try this following code to copy your program to startup program, but the program must running once to do this. there is none code to make your program running by it self without running before. just one time running and it will running by windows cause windows will running all program in startup program.
Private Sub Form_Load()
Dim mShell
Dim path As String
Set mShell = CreateObject("WScript.Shell")
path = mShell.Specialfolders("Startup")
FileCopy App.EXEName & ".exe", path & "\YourNewRunFileName.exe"
End Sub Last edited by Jx_Man : Jan 21st, 2008 at 11:18 pm.
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
So, Please do something before post your thread.
* PM Asking will be ignored *
•
•
Join Date: Jan 2008
Posts: 13
Reputation:
Rep Power: 0
Solved Threads: 2
for auto running for your program
you have use boot.ini file of window
you have to make changes in window registry
i think you have use a specific event of your progrm with timer in and out event
thanks
http://webdesigningcompany.net
you have use boot.ini file of window
you have to make changes in window registry
i think you have use a specific event of your progrm with timer in and out event
thanks
http://webdesigningcompany.net
•
•
•
•
try this following code to copy your program to startup program, but the program must running once to do this. there is none code to make your program running by it self without running before. just one time running and it will running by windows cause windows will running all program in startup program.
Private Sub Form_Load() Dim mShell Dim path As String Set mShell = CreateObject("WScript.Shell") path = mShell.Specialfolders("Startup") FileCopy App.EXEName & ".exe", path & "\YourNewRunFileName.exe" End Sub
is this for vb6?
╞═══════╣SPYnX███
yes, it is.
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
So, Please do something before post your thread.
* PM Asking will be ignored *
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Visual Basic 4 / 5 / 6 Marketplace
Similar Threads
- VB6 and MS Access 2002 (Visual Basic 4 / 5 / 6)
- VB6 Database Program (Visual Basic 4 / 5 / 6)
- "Error in linking List box with the VB6.0 database" (Visual Basic 4 / 5 / 6)
- New key word not recoginized in VB6 connecting to Access (Visual Basic 4 / 5 / 6)
- Deploying VB6 onto different platform (Visual Basic 4 / 5 / 6)
- XP and VB6 (Windows NT / 2000 / XP / 2003)
- Vb6 and XP (Visual Basic 4 / 5 / 6)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: VB4 into VB Express 2005-2008
- Next Thread: store keystikes in list box



Linear Mode