System.Windows.Forms.ComboBox.OnGotFocus C# (CSharp) Method

OnGotFocus() private method

private OnGotFocus ( EventArgs e ) : void
e System.EventArgs
return void
		protected override void OnGotFocus (EventArgs e)
		{
			if (dropdown_style == ComboBoxStyle.DropDownList)
			{
				// We draw DDL styles manually, so they require a
				// refresh to have their selection drawn
				Invalidate ();
			}
			
			if (textbox_ctrl != null)
			{
				
				textbox_ctrl.Selectable = false;
				textbox_ctrl.SelectText (new NSString (textbox_ctrl.StringValue));
			}
			
			base.OnGotFocus (e);
		}