Articles in this section
Category / Section

How to display image and Popup for TextBoxExt in WinForms ButtonEditor control?

The image can be add to TextBoxExt by using FarImage property.

The popupcontainer can be used as popup to TextBoxExt by using the following code examples.

C#

//To Display Popup
private void button1_Click(object sender, EventArgs e)
        {
                            this.popupControlContainer1.ParentControl = this.textBox1;
                            this.popupControlContainer1.ShowPopup(Point.Empty);
        }
//To add image in TextBoxExt
private void Form1_Load(object sender, EventArgs e)
        {
                            this.textBoxExt1.FarImage = global::pop.Properties.Resources.Chart;
        }

 

VB

‘To Display Popup
Private Sub button1_Click(sender As Object, e As EventArgs)
Me.popupControlContainer1.ParentControl = Me.textBox1
Me.popupControlContainer1.ShowPopup(Point.Empty)
End Sub
'To add image in TextBoxExt
Private Sub Form1_Load(sender As Object, e As EventArgs)
Me.textBoxExt1.FarImage = Global.pop.Properties.Resources.Chart
End Sub

Sample Link

http://www.syncfusion.com/downloads/support/directtrac/general/ButtonEdit-569489720.zip

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied