i was wondering... [help]

Posts 1–13 of 13 · Page 1 of 1
i was wondering... [help]
yeah i was wondering how do i make just a part of my program run and startup, not the entire thing, just a form? i dont know if there is a way to do it...
Hmm i don't understand u mean a simple form? or what
Quote Originally Posted by Dark_Goliath View Post
Hmm i don't understand u mean a simple form? or what
i have several forms in my project and i want only 1 of them to lauch at windows start up, not the entire program.
Quote Originally Posted by XGelite View Post
i have several forms in my project and i want only 1 of them to lauch at windows start up, not the entire program.
Code:
filename = ("NAME.exe")
                filepath = "LOCATION"
                regiatrykey = CreateObject("Wscript.shell")
                regiatrykey.regwrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\NAME.exe", (filepath))

and:
Code:
 Dim filename As String
    Dim filepath As Object
    Dim regiatrykey As Object
Thanks me!!!!
Quote Originally Posted by Zoom View Post
Code:
filename = ("NAME.exe")
                filepath = "LOCATION"
                regiatrykey = CreateObject("Wscript.shell")
                regiatrykey.regwrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\NAME.exe", (filepath))

and:
Code:
 Dim filename As String
    Dim filepath As Object
    Dim regiatrykey As Object
Thanks me!!!!
yeah i know how to do this..but i want just a form inside the exe to run. like say they run the program once..but at startup a form inside of the program comes up only, not the entire program.
Quote Originally Posted by XGelite View Post
yeah i know how to do this..but i want just a form inside the exe to run. like say they run the program once..but at startup a form inside of the program comes up only, not the entire program.
Hmm, Try google it!
Hmmm wen u make the form and finish all at her go to project and go to add windows form then to show the form 2 3 4 5 etc make a button or a checkbox and write in the button : if botton1.enabled then
form2.show
But i think the button will not work only for the checkbox
and for checkbox : if checkbox1.checked then
form2.show
else
form2.hide
u can name the form 2 how u want example crosshair
then type :
crosshair.show or u can put what name u want then type the name of the form and then type thenameoftheform.show or hide
Press thanks if i helped u !!!!!!
Quote Originally Posted by Zoom View Post
Hmm, Try google it!
ya tried that. nothing.

Quote Originally Posted by Dark_Goliath View Post
Hmmm wen u make the form and finish all at her go to project and go to add windows form then to show the form 2 3 4 5 etc make a button or a checkbox and write in the button : if botton1.enabled then
form2.show
and for checkbox : if checkbox1.checked then
form2.show
else
form2.hide
u can name the form 2 how u want example crosshair
then type :
crosshair.show or u can put what name u want then type the name of the form and then type thenameoftheform.show or hide
Press thanks if i helped u !!!!!!
you dont understand what im trying to do u... but thanks anyways.


I think im going to try it a different way than what ive been wanting. Thanks for ya'lls help thou. I thanked you both! ; P
I think form 1 automatically opens. just rename the form you want to open to form 1 I guess.Or maybe it is an option in the properties menu. i would try to help but I dont have vb on this computer
well if u are wanting to change the start up form then go to the properties>Application then there is an option to change the startup form
Ok i got it . I figured it out on my vb computer. Go into your application designer code
go down to this.It should be at the botton
Code:
<Global.System.Diagnostics.DebuggerStepThroughAttribute()>  _
        Protected Overrides Sub OnCreateMainForm()
            Me.MainForm = Global.Youtube_Advanced_Webbrowser.Form1
        End Sub
Now replace where it says form1 with w/e you want
thats still not exactly what i wanted.. This what im trying to do. Turn one of the forms inside my project into a separte .exe when a user presses a button and puts that form into the startup. not the whole project. ya i know how to make a certain form to be the startup form but thats not what im trying to do.

thanks thou.. i think i found another way to achieve what im trying to do.
Quote Originally Posted by XGelite View Post
thats still not exactly what i wanted.. This what im trying to do. Turn one of the forms inside my project into a separte .exe when a user presses a button and puts that form into the startup. not the whole project. ya i know how to make a certain form to be the startup form but thats not what im trying to do.

thanks thou.. i think i found another way to achieve what im trying to do.
Problem solved

/Closed
Posts 1–13 of 13 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

Talk with us