C# How to draw shapes – Circle, Rectangle, Arc, Pie, Polygon, Bezier, Text

In order to draw shapes in C# a start point and end point coordinates, and a Pen control must be defined first.
Coordinates in C#The value of x is the location of the point along the x-axis, the 0 is at the extreme left. The value of y is the location of the point along the y-axis, the 0 is at the extreme top.
| |
2017/10/05 01:56

C# - How to add reference to project

|
To add a reference to CSharp project do the following:
  1. Open “Solution Explorer”;
  2. Right click “References”;
  3. Choose “Add Reference”.



On the Reference Manager Window go to: “Assemblies” -> “Framework”.
2017/10/05 01:31

C# Custom control – TextBox accepting only numbers, decimal numbers, signed numbers

| |
The creation of custom control using Visual Studio involves the following steps:
  1. Start Visual Studio;
  2. Create new “Windows Control Library” project;
  3. In the created project delete “User Control” file;
  4. Go to “Project” > “Add User Control” and give it a name;
  5. Change the inherited class to this that you want your control to be;
  6. Create you custom properties for the control;
2017/10/05 00:51

Visual Studio – Add custom control DLL to toolbox

To add a custom control to VisualStudio project:1) Go to “Toolbox” tab;2) Right click on it and click “Choose Items…”;

3) In the “Choose Toolbox Items” window click on the “Browse…” button.Navigate to the location where your Dynamic Link Library (DLL) file is.Click “OK”. Now your custom control is included into the Visual Studio toolbox.
| |
2017/10/05 00:37

MBM Project migration 2017

Today 5 January 2017 MBM Project starts migration to purposely build web site & blog platform based on MS ASP .NET & C# . Some of the old pages with obsolete information will be dropped. Some will be kept for reference. During the migration due to different platforms the information in the old articles might be partially lost or with changed formatting. Users' comments will not be transferred to the new site.



|
2017/01/05 17:46

Anti virus scanning exclusion lists

General Exclusions for All Windows Platforms
  • Pagefile.sys
  • *.pst
  • %systemroot%\System32\Spool (replace %systemroot% with actual directory)
  • %systemroot%\SoftwareDistribution\Datastore (replace %systemroot% with actual directory)
  • %allusersprofile%\NTUser.pol
  • %systemroot%\system32\GroupPolicy\registry.pol
Microsoft Active Directory Domain Controller