Windows Forms C# - Drawing and GDI+

| 2018/02/03 05:08
The System.Drawing and GDI + package The System.Drawing package provides access to GDI + Windows features:
  • Drawing surfaces
  • Working with graphics and graphical transformations
  • Drawing geometric shapes
  • Working with images
  • Working with text and fonts
  • Printing on printer

c# Get selected item text from combobox

| 2017/10/18 06:03
C# Combobox defined with name my_combobox
private System.Windows.Forms.ComboBox my_combobox;

Read the text of the selected combobox item and assign it to string variable, then show it in message box.
string selected_item_text = my_combobox.GetItemText(my_combobox.SelectedItem); MessageBox.Show(selected_item_text);

TAGS:

List registered SQL servers using C#

| 2011/10/16 21:35

Applicable to: Smart Marine 3D, Smart Plant 3D using SQL 2005 client

Smart Plant/Marine 3D software require the SQL servers where projects/plants database is located to be registered on each client workstation. In the software version up to 9.1 HotFix: ANY it is required to have also SQL 2005 client installed on the workstation.

Windows Forms C# - Working with directories and files

| 2018/02/07 04:42
Reading from a text file Text files provide the ideal solution for reading and writing data that should be used frequently, but too voluminous to manually enter each time the program is started.

Windows Forms C# - Forms and Dialogs

| 2018/02/02 22:01

Forms and dialogs in Windows Forms are windows that contain controls. They can be different types: to have or to not have a frame, to be modular or not to be, to be stretchable or not to be, to be above all other windows or not to be, and so on. The System.Windows.Forms.Form class The System.Windows.Forms.Form class is a base class for all for

Windows Forms C# - Loops and Arrays

| 2018/02/02 13:42
Loops 
Programming often requires repeated execution of a given sequence of operations. Loop is a basic programming design that allows multiple execution of a source code snippet. Depending on the type of the loop, the program code in it is repeated either a fixed number of times or while a condition is in effect. A loop that never ends is called an infinite loop.

Windows Forms C# - Variables, Strings and Boolean

| 2018/02/02 02:07
Variables: The variable is a container of information that can change its value. It provides the opportunity for: