Example #1
0
 public ButtonTextBoxItem()
 {
     this.m_TextBoxButtonItem = new TextBoxButtonItem();
     ((ISetOwnerHelper)this.m_TextBoxButtonItem).SetOwner(this);
     this.m_TextBoxButtonItem.Click += new EventHandler(TextBoxButtonItem_Click);
     //
     this.m_InputRegion              = new InputRegion(this);
     this.m_InputRegion.PopupClosed += new EventHandler(InputRegion_PopupClosed);
     //
     //
     //
     this.Size = new Size(120, 20);
 }
 public ButtonTextBox()
     : base()
 {
     this.SetStyle(ControlStyles.FixedHeight, false);
     this.UpdateStyles();
     //
     this.m_TextBoxButtonItem = new TextBoxButtonItem();
     ((ISetOwnerHelper)this.m_TextBoxButtonItem).SetOwner(this);
     this.m_TextBoxButtonItem.Click += new EventHandler(TextBoxButtonItem_Click);
     //
     this.m_InputRegion              = new InputRegion(this);
     this.m_InputRegion.PopupClosed += new EventHandler(InputRegion_PopupClosed);
 }