Archived

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

NewbieA

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

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
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
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