[Gtk-sharp-list] Loop through all components in Window

ianwbarlow ianwbarlow at hotmail.com
Thu Nov 17 14:00:44 EST 2011


Hi and thanks for the post

I added this code to clear all entry and textviews on my window

                if(child is Gtk.Entry)

                {

                	Gtk.Entry en1 = child as Gtk.Entry;

                	en1.Text = "";



                }

                if(child is Gtk.TextView)

                {

                	Gtk.TextView tv1 = child as Gtk.TextView;

                	tv1.Buffer.Text = "";

It works fine

Thanks
Ian

--
View this message in context: http://mono.1490590.n4.nabble.com/Loop-through-all-components-in-Window-tp1545038p4081191.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.


More information about the Gtk-sharp-list mailing list