Category: AI

Basics: How to Draw on a Control Using GDI

The comments are in English, and they are perfectly clear: C#//These attributes do not need to be here, it works just as well without them [System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode)] protected override void OnPaint(PaintEventArgs e) { base.OnPaint(e); // Get handle to device context. IntPtr hdc = e.Graphics.GetHdc(); // Create new graphics object using handle to device …

Read More Basics: How to Draw on a Control Using GDI

First Alpha Version of the Object Browser Is Done + Finally Moving On to a Project/Solution Backup Tool

For now it still has some rough edges. For example, in classes that contain events, it generates add_Event(EventHandler) or remove_Event(EventHandler) methods for each of them. The same goes for properties, depending on whether they have Get and/or set – so, for example, get_Property() or set_Property(string). Another problem is that I didn’t manage to get any …

Read More First Alpha Version of the Object Browser Is Done + Finally Moving On to a Project/Solution Backup Tool

What is the difference between ToolStripSplitButton and ToolStripDropDownButton?

It is very simple: both controls are very similar, but the key difference is in how the user works with them – with ToolStripSplitButton you can either click the button itself, which runs whatever action you assign to it, or click the little arrow, which opens the menu. With ToolStripDropDownButton, on the other hand, clicking …

Read More What is the difference between ToolStripSplitButton and ToolStripDropDownButton?

It Can Now Add New Files + A Small Utility for Working with the Registry

Yesterday I made a small utility NastavPolozkyVRegistru, which you pass registry paths and optionally the data type of each entry (string by default), and you can then edit all of them in a single window. The entries are loaded automatically when the window loads, and each one is saved separately when you type or change …

Read More It Can Now Add New Files + A Small Utility for Working with the Registry