Download project file. This file not containing viruses. If your web browser is tell this file contained viruses, don't think about that.
Not available
Language : C#.NET
using System;
using System.Windows.Forms;
namespace Controls_Of_Forms
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void btnclose_Click(object sender, EventArgs e)
{
DialogResult = MessageBox.Show("Do you want to close this window?", "Controls Of Forms", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
if(DialogResult == DialogResult.No)
{
return;
}
this.Close();
}
private void btnmximize_Click(object sender, EventArgs e)
{
if (this.WindowState == FormWindowState.Maximized) this.WindowState = FormWindowState.Normal;
else if (this.WindowState == FormWindowState.Normal) this.WindowState = FormWindowState.Maximized;
}
private void btnminimize_Click(object sender, EventArgs e)
{
this.WindowState = FormWindowState.Minimized;
}
}
}
Thanks for watching this tutorial. You can ask any question about this tutorial . If you have any other question? - go to our web & send your question with more details. So thankful to watch this tutorial. If you learn some thing from us, please subscribe to follow our next tutorials.
🔗Links -
Ask questions - https://bit.ly/3Fsrx64
Website - https://bit.ly/3FpH4nh
Tutorials for C# - https://bit.ly/3ae9D8H
🧑🏭Contact -
Gmail - codecdevus@gmail.com
Discord - https://discord.gg/R4dPWCsYFe