| | |
self-running proram
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Dec 2007
Posts: 9
Reputation:
Solved Threads: 0
Take registry backup and try this.
Alternatively you can add your program executable to startup.
vb Syntax (Toggle Plain Text)
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click My.Computer.Registry.SetValue _ ("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run", _ "MyProgram", "dir:\path\name.exe", _ Microsoft.Win32.RegistryValueKind.String) End Sub
Alternatively you can add your program executable to startup.
"If it involves programing, it's possible."
hmm, cyberwizmj already answer the question. the easiest way is put the program in startup.
just give the feedback.
just give the feedback.
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 *
so you want to make some program like virus or you really want to make virus program??
you mean when you connect your flash disk to computer the current program will running from your flash disk and infect the destination pc (copy it self to destination pc). right or not?
if u want to do this u will using autorun file (.inf) to run the program which your flash disk connect to computer.
you mean when you connect your flash disk to computer the current program will running from your flash disk and infect the destination pc (copy it self to destination pc). right or not?
if u want to do this u will using autorun file (.inf) to run the program which your flash disk connect to computer.
Last edited by Jx_Man; Jan 24th, 2008 at 12:42 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 *
actually your current question is you want to make the program run by it self. the answer is put the program in startup or make a file on registry to run the program. now you post the other question to run your program from usb/flash disk and the answer is make the autorun file (.inf) to run the program automatically. your program like a virus behavior.
![]() |
Similar Threads
- y (C++)
Other Threads in the VB.NET Forum
- Previous Thread: Enable Menu items
- Next Thread: How do i clear values stored in all the members in this Class (at the same time) ?
| Thread Tools | Search this Thread |
.net .net2008 2008 access add advanced application array basic beginner browser button buttons center click code combo cpu cuesent data database datagrid datagridview date datetimepicker designer dissertation dissertations dissertationtopic eclipse employees excel exists fade filter forms html images input internet listview map mobile module monitor msaccess mysql net number objects open pan panel pdf picturebox picturebox2 port position print printing printpreview read regex remove reuse right-to-left save search searchvb.net serial settings shutdown socket sqldatbase sqlserver storedprocedure survey temperature textbox timer timespan transparency txttoxmlconverter user usercontol vb vb.net vba vbnet vista visual visualbasic visualbasic.net visualstudio.net web winforms wpf wrapingcode xml year






