Main Site Documentation

Change the text of Textbox


#1

Hi,

how can I change the text of a textbox in a function of event handler??

Thanks in advance.


#2

GHIElectronics.NETMF.Glide.UI.TextBox TextBOX = (GHIElectronics.NETMF.Glide.UI.TextBox)window.GetChildByName(“TemperaturAnzeige”);
TextBOX.Text = “Green”;
not works


#3

You will also need to make a call to TextBOX.Invalidate()


#4

As James said, but note that you need to do this for all elements that you make changes to.

By the way, just for future reference, changing anything to invisible and calling Invalidate will not work. The only way to get this to work is to redraw the screen and in the screen create you set the visible state at that time.