Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
C# Helper...
 
XML RSS Feed
Follow VBHelper on Twitter
 
 
 
MSDN Visual Basic Community
 
 
 
 
 
TitleDisplay vertical and horizontal lines as a crosshair in C#
DescriptionThis example shows how to display vertical and horizontal lines as a crosshair in C#.
KeywordsC#, csharp, c sharp, VB .NET, crosshair
CategoriesGraphics, VB.NET
 
Thanks to Markus Seitz.

This example draws vertical and horizontal lines at the cursor's position, making a crosshair. It draws a diagonal line and a background picture so you can see what happens as you move the cursor around. (Also try putting another application over this one and then removing it.) It also shows one way to make the background permanent.

See the code for details. This example is in C# but you should be able to easily convert it to VB .NET.

 
 
Copyright © 1997-2006 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated