Set the standard colors of the control:
System. Drawing. systemcolors
ASCII value between 0 and 9:
The ASCII value between 0 and 9 is 48 to 57, so the warranty character is in this region. An ASCII value of 8 indicates the unsigned limit.
The operation of the control is invalid.
The handled setting of keypresseventargs is set to true, telling the control not to perform any operations on the characters.
For example, obtain the child control in toolstrip.
// Obtain the child control in toolstrip by following the samples
// Follow the entire window (fronthelper. mfrmmain is a form)
Foreach (Control BTN In Fronthelper. mfrmmain. Controls)
{
// Determine whether javasbtn is a toolstrip Control
If (BTN Is Toolstrip)
{
Toolstrip TS = New Toolstrip ();
// Convert the control BTN into a toolstrip Control
TS = (Toolstrip) BTN;
Foreach (Toolstripitem CTN In TS. Items)
{
// Judge whether the cTn is a toolstripbutton Control
If (CTN Is Toolstripbutton)
{
If (CTN. Tag ! = Null )
{
If (CTN. Tag. tostring (). tolower () = " New " )
{
CTN. Enabled = False ;
}< BR >}< br>
how to set the window size in C # /// maximize hidden objects
form1.maximizebox = false ;
// Set the format of the window to fixed: fixed and one-stop window condition.
form1.formborderstyle = fixedsingle;
Activate the current user//Activate the environment (set the active window as before)
This. Activate ();