Pass parameters to a windows form application

  • Thread starter Thread starter El Camino
  • Start date Start date
E

El Camino

Howdy all

On a window application vb.net

a 'frmOne' open a 'frmTwo'

from 'frmTwo' i get and ID

when i close 'frmTwo', i want to pass the ID to 'frmOne'
to initialize a List view

How can i do that?

Thanx
El Camino
 
Hi ElCamino,

I think this is a standard dialog situation

The most simple is something like (you can also integrate the dialogresult
in it)
\\\ rougly written watch typos
dim frm as new form2
frm.showdialog(me)
dim myId = frm.ID
frm.dispose
///
And make ID public in form2

(Or if you like that, you can make a read only property from it, but that I
find to much work for a simple dialogform)

Cor
 
Awright, thanx man!

El Camino
-----Original Message-----
Hi ElCamino,

I think this is a standard dialog situation

The most simple is something like (you can also integrate the dialogresult
in it)
\\\ rougly written watch typos
dim frm as new form2
frm.showdialog(me)
dim myId = frm.ID
frm.dispose
///
And make ID public in form2

(Or if you like that, you can make a read only property from it, but that I
find to much work for a simple dialogform)

Cor



.
 
Back
Top