本文整理汇总了C#中System.Windows.Forms.Cursors.UpArrow属性的典型用法代码示例。如果您正苦于以下问题:C# Cursors.UpArrow属性的具体用法?C# Cursors.UpArrow怎么用?C# Cursors.UpArrow使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类System.Windows.Forms.Cursors
的用法示例。
在下文中一共展示了Cursors.UpArrow属性的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: InitializeRadioButtonsAndGroupBox
internal System.Windows.Forms.GroupBox GroupBox1;
internal System.Windows.Forms.RadioButton RadioButton1;
internal System.Windows.Forms.RadioButton RadioButton2;
internal System.Windows.Forms.RadioButton RadioButton3;
private void InitializeRadioButtonsAndGroupBox()
{
// Construct the GroupBox object.
this.GroupBox1 = new GroupBox();
// Construct the radio buttons.
this.RadioButton1 = new System.Windows.Forms.RadioButton();
this.RadioButton2 = new System.Windows.Forms.RadioButton();
this.RadioButton3 = new System.Windows.Forms.RadioButton();
// Set the location, tab and text for each radio button
// to a cursor from the Cursors enumeration.
this.RadioButton1.Location = new System.Drawing.Point(24, 24);
this.RadioButton1.TabIndex = 0;
this.RadioButton1.Text = "Help";
this.RadioButton1.Tag = Cursors.Help;
this.RadioButton1.TextAlign = ContentAlignment.MiddleCenter;
this.RadioButton2.Location = new System.Drawing.Point(24, 56);
this.RadioButton2.TabIndex = 1;
this.RadioButton2.Text = "Up Arrow";
this.RadioButton2.Tag = Cursors.UpArrow;
this.RadioButton2.TextAlign = ContentAlignment.MiddleCenter;
this.RadioButton3.Location = new System.Drawing.Point(24, 80);
this.RadioButton3.TabIndex = 3;
this.RadioButton3.Text = "Cross";
this.RadioButton3.Tag = Cursors.Cross;
this.RadioButton3.TextAlign = ContentAlignment.MiddleCenter;
// Add the radio buttons to the GroupBox.
this.GroupBox1.Controls.Add(this.RadioButton1);
this.GroupBox1.Controls.Add(this.RadioButton2);
this.GroupBox1.Controls.Add(this.RadioButton3);
// Set the location of the GroupBox.
this.GroupBox1.Location = new System.Drawing.Point(56, 64);
this.GroupBox1.Size = new System.Drawing.Size(200, 150);
// Set the text that will appear on the GroupBox.
this.GroupBox1.Text = "Choose a Cursor Style";
//
// Add the GroupBox to the form.
this.Controls.Add(this.GroupBox1);
//
}