i want to enable or diable some controls on another form depending on the action in the current form.
how can i write the code for this in the current form

Dear babbu,

Create a public boolean variable (say IsOk) in Another form (AnotherForm). Set True/False to the boolean variable.
In current form

AnotherForm.IsOk=True
   AnotherForm.Show

Now write code to enabled/disabled the control based upon the value of boolean variable.
In another Form

If IsOK=True then
     ...
  Else
     ....
  End IF
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.