System.Windows.Forms.Control.Control C# (CSharp) Method

Control() public method

public Control ( ) : System
return System
		public Control ()
		{
			// We eventually want to create the handle when the form is first shown
			// or when a control is added to a form that already exists. For now, this
			// is ok
			CreateHandle ();
			//c_helper.ScaleUnitSquareToSize(Util.ScaleSize);
			//(c_helper as IViewHelper).Host = this;
			MaximumSize = DefaultMaximumSize;
			MinimumSize = DefaultMinimumSize;
			
			
			layout_type = LayoutType.Anchor;
			anchor_style = AnchorStyles.Top | AnchorStyles.Left;
			
			is_created = false;
			is_visible = true;
			is_captured = false;
			is_disposed = false;
			is_enabled = true;
			is_entered = false;
			layout_pending = false;
			is_toplevel = false;
			causes_validation = true;
			layout_suspended = 0;
			mouse_clicks = 1;
			tab_index = -1;
			right_to_left = RightToLeft.Inherit;
			border_style = BorderStyle.None;
			background_color = Color.Empty;
			dist_right = 0;
			dist_bottom = 0;
			tab_stop = true;
			ime_mode = ImeMode.Inherit;
			use_compatible_text_rendering = true;
			show_keyboard_cues = false;
			use_wait_cursor = false;
			
			backgroundimage_layout = ImageLayout.Tile;
			padding = this.DefaultPadding;
			maximum_size = new Size ();
			minimum_size = new Size ();
			margin = this.DefaultMargin;
			auto_size_mode = AutoSizeMode.GrowOnly;
			
			control_style = ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint | ControlStyles.Selectable | ControlStyles.StandardClick | ControlStyles.StandardDoubleClick;
			control_style |= ControlStyles.UseTextForAccessibility;
			
			parent = null;
			background_image = null;
			text = string.Empty;
			name = string.Empty;
			
			child_controls = CreateControlsInstance ();
			
			bounds = new Rectangle (Point.Empty, DefaultSize);
			explicit_bounds = bounds;
		}

Same methods

Control::Control ( Control parent, string text ) : System
Control::Control ( Control parent, string text, int left, int top, int width, int height ) : System
Control::Control ( string text ) : System
Control::Control ( string text, int left, int top, int width, int height ) : System
Control