Search code examples
c#monoxamarin-studiogtk#gtkentry

textEntry.Text output is Gtk.Entry (mono)


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?


Solution

  • I think you should use

    string text = this.myEntry.Text;