Results 1 to 4 of 4

Thread: [RESOLVED] global Function Generate Erroe

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2005
    Location
    Canada
    Posts
    141

    Resolved [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
  •  



Click Here to Expand Forum to Full Width