Risk in Contemporary Economy (Jul 2019)

Dynamic creation of visual components in C# language

  • Lupasc Adrian

Journal volume & issue
Vol. 1, no. 1
pp. 38 – 43

Abstract

Read online

Visual programming is a way of designing an application by directly exploiting a set of graphical elements specific to the used environment. An application is visual when it has a suggestive graphical interface that provides the user with certain tools through which various functions are accessed (updating a database, for example). The development of such an application consists not only in placing the required controls on the form, but also in describing their associated functionality. The visual components of the application can be processed in the Designer module by a simple drag and drop or can be created dynamically during the running of the application. In this regard, this paper discusses the way in which various visual components of an application developed in C# can be created and added to a form in a dynamic manner. Such a method brings increased flexibility to the developed application, while providing dynamism in designing the tasks to be implemented. Moreover, the methods associated to the implemented template class can be called for any application the programmer wants to develop.