Groups | Blog | Home
all groups > vb.net upgrade > july 2003 >

vb.net upgrade : how to access textfields of a form in Classes!


lonely!
7/5/2003 12:59:34 AM
HI!
i am developing a project in vb.net. my project is on
a hospital. so i made a module and its functionality is
just to insert data in the Database(SQL SERVER). then i
made a function insertdata in a INSERTION class. and in
this function i call the insert function.now i want to
access the text fields of the Patient form in Insertion
class so that when user can insert data on runtime then
that data will be saved on the database. but to access the
text fields i have to create the Patient Form instance.
now tell me how this happens. because simple way of
creating an instance e.g.
dim F1 as new Pateint()
doesn't works.so please help me to do that!!
thanx!
Christian_Fröschlin
7/7/2003 9:43:55 AM
[quoted text, click to view]

Try calling F1.Show() or F1.ShowDialog()
AddThis Social Bookmark Button