PC SOFT

WINDEV的在线文档

  • Overview
  • Using the properties of the control
  • Managing the delegates
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系:info@cn.windev.com
产品
WinDevWebDev-服务器代码WebDev-浏览器代码WinDev Mobile报表和查询
平台
WindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPad
语言
JavaPHPAjax用户代码(MCU)外部语言
数据库
HFSQLHFSQL Client/Server存储过程HF 5.5OLE DBODBC本地访问

Overview
WinDev enables you handle a .Net control (WinForm) by programming. To do so, use the variable of the control 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 caption
DOTNET_Button_NEt1.Text".NET button"
DOTNET_Button_NEt1.BackColorColor.FromArgb11187235

Managing the delegates
To call a procedure from the .NET control, all you have to do is use DotNet委托.

// DOTNET_Button_NEt1 = name of the control
// Add a delegate on the click
DOTNET_Button_NEt1.add_ClickDotNet委托WinDevCallback"System.EventHandler"))