Category / Section
How to display image and Popup for TextBoxExt?
1 min read
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
https://www.syncfusion.com/downloads/support/directtrac/general/ze/ButtonEdit-569489720670782384.zip