77 |
textEntry.BorderStyle = BorderStyle.None; |
textEntry.BorderStyle = BorderStyle.None; |
78 |
textEntry.TabStop = false; |
textEntry.TabStop = false; |
79 |
textEntry.LostFocus += new EventHandler(textentry_LostFocus); |
textEntry.LostFocus += new EventHandler(textentry_LostFocus); |
80 |
|
textEntry.GotFocus += new EventHandler(textentry_GotFocus); |
81 |
this.Controls.Add(textEntry); |
this.Controls.Add(textEntry); |
82 |
|
|
83 |
popup = new PopupControl(); |
popup = new PopupControl(); |
593 |
base.OnEnter (e); |
base.OnEnter (e); |
594 |
if (DropDownStyle == ComboBoxStyle.DropDownList) |
if (DropDownStyle == ComboBoxStyle.DropDownList) |
595 |
Invalidate(); |
Invalidate(); |
|
else |
|
|
{ |
|
|
textEntry.Focus(); |
|
|
textEntry.SelectAll(); |
|
|
} |
|
596 |
} |
} |
597 |
|
|
598 |
protected override void OnLeave(EventArgs e) |
protected override void OnLeave(EventArgs e) |
954 |
{ |
{ |
955 |
OnLostFocus(e); |
OnLostFocus(e); |
956 |
} |
} |
957 |
|
|
958 |
|
private void textentry_GotFocus(object sender, EventArgs e) |
959 |
|
{ |
960 |
|
OnGotFocus(e); |
961 |
|
} |
962 |
|
|
963 |
private void scrollbar_ValueChanged(object sender, EventArgs e) |
private void scrollbar_ValueChanged(object sender, EventArgs e) |
964 |
{ |
{ |
965 |
using (Graphics g = popup.CreateGraphics()) |
using (Graphics g = popup.CreateGraphics()) |