Posts

Showing posts from 2012

TortoiseHg Manager (Repository Verification)

Image
TortoiseHg Manager is a tool to verify all your Mercurial SCM repositories in TortoiseHg in one click. Detailed explanation and downloads available at CodeProject . Source code and latest binary is available at GitHub

Most Recent Used List for WinForms (ToolStripMruList)

Image
ToolStripMruList allow you to add Most Recent Used (MRU) list to your .NET Windows Forms Application in ToolStrip and MenuStrip. This control is included in WinForms Controls Library . Features Integrated with ToolStripMenu. Customize number of files to remember.  Auto truncate long file name to defined length.  User define storage location for recent file list. Clear Recent File List. Remove Invalid Files.

WinForms Gauge Control

Image
Introduction WinForm Gauge - Released 2021   WinForm Gauge is successor for AGauge control, redesigned with better structure, performance and features. Find out more  at https://winformgauge.codearteng.com/     Original AGauge control AGauge is a gauge control for WinForms create by A.J.Bauer using GDI+. Original code was published in " Code Project - A fast and performing gauge " The version that I published here is an improved version of AGauge which contains the following changes. Download from GitHub   NOTE: We no longer actively maintaining AGauge. The development of this package is taken over by nutdotnet . Refer to his GitHub and NuGet page for details.   Improvements   Dynamic Gauge Label and Gauge Range Properties for gauge label (previously known as CapText ) and range are grouped into GaugeRanges and GaugeLabels which allow us to create any number of range and label ...

C# DSP Simulation - DSP Lab

Image
Introduction DSP Lab  is a digital signal processing simulation application created to simulate and visualize process of sampling and filtering analog signal using DSP system. This application is created to provide as a tool for educator and student to have a better understanding how DSP system works. DSP Lab allow you to view and listen to output from (Data Acquisition Unit) DAQ and digital filters. DSP Toolbox is the core of DSP Lab application which is a .NET assembly written in C#. The library is released under MIT license. You can use this library to jump start your own DSP powered application. DSP System DSP Lab is built using the system as shown above. Settings for each components are configurable. In PREMIUM  version, a 3 channels mixer system is available for more fun and signal combinations.

DDEApp, DDE Based Inter-process Communication (C#, C++)

Image
This article discuss an inter-process communication protocol dedicated for sharing data and perform remote function call between applications. Introduction   DDE Application (DDEApp) is a Dynamic Data Exchange (DDE) based inter-process communication protocol created to exchange data and perform functions call between applications. Back in 2009, when I was still programming in Borland C++ Builder, I needed to find a solution to call function remotely between two applications. We had decided to make use of DDE for this purpose. Using VCL control in Borland, we managed to get DDE up within few days. However, soon we realized that existing DDE protocol was not able to fully meet our requirement. About DDEApp   DDEApp a command line inter-process communication protocol implemented based on DDE. It contains a client and host class named as below. C# Borl...

DDEApp Tutorial (C#, C++)

Image
DDEApp LIBRARY USER GUIDE Supported OS Windows 32-bit Supported Platform Borland C++ Builder 6 V1.3.12 Borland Developer Studio 2006 V1.3.12 Microsoft.NET (Framework 2.0) V2.0.0 Introduction DDEApp is an application communication framework based on DDE communication protocol in order to exchange information between applications. This library was first designed to simplify and standardize DDE implementation for applications built on Borland C++ platforms. We have further extended the library to .NET framework to provide bridge between .NET applications and C++ applications.

MSChart Extension - Zoom and Pan Controls

Image
NEW : MSChart Extension 2.0 Released - Find out more Introduction - About MSChart Extension MSChart Extension is an extension package created to provide additional features and functions to Microsoft Chart (MSChart) control. This control is released under MIT license. Get latest source code and package from NuGet or GitHub. GitHub: https://github.com/Code-Artist/MSChartExtension NuGet:  http://nuget.org/packages/MSChartExtension

C# Stop / Suspend painting for a control.

Original post from stack overflow: How do I suspend painting for a control and its children? The code below is used to suspend painting for control to speed up processing. using  System.Runtime.InteropServices; class   DrawingControl {     [ DllImport ( "user32.dll" )]      public   static   extern   int  SendMessage(IntPtr hWnd, Int32 wMsg, bool  wParam, Int32 lParam);      private   const   int  WM_SETREDRAW = 11;      public   static   void  SuspendDrawing(Control parent)     {         SendMessage(parent.Handle, WM_SETREDRAW,  false , 0);     }      public   static   void  ResumeDrawing(Control parent)   ...

C# DSP Lab (V1.6.0): Convolution Demo

Image
Convolution demo is added to DSP Lab Version 1.6.0 to demonstrate convolution process steps by steps. Objectives of creating this tools is to help anyone who is learning DSP to have better understanding with convolution process. Download Now

Step-by-step Setup TortoiseHg for gitHub

Image
This is a step-by-step instruction to setup TortoiseHg (A GUI shell extension  for Mercurial SCM) to use with github (Online project hosting using git Version Control System). Introduction There are few articles around the web with the same topics.  http://jamesmckay.net/2010/06/tortoisehg-as-a-github-client-on-windows/ https://gist.github.com/1568668 I was able to setup my TortoiseHg to work with github using the instruction written by James McKay. The document is very informative, but some of the steps are not written in details. Thus, I decided to write this documents to include some steps with additional screen shots.

Speedup MSChart Clear Data Points

Problem Statement Clearing data points in MSChart is known to be very slow. http://connect.microsoft.com/VisualStudio/feedback/details/596212/performance-problem-in-mschart-datapointcollection-clear Solution However, there is a work around for this problem. Suggested work around from link stated above is as below:        public   void  ClearPointsQuick()     {         Points.SuspendUpdates();          while  (Points.Count > 0)             Points.RemoveAt(Points.Count - 1);         Points.ResumeUpdates();         Points.Clear(); //NOTE 1     }   Extension method implementation is as below:      internal   static   class   ...

C# DSP Toolbox: FIR Window Response

Image
FIR Window response and FIR filter's impulse response are added to visualize the filter's windows and its impulse response. Image below shows an example of FIR Hanning windowed and its low-pass filter's impulse response plotted on DSP Lab application. Download

C# DSP Toolbox: Digital Filters (Updated)

Image
Description Digital filters classes are implemented in DSP (Digital Signal Processing) Toolbox from Version 1.5.0 onwards. Implemented filter types are as below: Simple first order low-pass and high-pass filter. Simple second order band-pass and band-stop filter. Windowed FIR filter (Hanning, Hamming, Blackman) in low-pass and high-pass. Digital Filter Control: A WinForm based  user control is available for quick implementation in WinForm application. Version 1.7.0 Added Filter size for FIR Windowed filters. Added Blackman Harris and Blackman Nuttall FIR Windowed filters.

C# DSP Toolbox: Simulation Controls

Image
Description DSP (Digital Signal Processing) Toolbox added two WinForm based user controls for DSP simulation from Version 1.5.0 onwards. Virtual Analog Source Virtual DAQ (Data Acquisition) These two controls are created based on implementation of Virtual Signal Generator as control to simulate acquisition of analog source signal using  DSP system. Examples These components was used in DSP Lab application. Download