際際滷

際際滷Share a Scribd company logo
Vp lecture 7 ararat
 You can add any number of forms to
your application as in figures.
 Project menu>>Add Windows
Form>>add New Item window>>Add.
Vp lecture 7 ararat
Example
Form2 f2 = new Form2();
this.Hide();
f2.Show();
Form1 f1 = new Form1();
this.Hide();
f1.Show();
Application.Exit();
 Add toolTip to your form.
 Then select any control and
set the ToolTip for each
control.
 A notification icon notifies the user. In Windows there
is a Notification Icons section typically in the bottom
right corner.
example 1. Open new project.
2. Add NotifyIcon
control to your
project.
Note:- if you dont put
an icon the
notification balloon
will not appear
Coding
 Double click on form1 and write underline code.
private void Form1_Load(object sender, EventArgs e)
{
notifyIcon1.ShowBalloonTip(1000);
}
1- Add Click event
2- Add underline code
private void notifyIcon1_Click(object sender, EventArgs e)
{
MessageBox.Show("Hello!!!");
}
Execution
Vp lecture 7 ararat

More Related Content

Vp lecture 7 ararat

  • 2. You can add any number of forms to your application as in figures. Project menu>>Add Windows Form>>add New Item window>>Add.
  • 4. Example Form2 f2 = new Form2(); this.Hide(); f2.Show(); Form1 f1 = new Form1(); this.Hide(); f1.Show(); Application.Exit();
  • 5. Add toolTip to your form. Then select any control and set the ToolTip for each control.
  • 6. A notification icon notifies the user. In Windows there is a Notification Icons section typically in the bottom right corner.
  • 7. example 1. Open new project. 2. Add NotifyIcon control to your project. Note:- if you dont put an icon the notification balloon will not appear
  • 8. Coding Double click on form1 and write underline code. private void Form1_Load(object sender, EventArgs e) { notifyIcon1.ShowBalloonTip(1000); }
  • 9. 1- Add Click event 2- Add underline code private void notifyIcon1_Click(object sender, EventArgs e) { MessageBox.Show("Hello!!!"); }