C
Chris Voon
Hi all,
I've a solution containing 2 projects, one for the GUI
whereas the other contains the data logic. On the GUI, I
have some controls to capture user's input. User will
initiate some action by clicking say a button on the GUI.
It will then invoke the data logic and the data logic
project will try to retrieve some user input from the GUI.
When it was in VB, it's simply done by accessing each
control component directly. But now in VB.net everything
is an object. So i will need a reference of this GUI form
and go further from there to obtain values within those
components within the form. I am aware that it's possible
to pass variable from the form to the data logic classes,
but i wish to do it such a way that i simply call a
function within the data logic without passing any
variable and the data logic class access the GUI's
components and then their values therein.
Thanks once again for those smart ppl that helps me to
figure this out.
I've a solution containing 2 projects, one for the GUI
whereas the other contains the data logic. On the GUI, I
have some controls to capture user's input. User will
initiate some action by clicking say a button on the GUI.
It will then invoke the data logic and the data logic
project will try to retrieve some user input from the GUI.
When it was in VB, it's simply done by accessing each
control component directly. But now in VB.net everything
is an object. So i will need a reference of this GUI form
and go further from there to obtain values within those
components within the form. I am aware that it's possible
to pass variable from the form to the data logic classes,
but i wish to do it such a way that i simply call a
function within the data logic without passing any
variable and the data logic class access the GUI's
components and then their values therein.
Thanks once again for those smart ppl that helps me to
figure this out.