Monday, December 25, 2023

Draw Lines using Mouse and build custom control topics

Draw Lines using Mouse and build custom control topics

  1. Drawing Lines And Rectangles Using the Mouse
  2. Simple program utilizing the mouse to draw lines and rectangles.

  3. Writing Your Custom Control: Step by Step
  4. Making a cute button of two semi-transparent user-changeable colors

  5. A C# class that deals with System Registry
  6. This C# class retrieves, creates, deletes Registry values and keys, and even more...

  7. 4 steps to create free SSL certificate for development
  8. 4 steps to create free SSL certificate for development

  9. A Better Line Control
  10. A WinForms line control that works how you would expect one to.

  11. A Better Line Control
  12. A WinForms line control that works how you would expect one to.

  13. Developing a Line Control
  14. This is a control that takes a starting point and an ending point as objects and draws a line between them

  15. The Spiral TrackBar Control
  16. In this article, you will learn about the SpiralTrackBar class. This class is a replacement for the .NET Framework and .NET TrackBar control, which displays the track line as a spiral.

  17. Get the Best of Both Worlds: Command Line and GUI
  18. The article introduces Command Line GUI, a shared library inspired by the Plossum library, which allows rapid development of console apps with parameters and options, providing a GUI without additional programming. It demonstrates how to develop plugins for existing command line programs or console apps utilizing Plossum, using a data model class and attributes to describe options, and how Command Line GUI can handle multiple plugins.

  19. Plossum
  20. Plossum is a class library collection written in C# providing functionality mainly for writing and communicating with console applications. It provides a .net interface to some Win32 specific system service functions as well as more generic classes.

  21. Nice Line - A simple shaded line
  22. A simple line control with multiple purposes

  23. Rubberband Lines
  24. Using the rubberband line as a ruler.

  25. Line to Region
  26. This class gets an array of pointf() and returns the corresponding line region with custom width.

  27. Editor3D: A Windows.Forms Render Control with interactive 3D Editor in C#
  28. A universal ready-to-use interactive 3D Editor control for System.Windows.Forms applications. It displays 3D data that the user can modify with the mouse. The control consists of a single C# file and is optimized for maximum speed.

  29. https://www.codeproject.com/Articles/26542/An-Intelligent-NET-Multilanguage-Installer
  30. This project is based on my Cabinet Library CabLib which is also published with source code on The Code Project. The original purpose was to create an Installer or Setup which installs an ASPX server consisting of 3000 files. But obviously you can use this Installer to install any software package.

  31. Drawing and Editing Lines with GDI+
  32. Here's the code to implement a basic graphic user interface to paint, and then edit, lines on a PictureBox.

  33. Ruler Control
  34. Ruler control in C#

  35. Line Graph Component in C#
  36. Line Graph Component in C#

  37. LineEditor Control – Line based visual input/output
  38. A line based control for output and optional input, and a discussion of how to create a custom control from the .NET UserControl.

  39. Shape Control for .NET
  40. Implementing shape control that supports transparency, custom design-time editors and simple animation

  41. A thermometer control
  42. Creating an analog-style thermometer

  43. Eyes
  44. Creating an eye control.

  45. Pulse Button
  46. Pulse Button

  47. Writeable Application Scope Settings
  48. Writeable Application Scope Settings

  49. Drawing a Line Graph in GDI+
  50. Drawing a line graph in Cartesian coordinates (VB.NET and GDI+)

PE format

PE format

    Top tools

  1. Training 3: Basics About the PE Format and .NET
  2. You already know how to find that out. Use the "file" command, TrID, or look at the sample with a hex editor. All of these ways should tell you what kind of file we have here.

  3. app-peid
  4. PE iDentifier v0.95 (2008.11.03) by snaker, Qwerton, Jibz & xineohP
    ------------------------------------------------------ PEiD detects most common packers, cryptors and compilers for PE files. It can currently detect more than 600 different signatures in PE files.

  5. ExeInfo: PE
  6. Packer, compressor detector / unpack info / internal exe tools Detect : Symbian / Android / Linux / Mac OS - files PUP / PUA Applications & Downloaders Archives : .zip , .rar , .zlb , .gz , .7 zip , .tar , .cab .is , ...

  7. A.S.L Soft
  8. Free Windows software Detect packer , compiler , protector , .NET obfuscator , PUA application

  9. PEiD
  10. PEiD detects most common packers, cryptors and compilers for PE files. It can currently detect more than 470 different signatures in PE files. It seems that the official website (www.peid.info) has been discontinued. Hence, the tool is no longer available from the official website but it still hosted on other sites.

  11. PE Format Illustrated – Part 1
  12. Beginners tutorial on PE format, with illustrations. Planned to be an easy-to-follow overview tutorial with a lot of illustrations, without going into all the details. We tried to focus on the big picture.

  13. PE Format Illustrated – Part 2
  14. This is a beginner’s tutorial on PE format applied to .NET assemblies. We tried to give light illustrated text. We tried to focus on the big picture.

  15. A Number of Reusable PE File Format Scanning Functions
  16. Useful functions to retrieve information from PE files.

    his article accompanies a number of command line sample applications that wrap some common code of mine. This common code can be used to extract various information from PE format files (PE format stands for Portable Executable Format). The four samples are named bitness, pefileuses, dotnetsearch and pdbget.

  17. Pepper
  18. PE (x86) and PE+ (x64) files viewer, based on libpe.

  19. Anatomy of a .NET Assembly – PE Headers
  20. Today, I’ll be starting a look at what exactly is inside a .NET assembly – how the metadata and IL is stored, how Windows knows how to load it, and what all those bytes are actually doing. First of all, we need to understand the PE file format.

  21. .NET File Format - Signatures Under the Hood, Part 1 of 2
  22. A full description of signatures, that are part of the .NET file format

  23. .NET File Format - Signatures Under the Hood, Part 2 of 2
  24. A full description of signatures, that are part of the .NET file format

  25. PE file format part1 - DOS Headers, Signature, File Header
  26. PE file format part2 - Optional Header
  27. 0:16 / 3:32 PE file format part2 - Optional Header

  28. The .NET File Format
  29. The standards of the .NET format are public, you can find them on Microsoft and in your .NET SDK (look after "Partition II Metadata.doc"), but they are intended to be a more like a reference, not really a guide. So, the truth is that a description of the format can be useful. I mean there's a huge difference between having the WinNT.h and having the full explanation of structures and stuff. The documentation given by Microsoft has some explanations, but a lot of passages aren't very clear at all. Of course, it's required that you know quite well the PE File Format. If that's not the case, you should start with that first, otherwise you won't be able to make heads or tails of this article. A little warning: I'm not going to explain how to use the libraries given by Microsoft to access the .NET Format, I'm going to explain the format itself. This article is based on the Framework 2.0.

  30. Explorer Suite
  31. Small announcement: If you or your organization needs professional PE inspection, then take a look at Cerbero Suite (the commercial product of my company), which properly supports many file formats beyond the complete Portable Executable specification. It’s multi-platform (Windows, OS X & Linux) and it comes as a free trial.

  32. The .NET File Format
  33. A full description of the .NET File format.

Saturday, December 16, 2023

interoperability between C++ and C#

interoperability between C++ and C#

  1. Interoperability between C++and C#
  2. In this article I demonstrate how to call a C++ function, set a callback function in C#, and output showcasing the successful callback from C++ to C#.

  3. libpe: PE32/PE32+ Binaries Parsing Library
  4. This project details the functionality of "libpe," a C++ library enabling the manipulation and extraction of various data structures from PE32(x86) and PE32+(x64) binaries. It provides methods to access and retrieve different headers, tables, sections, and resource information.

Saturday, December 9, 2023

Runtime Object Editor

Runtime Object Editor

  1. Runtime Object Editor
  2. A powerful window/object editor to be used at runtime that allows viewing/changing of properties and fields, method invocations, and object hierarchy navigation.

  3. SnapWindows - StickyWindows reloaded
  4. A new approach to 2D - geometric computation replaces Point, Size, and Rectangle.

  5. SizerPanel and CaptionPanel
  6. Two WinForms controls that help to develop compact and flexible user interfaces.

base class and clone()

base class and clone()

  1. Base class for cloning an object in C#
  2. This class implements the ICloneable for you.

  3. WD Gann Square of 52 - One of the approach to find Tops and Bottom
  4. HOW 2 USE WD GANNS SQUARE OF 144 (DEC 2017)

Saturday, December 2, 2023

static constructor and singleton and object class

c# class static constructor

  1. Static constructor in C#
  2. When you work with static class variables, the static constructor allows you to create much cleaner code. It gives you the ability to execute code before one of the static methods of the class is executed. You are able to initialize the static variables of your class with no lock or if statement.

  3. Static Constructor In C# And Its Usages
  4. C# supports two types of constructors, a class constructor (static constructor) and an instance constructor (non-static constructor).

  5. Static Constructors (C# Programming Guide)
  6. A static constructor is used to initialize any static data, or to perform a particular action that needs to be performed only once. It is called automatically before the first instance is created or any static members are referenced. A static constructor will be called at most once.

  7. C# static class constructor
  8. Is there a work around on how to create a constructor for static class?

  9. C# | Object Class
  10. The Object class is the base class for all the classes in the .Net Framework. It is present in the System namespace. In C#, the .NET Base Class Library(BCL) has a language-specific alias which is Object class with the fully qualified name as System.Object.

  11. C# | Static Class
  12. In C#, one is allowed to create a static class, by using static keyword. A static class can only contain static data members and static methods. It is not allowed to create objects of the static class and since it does not allow to create objects it means it does not allow instance constructor. Static classes are sealed, means you cannot inherit a static class from another class.

  13. C# | Difference between Static Constructors and Non-Static Constructors
  14. Static constructors are used to initialize the static members of the class and are implicitly called before the creation of the first instance of the class. Non-static constructors are used to initialize the non-static members of the class. Below are the differences between the Static Constructors and Non-Static Constructors.

  15. Object Class
  16. Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.

  17. Static Interfaces in C#
  18. Introducing a library (distributed as a Nuget package) that is compensating for the lack of static interfaces in C#

  19. Constant , Readonly and Static in C#
  20. Constant, readonly and static are mostly used and confused keywords in .NET framework. This article briefly explains about all of the keywords and explains them in the scenarios they can be used in. CodeProject

    Singleton Pattern

  21. Implementing the Singleton Pattern in C#
  22. The singleton pattern is one of the best-known patterns in software engineering. Essentially, a singleton is a class which only allows a single instance of itself to be created, and usually gives simple access to that instance. Most commonly, singletons don't allow any parameters to be specified when creating the instance - as otherwise a second request for an instance but with a different parameter could be problematic! (If the same instance should be accessed for all requests with the same parameter, the factory pattern is more appropriate.) This article deals only with the situation where no parameters are required. Typically a requirement of singletons is that they are created lazily - i.e. that the instance isn't created until it is first needed.

  23. Singleton in C#
  24. Singleton is a creational design pattern, which ensures that only one object of its kind exists and provides a single point of access to it for any other code.

  25. Singleton in C#
  26. Singleton is a creational design pattern, which ensures that only one object of its kind exists and provides a single point of access to it for any other code.

  27. Singleton Design Pattern in C#: Full Guide
  28. Have you ever wondered how to maintain a unique instance throughout the lifecycle of an application and ensure that one class only has one instance?