ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / Developing an application or website / Controls, windows and pages / Controls: Available types / .Net control (WinForm)
  • Overview
  • Using the properties of the control
  • Managing the delegates
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Manipulating WinForm .Net controls programmatically
Overview
WINDEV allows you to manipulate a DotNet field (WinForm) by 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_Bouton_NEt1 = Nom du champ

// Modification du libellé
DOTNET_Bouton_NEt1.Text = "Bouton .NET"
DOTNET_Bouton_NEt1.BackColor = Color.FromArgb(111,87,235)
Managing the delegates
To call a procedure from the .NET control, use DotNetDelegate.
// DOTNET_Bouton_NEt1 = nom du champ
// Ajout d'un délégué sur le clic
DOTNET_Bouton_NEt1.add_Click(DotNetDelegate(CallbackWinDev,"System.EventHandler"))
Minimum version required
  • Version 16
Comments
Click [Add] to post a comment

Last update: 09/21/2024

Send a report | Local help