hy welcome
If the two forms form1,form2
I want the code greate form2.exe ,So if I open the new file transformer(form2.exe)opened form2 is not form1??
thanks you
iyado
How I Greate Exe Files
Started by kiss, Dec 26 2007 10:22 AM
11 replies to this topic
#1
Posted 26 December 2007 - 10:22 AM
|
|
|
#2
Posted 26 December 2007 - 11:20 AM
not sure I get what your talking about are you refering to making a program load and then unload which then opens a new forum closing the forum that opened up?
#3
Posted 26 December 2007 - 11:28 AM
i need make form2 .exe
#4
Posted 26 December 2007 - 02:44 PM
No, form1 and form2 are just names of your forms. If you want two seperate executables you will have to build to seperate programs.
#5
Posted 26 December 2007 - 08:15 PM
Crane said:
No, form1 and form2 are just names of your forms. If you want two seperate executables you will have to build to seperate programs.
how???please??:eek::eek:
#6
Posted 27 December 2007 - 01:20 PM
Well You make a new project thats how :P
EXE 1
[HIGHLIGHT="VB"]Private Sub Form_Load()
Form1.Caption = "Hello,"
End Sub[/HIGHLIGHT]
EXE 2
[HIGHLIGHT="VB"]Private Sub Form_Load()
Form1.Caption = "World!"
End Sub[/HIGHLIGHT]
:cool:
EXE 1
[HIGHLIGHT="VB"]Private Sub Form_Load()
Form1.Caption = "Hello,"
End Sub[/HIGHLIGHT]
EXE 2
[HIGHLIGHT="VB"]Private Sub Form_Load()
Form1.Caption = "World!"
End Sub[/HIGHLIGHT]
:cool:
#7
Posted 27 December 2007 - 03:16 PM
Yup. that is the only way to create 2 forms that open separately.
#8
Posted 27 December 2007 - 10:12 PM
i need code make form2 .exe bu click on command1 in form1
if i open the form2.exe it open form2 no form1
if i open the form2.exe it open form2 no form1
#9
Posted 28 December 2007 - 02:44 AM
you can use the method xor told you but then go on form one, add a button and then add this code to the button:
Should work.
shell "form2.exe"
Should work.
#10
Posted 28 December 2007 - 03:43 AM
PLEEEEEEEEEEES CAN you give me source code(vb6 project)
thank you
thank you
#11
Posted 28 December 2007 - 01:00 PM
You can do....
[HIGHLIGHT="VB"]Private Sub Command1_Click()
Form2.Show
Unload Form1
End Sub
[/HIGHLIGHT]
so basicly what will happen is command1 will be clicked on and then it will load form1 and at the sametime unload form1 watch will then only have form2 shown.;)
[HIGHLIGHT="VB"]Private Sub Command1_Click()
Form2.Show
Unload Form1
End Sub
[/HIGHLIGHT]
so basicly what will happen is command1 will be clicked on and then it will load form1 and at the sametime unload form1 watch will then only have form2 shown.;)
#12
Posted 28 December 2007 - 03:01 PM
But in that case he will not be able to run form2 directly. He has to open a main form to do that.


Sign In
Create Account


Back to top









