textEntry.Text output is Gtk.Entry (mono)

1.4k Views Asked by At

I try to get the text of an Entry with this code:

this.myEntry.Text();

also I have tried:

this.myEntry.Text.ToString();
this.myEntry.ToString();

But all what I get is Gtk.Entry and not the text from the Entry. How Can I fix this?

1

There are 1 best solutions below

0
adiego73 On BEST ANSWER

I think you should use

string text = this.myEntry.Text;