GetValueONLoadEvent

  • Thread starter Thread starter rj
  • Start date Start date
R

rj

I pass a bool to a form when it is created

public TFrmPurchaseOrders(bool ISNew)
{
InitializeComponent();
}

How can I access the value of ISNew, in the onload event of this form?


TIA
 
You need to declare a class level variable to store it in.

public class ......
bool _ISNew;
public TFrmPurchaseOrders(bool ISNew)
{
InitializeComponent();
_ISNew = ISNew;
}

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top