we will build an outline line around the drawn lines so we would test the mouse click on this outline to know which line is selected. and we would in the coming update build a select function inside the move tool
in this tut we will create a technique to enable the user to control points within a drawn line, by drawing circles around points of the line , when the user clicks a circle he would control the corresponding point.
we will continue the functionality of the hand tool with having a navigator panel which works as a map, we will also have a red rectangle which tells the user where he is actually viewing inside the whole form, also it can be moved to pan the form
Learn how to implement a tecnique of a parent form that createes and controls other forms , through the tecnique of using the tab control, also learn how to implement a menu for the tools, and how to add cutom cursor for each tool
We will design two interesting characters in this tip. The first one is Code Project Bob sticker and the second one is Magpie bird which is the national bird of Bangladesh.
This is a simple application developed using C# MVC and jquery for basic CRUD operations. The application can be unit tested using selenium web drivers.
This articles explains the insertion of data into SQL Database using Stored Procedures with Output Parameters. Some Bootstrapping is also used to create a good looking HTML.
This article describes how to implement row drag and drop inside ASP.NET Gridview using Jquery TableDnD plugin and how to pass reordered sequence back to server
Creating a Web User Control containing an AutoCompleteExtender for data through WCF (JSON) allowing to store the entity selected through EntityFramework. Entity object serialization from the server to the client and the client to the server.
I recently posted an article on how to place the data in an XML into an SQL table with a bulk Insert; this is an alternative way to do it by breaking up the XML before placing it into the Table.
How I made my 2D Game, a Mario platformer type of game. I searched around the internet for most of these things, but had trouble finding it. Especially collision detection that I ended up creating a simple solution by myself.
Smart phones all seem to geo tag (add GPS details) to the photos they take. However, after you copy that photo to your PC it is difficult to see, in human terms, where that photo was taken. This project parses the photo for the GPS data and opens that location on a map.
TrackBar that can work with time values, has a nice spotlight for the current value, and won't allow its value to change when the user moves their mousewheel.
This tip will help beginners to implement CRUD operations in ASP.NET MVC 5 using WebAPI 2 with scripting language as AngularJS and Database as MS SQL 2008R2.
I made this "borderless" application (WinForms), and added an semitransperent border (might laggy). The design is exactly the Windows 10 colors and button sizes.
This tip explains how to create custom helpers in ASP.NET MVC4 step by step clearly. It will be very helpful for those who want to learn ASP.NET MVC as beginners.
This tool helps a lot while capturing more number of snapshots. Example: Developers can use this tool to capture the UTR and save all snaps at the end to a Word document or save as individual images.
Emgu CV - Select ROI (Region of interest) with the mouse in images that do not have the same measurements. This tip was prepared using the framework Emgu CV and C # .NET language.
This article proposes solution for possible challenges which you can face by using singletons in Microsoft Unity in the case you are using child containers.
This is a control that is like a Expander Control but there is both Expanded and not Expanded Content. It demonstrates some concepts on how to easily create controls whose functionality can be mostly implemented in the XAML with the code behind being mostly DependencyProperty definitions.
This is a behavior that that will reset ToggleButton derived controls to false (or a specified default value) when the container's visibility becomes false.
I needed an 'Update' solution for a project, and modified Geert van Horrik's 'Updater' to do so. This is the solution in Visual Studio Community Edition
Dapper offers fast database handling with custom SQL strings. This wrapper simplifies life by taking generic POCO objects and creates necessary SQL strings on the fly, and it is still very fast!
This tip will show how to sort a list of a particular class type from a SqlDataReader object by dynamically creating a lambda expression to carry out the process of sorting the list.
This sample is about hiding automatically datagrid columns when all rows of this column are empty.NB: The following code is for silerlight 5 and can be readapt for WPF
Implementation if ICommand is trivial, but it is poor by its nature. We can not get Picture or Text or Disabled properties from usual ICommand implementation. But we can make a trik and have all information about command in a single object and use this information on as many command elements as we w
We often end up having code that evaluates various states on a class, just to figure out what other code needs to execute. This little tip is something that we have implemented and we have been able to get noticeable improvements in execution time.
I work with WPF not too long, but every time when I see someone code implementation of INotifyPropertyChanged I become sad. I would like to present a convinient implementation of INotifyPropertyChanged, this class could be a base class for all your databindable classes.
Sometimes want to have some action in a View when there are no items or are items in a collection. It is very easy to do this with a converter and binding to the Collection's Count property
This small tip will explain how you can check status of long running processes in ASP.NET MVC web application using SignalR by sending messages from server to client during execution.
In the past articles, we could see how a website with Identity Framework 2 is set up and customized to our own needs. We could also implement Facebook Login, Google Auth and Twitter Login. But in the real world, we need much more than that. In the current article, we will learn how to capture data.
I keep reading articles on the web about how all random number generators on a computer are "pseudo" random, or "deterministic". Here I present an approach for nondeterministic number generation.
Almost all of the basic functions of the program(browser, text editor, image editor, media player) that you can associate files with it and open it. I want a simple and effective method to show the arguments (associated files) to open. How to associate files with C# program?
Sometimes, you just must return multiple values from a method. Instead of specifying out or passing arguments by reference, consider an OperationResult class.
This article describes a library which helps manage a collection of password rules for ensuring that a given password passes such rules for acceptance purposes.
This little desktop app gives you an easy way to track processes which start and stop even when your computer is locked. Also, easily save data and view in Excel.
This post describes step by step how to run a Single Page Application template using ASP.NET Web API 2 and angularJS and how to use Web Application Project whose name is Dalyan.
Many programmers know what calling virtual members from not sealed class constructor may cause runtime error, because some members used in virtuals could be not initialized. I will show a simple way to call virtuals safely from constructors of inherited classes.
Using the Microsoft patterns and practices Semantic Logging Application Block (SLAB) to both structure your logging information and decouple how you choose to log from your application code that initiates logging related events. Plus, a Loggly listener is included that you can use to log messages.
This sample program demonstrates how to use Google Calendar API v3 to delete Google Calendar events, insert Google Calendar events and update Google calendar events based on a .CSV file exported from Calendar Creator.
The generic network endpoint (IP address and port) class that can be compared with and cast to/from the protocol aware boost::asio::ip::udp::endpoint and boost::asio::ip::tcp::endpoint objects.
C# 7.0 has been introduced with many new useful features. One of them is new datatype "ValueTuple". In this article, I'll be writing about Tuples in C# 7 briefly.
Sometimes, a chart can make data a lot easier to understand - but why does the Chart control make it so difficult to display multiple lines from a collection of objects?
This tip is a guide for using the Codeplex project Effort for testing Entity Framework applications without requiring the unit tests to actually hit the SQL Server database.
Normally a popup will stay open until explicitly closed. The Behavior will close the Popup if the mouse is clicked within or outside the Popup area or leaves the Popup area.
This behavior will require that for any Group of ToggleButton/Checkbox controls that are associated together, the user cannot set all to not IsChecked.
A Behavior is presented that will ensure that only one Checkbox will be checked within the visual tree of the control to which this behavior is attached
A Behavior is presented that will ensure that only one CheckBox (ToggleButton) will be checked with the same GroupName within the visual tree of the control to which this behavior is attached.
This is WPF Gradient Control. I didn't find a suitable gradient control which will generate a linear gradient or radial gradient brush. This is a gradient control which has a color selector and gradient generator. It can generate radial or linear gradient brush.
This is a simple tip to describe how to create a custom grid control which has solid gridlines with choice to change the gridlines brush, thickness and GridLinesVisibility.
Provides a way to have a string in XAML that can contain string values and references to resources that are inserting into the string like string interpolation
Presents a very simple control with an IsChecked property that allows definition of two different contents depending of if IsChecked property value is true or false
There may be times when it would be nice to have a timer on a window. This is a behavior that when attached to a TextBlock, will display the time in minutes and seconds since the control was created.