[Mono-winforms-list] Get text from TextBox
Stifu
stifu at free.fr
Thu Aug 29 06:18:25 UTC 2013
Hi,
"AFAIK there is no GUI builder in MonoDevleop"
For WinForms, no, but for GTK#, yes.
By the way, usually, WinForms controls are declared in a Designer partial
class, so they can all be accessed from anywhere in the class.
Example:
https://code.google.com/p/epicedit/source/browse/EpicEdit/UI/Tools/CodecControl.cs
https://code.google.com/p/epicedit/source/browse/EpicEdit/UI/Tools/CodecControl.Designer.cs
rap123 wrote
> Hello,
>
> I am a newbie at mono and try to program my first gui like in this
> video <http://www.youtube.com/watch?v=trkXsXIh0xo>
> .
>
> AFAIK there is no GUI builder in MonoDevleop so I found the following
> example and tried to get the text from the TextBox and show it in a label.
>
> I added an event handler but inside of the event handler function the
> TextBox and the Label are not known.
>
> I get the error message: "The name 't1' does not exist in the current
> context". (same for 'l1').
>
> What must be changed in the following code to make the button and the
> label known inside the event handler?
>
>
> Thanks for your help
--
View this message in context: http://mono.1490590.n4.nabble.com/Get-text-from-TextBox-tp4660679p4660722.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.
More information about the Mono-winforms-list
mailing list