Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #107.73K
1 Posted Topic
[quote=dks1385;273705]What,s wrong with this code: procedure TWinForm1.Button2_Click(sender: System.Object; e: System.EventArgs); var varForm:TwinForm1; begin varForm.Close; end; Error: system.NullReferenceException[/quote] You are attempting to close the form from a method of the form itself - and inside the method, you are declaring a local variable and calling it "varForm" of type TwinForm1. What's …
The End.
ttheobald