AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / Desarrollar una aplicación o un sitio web / Controles, ventanas y páginas / Controles: tipos disponibles / Control .Net (WinForm)
  • Overview
  • Using the properties of the control
  • Managing the delegates
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Handling a WinForm .Net control through programming
Overview
WINDEV enables you handle a .Net control (WinForm) through programming. To do so, use the control variable in the code.
The variable of the.Net control (WinForm) corresponds to the name of the.Net control (WinForm).
Using the properties of the control
When the .Net control (WinForm) is created, the code editor proposes the completion on all the properties of the control supplied by the assembly.
// DOTNET_Button_NEt1 = Name of the control
 
// Modify the static
DOTNET_Button_NEt1.Text = ".NET button"
DOTNET_Button_NEt1.BackColor = Color.FromArgb(111,87,235)
Managing the delegates
To call a procedure from the .NET control, use DotNetDelegate.
// DOTNET_Button_NEt1 = name of the control
// Add a delegate on the click
DOTNET_Button_NEt1.add_Click(DotNetDelegate(WinDevCallback,"System.EventHandler"))
Versión mínima requerida
  • Versión 16
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 26/05/2022

Señalar un error o enviar una sugerencia | Ayuda local