Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21301

[RESOLVED] running code without clicking a button

$
0
0
Now that my project is nearing completion, i have been informed that thjey would like the process to run simply by having the exe called. I must make it run without having to click any command button or anything. simply run when it loads. how do i do this? I tried setting the startup object to sub main and renaming

Code:

Private Sub Command1_Click()

If Dir("C:\test\") = "" Then
MkDir "C:\test\"
Else
End If
.....

to

Code:

Sub Main()

If Dir("C:\test\") = "" Then
MkDir "C:\test\"
Else
End If
....

but no success

Viewing all articles
Browse latest Browse all 21301

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>