473,385 Members | 1,342 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

GetValueONLoadEvent

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

Nov 16 '05 #1
1 989
You need to declare a class level variable to store it in.

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

Chris

"rj" <rj@att.com> wrote in message
news:O2*************@TK2MSFTNGP10.phx.gbl...
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

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.