Quantcast
Channel: cyotek.com Blog Summary Feed
Browsing all 559 articles
Browse latest View live
↧

Image may be NSFW.
Clik here to view.

Adding drag handles to an ImageBox to allow resizing of selection regions

The ImageBox control is already a versatile little control and I use it for all sorts of tasks. One of the features I recently wanted was to allow users to be able to select a source region, then...

View Article


ColorPicker Controls 1.0.4.0 Update

The ColorPicker Controls have been updated to version 1.0.4.0.This is a fairly substantial update, with quite a few bug fixes and enhancements to the code.What's next for the library?I feel the code is...

View Article


Add Projects Extension - 1.0.1.0

A short and sweet post today...I've been happily using the Add Projects extension since first writing it several months ago, and I actually find it a real time saver. However, one thing that has been...

View Article

MVC actions, AcceptVerbs, HEAD requests and 404 errors

When running Sitemap Creator on the development version of cyotek.com, we found all links pointing to articles returned a 404 status code when crawling was attempted. But if same URL was copied into a...

View Article

Image may be NSFW.
Clik here to view.

Creating a WYSIWYG font ComboBox using C#

This article shows how to use the built in ownerdraw functionality of a standard Windows Forms ComboBox control to display a WYSIWYG font list.Setting up the controlTo start, we'll create a new class,...

View Article


Image may be NSFW.
Clik here to view.

Enabling shell styles for the ListView and TreeView controls in C#

For those who remember the Common Controls OCX's featured in Visual Basic 5 and 6, there was one peculiarity of these. In Visual Basic 5, the Common Controls were linked directly to their shell...

View Article

Image may be NSFW.
Clik here to view.

Migrating from Visual SourceSafe to Subversion

For years now, we've used Microsoft Visual SourceSafe (VSS) for our source code control, but given that Microsoft dropped support for it some time ago in favour of Team Foundation Server, we've decided...

View Article

Importing a SourceSafe database into Subversion

In my previous article on migrating a VSS database into SVN, I hadn't tried importing a VSS database into an existing repository, which is something I found the original code couldn't handle.I rewrote...

View Article


Image may be NSFW.
Clik here to view.

CSS Syntax Highlighting in the DigitalRune Text Editor Control

For projects where I need some form of syntax highlighting, I tend to use the open source DigitalRune Text Editor Control which is a modified version of the text editor used in SharpDevelop. While it...

View Article


Detecting if a given font style exists in C#

In a previous article, Creating a WYSIWYG font ComboBox using C#, there is a hacky bit of code which uses a try catch block to handle processing when a given font style doesn't exist. This article...

View Article

Image may be NSFW.
Clik here to view.

Convert a PDF into a series of images using C# and GhostScript

An application I was recently working on received PDF files from a webservice which it then needed to store in a database. I wanted the ability to display previews of these documents within the...

View Article

Image may be NSFW.
Clik here to view.

Extending the ImageBox component to display the contents of a PDF file using C#

In this article, I'll describe how to extend the ImageBox control discussed in earlier articles to be able to display PDF files with the help of the GhostScript library and the conversion library...

View Article

Image may be NSFW.
Clik here to view.

Detecting if an application is running as an elevated process, and spawning a...

Recently I was writing some code to allow a program to register itself to start with Windows for all users. On Windows 7 with User Account Control (UAC) enabled, trying to write to the relevant...

View Article


Image may be NSFW.
Clik here to view.

AngelCode bitmap font parsing using C#

While writing some bitmap font processing for an OpenGL project, I settled on using AngelCode's BMFont utility to generate both the textures and the font definition. However, this means I then needed...

View Article

Converting 2D arrays to 1D and accessing as either 2D or 1D

While working on a recent gaming project, I was originally using 2D arrays to store information relating to the different levels in the game. But when it came to loop through the contents of these...

View Article


Image may be NSFW.
Clik here to view.

Creating an image viewer in C# Part 5: Selecting part of an image

A newer version of this code is now available.Part 4 of this series (by far the most popular article on cyotek.com) was supposed to be the end, but recently I was asked if was possible to select part...

View Article

Image may be NSFW.
Clik here to view.

Arcade explosion generator

Over the past few weeks I've been messing around creating a unique graphics for our Jewel Rush game. One of the things I was experimenting with was explosion animations. Although tools exist for...

View Article


Displaying the contents of a PDF file in an ASP.NET application using...

After receiving quite a few requests on making the PDF image conversion work in a web application, I wanted to see how hard it would be to do. Not hard at all as it turns out, I had a nice working...

View Article

Image may be NSFW.
Clik here to view.

Creating a multi-paged container control with design time support

This article describes adding design time support for a TabControl-like component which renders the same way the Project Properties in Visual Studio 2012.This is the first time I've tried to make more...

View Article

Image may be NSFW.
Clik here to view.

Zooming into a fixed point on a ScrollableControl

If I'd built subtitle support into the CMS that powers this website, then surely the subtitle would have been "or how I fixed that annoying zoom bug in the ImageBox control". And with that digression...

View Article
Browsing all 559 articles
Browse latest View live