i need to pass w variable from one form to other forms how?

through parameterised constructor OR module , u can resolve the issue, please revert back if any prob

can u plz give me an exmaple?

consider the following scenario.....

frmA =frm from where the value need to pass.
FrmB= the rec of the value.

'in frmB declare a instance variable of the
'TypeofValueUWantToRecieve
dim x as TypeofValueUWantToRecieve

'in frmB create/overload a new constructor Or modify the default 'constructor

public sub new (byVal xVal as theTypeofValueUWantToRecieve )
x=xVal
end sub


''''''''''''''''''''''In frmA while creating obj of frmB , pass the value in ''''''''para..

ex:
dim valueToPass as TypeofValueUWantToPass=someValue
dim ObjFrmB as new frmB(valueToPass )
ObjFrmB.show()

please revert bk if any prob......

The simple way is to declare the variable in a module and declare it public. Set or read the variable from any form.
If however you are worried about security then do as jabijohn says.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.