create classes in C # as in Visual FoxPro [closed]

-1

Masters. I'm about to start my first project in C # (I'm a developer in Visual FoxPro), I need to create visual classes of Textbox and Grids (among many others) that I will use in almost 90% of the project since I want to customize them to standardize the system . How they are created or not is feasible to do so ..

Thanks

MK

    
asked by micky khan 17.04.2017 в 22:24
source

1 answer

2

To customize the controls that .net provides you could make use of Custom Control

Develop custom controls for Windows Forms with the .NET Framework

You could inherit from an existing control and customize it with properties and events

How to: Inherit from existing Windows Forms controls

the base would be

public class CustomControl1 : System.Windows.Forms.Button{
  //aqui codigo personalizado
}

When you compile the control it will appear in the toolbox so you can drag it in the design of the form

    
answered by 17.04.2017 / 22:35
source