-
Recent Posts
-
Recent Comments
Archives
- February 2021
- January 2021
- December 2020
- November 2020
- October 2020
- September 2020
- August 2020
- July 2020
- June 2020
- May 2020
- April 2020
- March 2020
- February 2020
- January 2020
- December 2019
- November 2019
- October 2019
- September 2019
- August 2019
- July 2019
- June 2019
- May 2019
- April 2019
- March 2019
- February 2019
- January 2019
- December 2018
- November 2018
- October 2018
- September 2018
- August 2018
- July 2018
- June 2018
- May 2018
- April 2018
- March 2018
- February 2018
- January 2018
- December 2017
- November 2017
- October 2017
- September 2017
- August 2017
- July 2017
- June 2017
- May 2017
- April 2017
- March 2017
- February 2017
- January 2017
- December 2016
- November 2016
- October 2016
- September 2016
- August 2016
- July 2016
- June 2016
- May 2016
- April 2016
- March 2016
- February 2016
- January 2016
- December 2015
- November 2015
- October 2015
- September 2015
- August 2015
- July 2015
- June 2015
- May 2015
- April 2015
- March 2015
- February 2015
- January 2015
- December 2014
- November 2014
- October 2014
- September 2014
- August 2014
- July 2014
- June 2014
- May 2014
- February 2014
- January 2014
- December 2013
- October 2013
- August 2013
- June 2013
- December 2012
- September 2012
- July 2012
- June 2012
- November 2011
- May 2011
- April 2011
- February 2011
- December 2010
Categories
- .NET
- 3D
- 3D graphics
- ADO.NET
- algorithms
- animation
- API
- arrays
- attributes
- audio
- books
- C#
- C# programming
- calculations
- challenges
- classes
- clipboard
- coding
- combinatorics
- console
- controls
- cryptography
- curve fitting
- database
- debugging
- dialogs
- directories
- Drag and Drop
- drawing
- drawings
- enums
- Event
- events
- example program
- Excel
- extension methods
- extensions
- files
- finance
- fonts
- formatting
- forms
- fractals
- ftp
- games
- GDI+
- generic
- geometry
- globalization
- graphics
- html
- IDE
- image processing
- inheritance
- interfaces
- internationalization
- internet
- interoperability
- LINQ
- lists
- localization
- mathematics
- memory
- menus
- MessageBox
- methods
- miscellany
- multimedia
- network
- Office
- OOP
- operators
- parsing
- performance
- phone
- PowerPoint
- printers
- printing
- productivity
- programs
- puzzles
- recursion
- reflection
- registry
- regular expressions
- serialization
- settings
- SQL
- stories
- strings
- syntax
- system
- threading
- three-dimensional graphics
- tips
- tools
- transformations
- Uncategorized
- user interface
- variables
- VBA
- web
- Windows Forms programming
- WMI
- Word
- wpf
- XAML
- XML
Meta
Tag Archives: MouseUp
Save a bitmap showing user drawn line segments in C#
The example Draw, move, and delete line segments in C# lets the user draw line segments, but it doesn’t include a way to save a bitmap showing the result. This example provides the same features as the previous one, plus … Continue reading →
Posted in drawing, files, graphics
|
Tagged C#, C# programming, delete line segments, draw line segments, drawing, example, example program, files, graphics, line segments, MouseDown, MouseMove, MouseUp, move end points, move line segments, save a bitmap, trash can icon, trash icon, trashcan icon, Windows Forms programming
|
Leave a comment
Save and restore lines drawn by a WPF line editor in C#
The example Make a WPF line editor C# shows how to make a program that lets the user draw lines on a WPF canvas. This example is similar but it also allows you to save and restore drawings. The WPF … Continue reading →
Posted in drawing, graphics, wpf
|
Tagged C#, C# programming, delete line segments, draw line segments, drawing, example, example program, graphics, line segments, MouseDown, MouseMove, MouseUp, move end points, move line segments, trash can icon, trash icon, trashcan icon, Windows Forms programming, WPF
|
Leave a comment
Let the user draw lines in C#
This example lets the user click and draw to draw lines. To make working with lines easier, the program uses the following Segment class. class Segment { public Pen Pen; public Point Point1, Point2; public Segment(Pen pen, Point point1, Point … Continue reading →
Posted in drawing, events, graphics
|
Tagged C#, C# programming, draw lines, drawing, events, example, example program, graphics, MouseDown, MouseMove, MouseUp, Windows Forms programming
|
4 Comments
Draw, move, and delete line segments in VB.NET
This progra lets you draw, move, and delete line segments from a drawing. It’s a Visual Basic .NET version of the example Draw, move, and delete line segments in C# made by request. Click and drag to draw line segments. … Continue reading →
Posted in drawing, graphics
|
Tagged delete line segments, draw line segments, drawing, example, example program, graphics, line segments, MouseDown, MouseMove, MouseUp, move end points, move line segments, trash can icon, trash icon, trashcan icon, VB.NET, VB.NET programming, Visual Basic, Visual Basic .NET, Visual Basic .NET programming, Visual Basic programming, Windows Forms programming
|
7 Comments
Save and restore line drawings in C#
The example Draw and move line segments in C# shows how to build a simple line editor. This example adds the ability to save and restore drawings. The first step is to save all of the drawing information in a … Continue reading →
Posted in drawing, graphics
|
Tagged C#, C# programming, delete line segments, deserialization, deserialize, draw line segments, drawing, example, example program, graphics, line segments, load drawing, MouseDown, MouseMove, MouseUp, move end points, move line segments, restore drawing, save drawing, serialization, serialize, trash can icon, trash icon, trashcan icon, Windows Forms programming
|
10 Comments
Make a WPF line editor C#
This example is a “simple” WPF line editor that lets you add, move, and delete Line objects. The example Draw, move, and delete line segments in C# is a Windows Forms application that does something. The WPF version is a … Continue reading →
Posted in algorithms, drawing, graphics, wpf
|
Tagged algorithms, C#, C# programming, delete line segments, draw line segments, drawing, example, example program, graphics, line segments, MouseDown, MouseMove, MouseUp, move end points, move line segments, trash can icon, trash icon, trashcan icon, Windows Forms programming, WPF
|
28 Comments
Draw, move, and delete line segments in C#
This example shows how to make a drawing program that lets you draw, move, and delete line segments. It’s based on the example Draw and move line segments in C#. See that example for information about how the program lets … Continue reading →
Posted in drawing, graphics
|
Tagged C#, C# programming. MouseDown, delete line segments, draw line segments, drawing, example, example program, graphics, line segments, MouseMove, MouseUp, move end points, move line segments, trash can icon, trash icon, trashcan icon, Windows Forms programming
|
31 Comments
Draw and move polygons snapping them to a grid in C#
This example lets the user draw and move polygons snapping them to a grid. See the example Let the user draw polygons, move them, and add points to them in C# for information on how the program lets the user … Continue reading →
Posted in algorithms, drawing, geometry, graphics, mathematics
|
Tagged add point, add point to polygon, algorithms, C#, C# programming, draw polygons, drawing, example, example program, graphics, grid, list, mathematics, MouseDown, MouseMove, MouseUp, move polygons, move vertices, Paint, snap to grid, Windows Forms programming
|
9 Comments
Let the user draw polygons, move them, and add points to them in C#
This example lets the user draw polygons, move them, and add points to them. It’s an extension of the example Let the user draw and move polygons in C#. See that example for a description of most of this program’s … Continue reading →
Posted in algorithms, drawing, graphics, mathematics
|
Tagged add point, add point to polygon, algorithms, C#, C# programming, draw polygons, drawing, example, example program, graphics, list, mathematics, MouseDown, MouseMove, MouseUp, move polygons, move vertices, Paint, Windows Forms programming
|
15 Comments
Let the user draw and move polygons in C#
This example lets the user draw and move polygons. It builds on the example Let the user draw polygons in C#. The program uses MouseDown, MouseMove, and MouseUp event handlers to let the user draw and interact with the polygons. … Continue reading →
Posted in algorithms, drawing, graphics
|
Tagged algorithms, C#, C# programming, draw polygons, drawing, example, example program, graphics, list, MouseDown, MouseMove, MouseUp, move polygons, move vertices, Paint, Windows Forms programming
|
23 Comments