Single Instance Application Manager

יום שבת, פברואר 13, 2010

Some .Net applications are required to run as single instance process (at startup, each process “ensures” that he’s unique). This requirement may come from licensing issues, technical and/or other reasons. Quick search in Google will provide a variety of solutions, most of them are based on WindowsFormsApplicationBase object from VB.Net, usage of Mutex object and other techniques. I don’t like mixing VB with C#, and also Win-Forms solution isn’t “pure” enough for WPF applications. So I wrote my version of “Single Instance Manager”… This post will provide short description about this small project and links to download the...

“Class2Table” Exporter

יום רביעי, ספטמבר 30, 2009

“Class to Table” = “Entity to SQL” Recently, I deal with UML design in EA, also I design DB Entities for DBML (Linq2Sql). In regular way, programmer creates DB table and imports it into VS solution as entity class for DBML. But, sometimes we need to create DB table from existing class. I’m pretty sure that there are some free tools that can do this job, but as many code freaks I prefer to develop my own tools (mostly without looking for existing solutions). I want to share my community contribution at http://class2table.codeplex.com/ with small application that allows generation/creation of DB tables...

Daily Tip: How to import 3D model to WPF from Blender

יום שלישי, מאי 5, 2009

In resumption to my previous post “How to import 3D model to WPF from 3D Max” I want to present the “XAML exporter for Blender” (Blender is an open-source cross-platform 3D designer). if(Blender.Name == Blend.Name) {      Debug.WriteLine(“Wiiiiii !!!! :)”); } This post will guide you how to use this feature thru simple example. Software requirements for this guide: Blender 2.48a or later, Microsoft Expression Blend 2.0 (Final Release). ...

Keys Notificator

יום ראשון, אפריל 26, 2009

I’m inviting you to take a part in testing of “Keys Notificator”. This is small and useful program for keyboard monitoring that can be used to monitor common keys as , , , , and . Very useful to alert users about change in keyboard layout like language ( + ENG <=> HEB) or capital letters. The “Keys Notificator” is an open-source project and is a part of my community contribution under GNU General Public License. The published/released version is “Beta” version that will be improved...

Mouse-Wheel-Helper for Silverlight (upgraded)

יום שישי, אפריל 3, 2009

Recently I’ve required to add Mouse-Wheel support in some of our Silverlight projects. Quickly discovered that unfortunately this feature isn’t supported in built-in events of Silverlight (at least in versions 1.0 and 2.0). After short search I found this post with sample code that solves this problem by attaching handlers to mouse events on html page. I made some changes in “MouseWheelHelper” class and added “UIElementExtender” class that extends classes that derived from “UIElement” class in order to provide Mouse-Wheel support. Here small example that uses “MouseWheelHelper” and “UIElementExtender”:(use mouse wheel to zoom-in/out, also you can change image by pasting new...

Quick Tip: How to work with Excel files in VB.Net (Update)

יום שני, פברואר 23, 2009

This is an update for previous post. Added new function to read entire content of Excel File:       ''' <summary>      ''' Reads the data from excel file.      ''' </summary>      ''' <param name="strFilePath">The file path.</param>      ''' <returns>DataSet</returns>      Public Shared Function ReadDataFromExcelFile(ByVal strFilePath As String) As DataSet            If strFilePath Is Nothing Then Throw New NullReferenceException("strFilePath")            If Not File.Exists(strFilePath) Then Throw New FileNotFoundException(strFilePath)              ' copy source excel file to temp. folder (because the original file can be locked by other process)            Dim tmpFolder As String = Environment.GetFolderPath(Environment.SpecialFolder.InternetCache)            If Not Directory.Exists(tmpFolder) Then tmpFolder = Environment.CurrentDirectory              Dim tmpPath As String = _           ...

Build multi-touch display in 10 minutes!

יום שני, מאי 5, 2008

Always wanted personal multi-touch cool display? - You don't need to buy any expensive hardware, just this... Great project from NUI-Group. So, what do we need to get this work? 1. Software: download ZIP file from here and extract in any folder on your hard disk (see minimum requirements before the installation). 2. Simple box (30cm x 30cm x 30cm). 3. Webcam . 4. Transparent surface (can be glass, fiberglass or disassemble your picture frame). 5. White paper (A4). 6. Build the "device" according to instruction on this video. 7. Connect your webcam to USB and make it working (you're a big guy,...

UI Example: The World’s Best Kept Auto Secret

יום שני, דצמבר 24, 2007

I have been driving (legally) for ages and ages One would think I would have noticed the little secret on my dash that was staring me right in the face the whole time. I didn’t and I bet you probably haven’t either. Quick question - what side of your car is your gas tank? If you are anything like me, you probably can’t remember right away. My solution is to uncomfortably stick my head out the window, strain my neck and look. If you don’t do this in your own car you definitely have done it in a borrowed...
5 comments