Re: navigate between forms

Tech-Archive recommends: Speed Up your PC by fixing your registry



On 2008-04-18, Mike Williams <mikea@xxxxxxxxxxxxxxxxx> wrote:
"Sergio" <Sergio@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:CED42137-A6E7-4FF8-968C-5D6C77B637A9@xxxxxxxxxxxxxxxx

what i need is to call a form2 from a form1, and
i need to close the form1 before the form2 is open,
right now i'm doing this:
me.close() . . .

In Visual Basic the keyword Me refers to the specific instance of the Class
in which it is used, usually a VB Form, but it does not have a Close method.
Are you sure you are using Visual Basic? Perhaps you are using something
else, maybe an imposter of some kind?


The original poster has already been refered to the proper group, and
acknowledged his mistake. Why do you feel the need to respond in this
manner? Maybe you are trying to continue the VB.NET vs VB.CLASSIC war?

--
Tom Shelton
.



Relevant Pages

  • Re: navigate between forms
    ... i need to close the form1 before the form2 is open, ... In Visual Basic the keyword Me refers to the specific instance of the ... breath and simply redirect the poster to the correct group. ...
    (microsoft.public.vb.general.discussion)
  • Re: How to pass information, classes between forms in Windows Application mode
    ... purposes it's the same as the parameterized copy constructor, ... Another way is the inheritance of forms, Form2: ... Form1 as you discuss below and as I further comment below. ... Form2 from Form1 is not passing the true object but a copy of the ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Still confused about passing data between forms (or classes)
    ... public partial class Form1: Form ... public Form2 form2; ... private void button1_Click(object sender, EventArgs e) ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: beginner programmer with a problem.
    ... My problem now is that if I click on the command button on Form1, ... ever get Form2 opened to the same initial record. ... > This sets the field or control named RecordID on Form2 to the same value as ... > the field/control named RecordID on Form1. ...
    (microsoft.public.access.modulesdaovba)
  • Re: How to get info from another form...
    ... Private Sub New ... Public Class Form2 ... Private _Instance As Form2 ... Let's say you begin in Form1 ...
    (microsoft.public.dotnet.languages.vb)