Jump to content

How I Greate Exe Files

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
11 replies to this topic

#1
kiss

kiss

    Newbie

  • Members
  • PipPip
  • 22 posts
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

#2
xor

xor

    Newbie

  • Members
  • Pip
  • 9 posts
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
kiss

kiss

    Newbie

  • Members
  • PipPip
  • 22 posts
i need make form2 .exe

#4
Crane

Crane

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 398 posts
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
kiss

kiss

    Newbie

  • Members
  • PipPip
  • 22 posts

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
xor

xor

    Newbie

  • Members
  • Pip
  • 9 posts
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:

#7
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
Yup. that is the only way to create 2 forms that open separately.

#8
kiss

kiss

    Newbie

  • Members
  • PipPip
  • 22 posts
i need code make form2 .exe bu click on command1 in form1
if i open the form2.exe it open form2 no form1

#9
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
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:

shell "form2.exe"

Should work.

#10
kiss

kiss

    Newbie

  • Members
  • PipPip
  • 22 posts
PLEEEEEEEEEEES CAN you give me source code(vb6 project)

thank you

#11
xor

xor

    Newbie

  • Members
  • Pip
  • 9 posts
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.;)

#12
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
But in that case he will not be able to run form2 directly. He has to open a main form to do that.