Sunday, 8 May 2011

Help Provider Using C#

Help Provider
 This control is used to provide pop-up and online help to user on pressing F1 key. Drag and Drop Help provider as  show in below picture.


Code for using Help Provider- Write following code on Page load Event.

private void Form1_Load(object sender, EventArgs e)
        {
            helpProvider1.SetHelpString(textBox1,"Enter your Name ");
            helpProvider1.SetHelpString(textBox2, "Enter your Age");
            helpProvider1.SetHelpString(dateTimePicker1,"Pich date for giving test");
        }
You will get output as shown below picture on pressing  F1 key.
  

2 comments: