concommand.Add( "test_textentry", function(ply)
local frame =vgui.Create( "DFrame" )
frame:SetSize( 400, 200 )
frame:Center()
frame:MakePopup()
local TextEntry =vgui.Create( "DTextEntry", frame ) -- create the form as a child of frameTextEntry:Dock( FILL )
TextEntry:SetMultiline( true )
TextEntry.OnChange =function( self )
chat.AddText( self:GetValue() ) -- print the textentry text as a chat messageendend )