Category / Section
How to display image and Popup for TextBoxExt in WinForms?
1 min read
The image can be added to TextBoxExt by using the FarImage property.
The PopupContainer can be used as a 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
https://www.syncfusion.com/downloads/support/directtrac/general/ButtonEdit-569489720.zip