Dotnet - Unit 5
Dotnet - Unit 5
Dotnet - Unit 5
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace my {
public Form1()
{
InitializeComponent();
}
Output :
Enter Name
Name
if (!checkBox1.ThreeState)
checkBox1.ThreeState = true;
checkBox1.CheckAlign = ContentAlignment.MiddleRight;
else
checkBox1.ThreeState = false;
checkBox1.CheckAlign = ContentAlignment.MiddleLeft;
}
// Concatenate the property values together on three lines.
true if the Checked value and the appearance of the control automatically
change on the Click event; otherwise, false. The default value is true.
radioButton1.Appearance = Appearance.Button;
// Turn off the update of the display on the click of the control.
radioButton1.AutoCheck = false;
Controls.Add(radioButton1);
BeginInvoke(Action)
Executes the specified delegate asynchronously on the thread that the
control's underlying handle was created on.
CreateControl()
Forces the creation of the visible control, including the creation of the handle
and any visible child controls.
GetChildAtPoint(Point, GetChildAtPointSkip)
Retrieves the child control that is located at the specified coordinates,
specifying whether to ignore child controls of a certain type.
BeginInvoke(Delegate)
Executes the specified delegate asynchronously on the thread that the
control's underlying handle was created on.
5. Explain BeginInit(),AdjustFormScrollbars(Boolean),
AccessibilityNotifyClients(AccessibleEvents, Int32) methods in NumericUpDown?
AccessibilityNotifyClients(AccessibleEvents, Int32)
Notifies the accessibility client applications of the
specified AccessibleEvents for the specified child control.
BeginInit()
Begins the initialization of a NumericUpDown control that is used on a form or
used by another component. The initialization occurs at run time.
AdjustFormScrollbars(Boolean)
Adjusts the scroll bars on the container based on the current control positions
and the control currently selected.