|
-
Apr 28th, 2005, 07:02 AM
#1
Thread Starter
Addicted Member
[RESOLVED] global Function Generate Erroe
It s global method
We pass Form object in this function when we compile Programmer system generate error message
'System.Windows.Forms.Form' does not contain a definition for 'SaveValues'
SaveValues() and ClearValues exist in all forms we want we just pass Form Object in Function
private void button1_Click(object sender, System.EventArgs e)
{
Form1 f1 = new Form1();
DentMode(f1);
}
public string DentMode(System.Windows.Forms.Form frmName)
{
frmName.SaveValues();
SecondName.ClearValues();
}
Last edited by Waseemalisyed; May 10th, 2005 at 06:39 AM.
Reason: ok
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|