A
Agnes
I am so stupid that Got a object declaration question, Anyone, please be
kind to reply me.
I got a datagrid which got a button in each row , the user will do the
searching in it,
If the user do the searching, I will decarre a form and show it. ( as
follow)
1st) Dim frmSearch as New frmCompanySearch
2nd) frmSearch.setting= myObjectSetting
3rd) frmSearch.showdialog()
Now I am confuse that datagrid contains many many rows, if the user process
the above code, it seems It will declare many many frmSearch object, right
?? Will it waste resources ???
I think I can decalre 1st) line once , and put 2nd) line in form_load() ,
right ??
Anydifference ??
Thanks for your kind reply.
kind to reply me.
I got a datagrid which got a button in each row , the user will do the
searching in it,
If the user do the searching, I will decarre a form and show it. ( as
follow)
1st) Dim frmSearch as New frmCompanySearch
2nd) frmSearch.setting= myObjectSetting
3rd) frmSearch.showdialog()
Now I am confuse that datagrid contains many many rows, if the user process
the above code, it seems It will declare many many frmSearch object, right
?? Will it waste resources ???
I think I can decalre 1st) line once , and put 2nd) line in form_load() ,
right ??
Anydifference ??
Thanks for your kind reply.