PC Review


Reply
Thread Tools Rate Thread

I can't get a form to call. (I'm new to VB)

 
 
George Medlock
Guest
Posts: n/a
 
      24th Mar 2005
I have a button that I want to click and bring up another form. I can't
find the command to do this. I've mostly worked with MS Access macros. But
what's the command to open a form in VB.NET?


 
Reply With Quote
 
 
 
 
Chris Dunaway
Guest
Posts: n/a
 
      24th Mar 2005
The simplest command is something like this:

Dim f As New FormClassNameHere
f.Show

You can also call

f.ShowDialog

 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      25th Mar 2005
"George Medlock" <(E-Mail Removed)> schrieb:
>I have a button that I want to click and bring up another form. I can't
>find the command to do this. I've mostly worked with MS Access macros. But
>what's the command to open a form in VB.NET?


\\\
Dim f As New FooForm()
f.Show()
///

Showing a form modally:

\\\
Dim f As New FooForm()
f.ShowDialog()
f.Dispose()
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Call a javascript when i call an aspx page with a form html not running on server Fabio Mastria Microsoft ASP .NET 4 28th Jan 2008 09:05 AM
Call user form from ThisWorkbook; close file if form closed =?Utf-8?B?WFA=?= Microsoft Excel Programming 2 20th Jul 2007 07:04 PM
Form.Closing event not fired always when i call Form.Close method berylwilson Microsoft Dot NET Framework Forms 1 20th Apr 2007 02:11 AM
Call data collection form from Function and wait till form close t =?Utf-8?B?ZGtlcm4=?= Microsoft Access 1 27th Feb 2006 03:36 AM
Does a form automatically call Dispose() for each control it contains when the form itself is disposed? Roberto Rocco Microsoft Dot NET Compact Framework 3 16th Aug 2005 11:19 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:30 AM.