|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
Form manipulation
I have two forms and I switch aone for to another. But I would like to close one form before/after going to the other form. How to do that?
|
|
#2
|
|||
|
|||
|
Hello szms,
Assume that you have Form1 and Form2 and you want to close Form1 and switch to Form2 then put this line into On Close event procedure of Form1: DoCmd.OpenForm "Form2" Oop! I am wrong. This is in Access ![]() try something like this in Load or Unload event: Form1.Hide Form2.Show |
|
#3
|
|||
|
|||
|
What do you mean by close, you can hide the visibility of the form or you can unload the form.
From code, a simple Unload FormName does the trick.
__________________
====== Doug G ====== I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain |
|
#4
|
|||
|
|||
|
On form1/button:"view_form2":
Private Sub view_form2_Click() Load Form2 Form1.Hide Form2.Show End Sub On form/button:"view_form1": Private Sub view_form1_Click() Form1.Show Unload Form2 End Sub |
|
#5
|
|||
|
|||
|
I am using .NET. The code you provided is not for VB.NET, I guess. Could you confirm it?
|
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Form manipulation |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|