Re: Form2 adds items to listview in Form1?

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



You can pass reference to Form1 to Form2 and use it. Just code AddItem
method in Form1 class.

HTH
Alex

"lastusernameleft" <lastusernameleft@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:9FFAF83F-45A0-4CE3-A74D-0B63D7DD1DD6@xxxxxxxxxxxxxxxx
> What is the standard way to take value(s) from Form2 and use them as
criteria
> to fill a listview with items in Form1?


.



Relevant Pages

  • 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)
  • Re: How to get info from another form...
    ... InitializeComponent() ... Private _Instance As Form2 ... Let's say you begin in Form1 ... Button1 also adds a User control to Form2 (This User Control contains a ...
    (microsoft.public.dotnet.languages.vb)