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

Image may be NSFW.
Clik here to view.

Boulder Dash Part 2: Collision Detection

In our previous post we introduced the Firefly and Butterfly sprites and their movement rules around a random map. Now we're going to update the project to include collision detection and a new player...

View Article


Image may be NSFW.
Clik here to view.

Adding a horizontal scrollbar to a ComboBox using C#

In our WebCopy application we decided to update the User Agent configuration to allow selection from a predefined list of common agents, but still allow the user to enter their own custom agent if...

View Article


Image may be NSFW.
Clik here to view.

Creating a scrollable and zoomable image viewer in C# Part 1

A newer version of this code is now available.This is the first part in a series of articles that will result in a component for viewing an image. The final component will support zooming and...

View Article

Image may be NSFW.
Clik here to view.

Creating a scrollable and zoomable image viewer in C# Part 2

A newer version of this code is now available.In the second part of our Creating a scrollable and zoomable image viewer in C# series we will update our component to support automatic scrolling when...

View Article

Image may be NSFW.
Clik here to view.

Creating a scrollable and zoomable image viewer in C# Part 3

A newer version of this code is now available.After part 2 added scrolling support, we are now going to extend this to support keyboard scrolling and panning with the mouse.Design supportIn order to...

View Article


Image may be NSFW.
Clik here to view.

Creating a scrollable and zoomable image viewer in C# Part 4

A newer version of this code is now available.In the conclusion to our series on building a scrollable and zoomable image viewer, we'll add support for zooming, auto centering, size to fit and some...

View Article

Creating a trackback handler using C#

Cyotek.com runs on its own custom CMS/blog engine developed in ASP.NET MVC 1.0, which has a number of advantages and disadvantages. One of these disadvantages is no automatic support for some common...

View Article

Comparing the properties of two objects via Reflection and C#

As part of the refactoring I was doing to the load code for crawler projects I needed a way of verifying that new code was loading data correctly. As it would be extremely time consuming to manually...

View Article


Using the XmlReader class with C#

Some of the project files created by Cyotek Sitemap Creator and WebCopy are fairly large and the load performance of such files is poor. The files are saved using a XmlWriter class which is nice and...

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#

Updated 10Jun2015: Code is now available on GitHub, any updates can be found thereWhile writing some bitmap font processing for an OpenGL project, I settled on using AngelCode's BMFont utility to...

View Article
Browsing all 559 articles
Browse latest View live