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
 
Back
Top