Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

hello,

 

in vb.net i create a new form instance in my sub main.

 

Public Module programme
   Public Sub main()
       Dim formulier As New Form1
       formulier.Show()
   End Sub
End Module

 

the form appears but then dissapears again... what is this?

why doesn't it stop when it once appears ?

 

thx,

 

inter

Posted
You also need to tell windows to use the form for processing any windows messages

 

thanks, it works. would think that it would be standard..that the form stops when shown....

Posted

Hellow

Hi

 

when i show a form using

dim x as new form2

x.show ()

------------

when I use this a gian in command_click it will show the form a gain at the same time " it means may copy of the form it selef "

plese i search for a just a way to show a form only as one form without showing it as many forms of the forms it selef

 

thanks lot for your help

 

Osamah Lahham

Jordanian

  • *Experts*
Posted
Osamah, place the "Dim x As New Form2()" outside of your command_click function. That way you will only ever have one instance of the form created at once. x.Show() should still remain in command_click.

"Being grown up isn't half as fun as growing up

These are the best days of our lives"

-The Ataris, In This Diary

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...