User Name Password Register
DaniWeb IT Discussion Community
All
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
Reply
Join Date: Dec 2007
Location: Philippines
Posts: 241
Reputation: technogeek_42 has a little shameless behaviour in the past 
Rep Power: 0
Solved Threads: 2
technogeek_42's Avatar
technogeek_42 technogeek_42 is offline Offline
Posting Whiz in Training

Help Vb6

  #1  
Jan 21st, 2008
can anyone help me how to create or to make my program a self running and don.t not be open to run.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2007
Location: Bangalore,India
Posts: 1,213
Reputation: debasisdas is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 78
debasisdas's Avatar
debasisdas debasisdas is offline Offline
Nearly a Posting Virtuoso

Re: Vb6

  #2  
Jan 21st, 2008
what do you mean by self running ?

If you are trying the program run automatically then create a windows service using .net
Share your Knowledge.
Reply With Quote  
Join Date: Dec 2007
Location: Philippines
Posts: 241
Reputation: technogeek_42 has a little shameless behaviour in the past 
Rep Power: 0
Solved Threads: 2
technogeek_42's Avatar
technogeek_42 technogeek_42 is offline Offline
Posting Whiz in Training

Re: Vb6

  #3  
Jan 21st, 2008
what do you mean by self running ?


for example a anti virus it was automatially run when u boot ur PC...
what is that command?


and what is that .net? can u help me on that aspects coz im only 16 y/o and new student
Reply With Quote  
Join Date: Jan 2008
Location: Jogjakarta
Posts: 95
Reputation: Estella is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 5
Estella's Avatar
Estella Estella is offline Offline
Junior Poster in Training

Re: Vb6

  #4  
Jan 21st, 2008
you must access registry to do this or put the program on startup program..
Reply With Quote  
Join Date: Nov 2007
Location: Jogja
Posts: 2,383
Reputation: Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light 
Rep Power: 9
Solved Threads: 206
Jx_Man's Avatar
Jx_Man Jx_Man is offline Offline
Nearly a Posting Maven

Re: Vb6

  #5  
Jan 21st, 2008
Originally Posted by Estella View Post
you must access registry to do this or put the program on startup program..

the easiest way is put the program on startup program, you can access this as special folder with vb
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
Reply With Quote  
Join Date: Dec 2007
Location: Philippines
Posts: 241
Reputation: technogeek_42 has a little shameless behaviour in the past 
Rep Power: 0
Solved Threads: 2
technogeek_42's Avatar
technogeek_42 technogeek_42 is offline Offline
Posting Whiz in Training

Re: Vb6

  #6  
Jan 21st, 2008
"the easiest way is put the program on startup program, you can access this as special folder with vb"

how can i do thaT? and i wan't to do it to the program that is a self-running and it can open with himself
Reply With Quote  
Join Date: Nov 2007
Location: Jogja
Posts: 2,383
Reputation: Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light 
Rep Power: 9
Solved Threads: 206
Jx_Man's Avatar
Jx_Man Jx_Man is offline Offline
Nearly a Posting Maven

Re: Vb6

  #7  
Jan 21st, 2008
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 *
Reply With Quote  
Join Date: Jan 2008
Posts: 13
Reputation: bector is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 2
bector bector is offline Offline
Newbie Poster

Re: Vb6

  #8  
Jan 22nd, 2008
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
Reply With Quote  
Join Date: Dec 2007
Location: Philippines
Posts: 241
Reputation: technogeek_42 has a little shameless behaviour in the past 
Rep Power: 0
Solved Threads: 2
technogeek_42's Avatar
technogeek_42 technogeek_42 is offline Offline
Posting Whiz in Training

Question Re: Vb6

  #9  
Feb 4th, 2008
Originally Posted by Jx_Man View Post
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███
Reply With Quote  
Join Date: Nov 2007
Location: Jogja
Posts: 2,383
Reputation: Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light 
Rep Power: 9
Solved Threads: 206
Jx_Man's Avatar
Jx_Man Jx_Man is offline Offline
Nearly a Posting Maven

Re: Vb6

  #10  
Feb 4th, 2008
yes, it is.
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Visual Basic 4 / 5 / 6 Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum

All times are GMT -4. The time now is 10:56 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC