Tag Archives: .NET

INI READER/WRITER C#

#23 INI READER/WRITER C#

Simple INI Reader/Writer

INI files are mostly used in C++ and Delphi programming these days. Microsoft’s .Net framework focuses on XML-based config files not INI files. However it is still possible to read and write to INI files using C#. In this example I have created a very simple INI reader. It allows you to read/write to the config file ini_reader_writer_20xx-xx-xx.ini .

There are plenty  NuGet packages, such as INI Parser. Which allow easy implementation into our projects. You could also write your own class which gives us more control but is overkill for an example. Example an INI file handling class using C#, P/Invoke and Win32.

WINFORMS C# DARKUI

#11 WINFORMS C# DARKUI

DarkUI

Dark themed control and docking library for .NET WinForms.

DarkUI is an attempt to create a simple, extensible control library which emulates the look and feel of popular tabbed document interfaces such as Visual Studio, Photoshop, WebStorm, and XCode. Originally just a collection of bug fixes and enhancements built on top of WinForms, it has now evolved in to a fully working docking and control library.

It’s an inspiring library displaying the power of Windows Forms.

The best way to learn how to use DarkUI is to check out the Example project included with the source code. It’ll show you how to use the majority of the forms, controls, and docking components.

The example source code by RobinPerris can be found here.

SYSTEM READER IN C#

#5 SYSTEM READER IN C#

A small system reader app written in C# WinForms. The application reads the systems ram, processor and user details and displays them on the form.
On program form load the application will run DXDIAG in the background and will save the text file to the root directory of the application.
Once the program has finished the DXDIAG process you can click on the send button.
This will allow us to send the DXDIAG file to any FTP server we have defined in the program.

As default I have replaced all the necessary details with the # symbol.

replace the # symbol with your FTP server details.