• Advertisement

Archived

This topic is now archived and is closed to further replies.

How to crrate a new form from a application[VB] ?

This topic is 5040 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, anyone know how to create a new form? You know, sometimes when you press some button in a program. A new window pop up... How can i do that ( in VB.net ) ? Thanks for helping~ [edited by - NewbieA on April 6, 2004 6:04:00 AM]

Share this post


Link to post
Share on other sites
Advertisement
I''m sure if you look hard enough you''ll find an icon in your compiler that says ''new form'' or ''create new form''
Then when you want to open it use something like:

......btnOpenClick (...)

Application.CreateForm(NewForm);
NewForm.Show;
end Sub;

(The syntax may be different for the language you use)

Suppose we all have to start somewhere

Share this post


Link to post
Share on other sites
Thanks,furiousp.
I know there is a icon to craete a new form. And i craeted one. But the problem is how do i call it to pop-up in the program?
In win32, you use CreateWindow() then show and update window. But how about in VB?


Thanks~


[edited by - NewbieA on April 6, 2004 8:36:21 AM]

Share this post


Link to post
Share on other sites
And have you tried using the .show command?
If you use something like Form1.show it should work

Share this post


Link to post
Share on other sites
Ok, i got it now. Is working~~~
Thanks again, furiousp.

(I tried this show() thing before, but the JIT debuger gives me some error message... )


Thanks~

[edited by - NewbieA on April 6, 2004 8:47:09 AM]

Share this post


Link to post
Share on other sites
if you want to close them use .hide. but i don''t think that actually frees it from memory

Share this post


Link to post
Share on other sites
To close it you do:

Dim frm As New Form1

''Show it
frm.Show()

''Close it
frm.Close()

Share this post


Link to post
Share on other sites

  • Advertisement