Click here to Skip to main content
13,449,063 members (53,772 online)
Click here to Skip to main content
Add your own
alternative version


17 bookmarked
Posted 8 Apr 2008

C# Visual Card Designer Application with File Serialziation and Text, Shape, Image Manipulations and GDI+

, 24 Aug 2008
Rate this:
Please Sign up or sign in to vote.
C# Visual Card Designer Application with File Serialziation and Text, Shape, Image Manipulations and GDI+


This article demonstrates how to create a Full Winform Application in C# for Visually Designing Cards using Images, Text, Lines and Shapes. Please note that this is not an example to show GDI+ capabilities, I am writing another sample for a full GDI+ based Vector Graphic Designing Winform Application with the same Idea.

What this example is about?

  • It contains features required in a commercial application like, File Saving (Serialization) and Retrieving
  • Associating file extension with your application so that user can dblclick .kds file and it will launch the card designer and open the selected file
  • User can drag .kds file on KCards.Exe (application) Icon on desktop and it will open up the file like Word and other apps do
  • Property Pages and Color Palettes
  • Editing Features like Bring to Front, Send to Back and Duplicate, Resizing, Moving
  • Some features like copy/paste/print, etc. are not working, I left them for you to write.

Click to enlarge image

Click to enlarge image


This sample demonstrates the idea of features involved in creating a visual designer application in C# Winforms from scratch.

It begins with creating classes for your drawing shapes, UserCanvas, Multiple Canvas Windows management and ends up with serialization into files.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

I started programming for fun when I was in Higher Secondary (1995). It was a table writing program in C..haah!! those were the best days of my life Smile | :)

But now it has brought me to no. of jobs in roles of developer, Lead, Architect, Coach and Consultant....

.Net c# is my passion specially when it comes to build api and frameworks to facilitates development teams....

I always learned things by example, now its a pleasure and responsiblity to give learnings back to next generation of coders.

You may also be interested in...


Comments and Discussions

GeneralTHANK Pin
Alex Programer20-Sep-14 7:33
memberAlex Programer20-Sep-14 7:33 
GeneralMy vote of 5 Pin
ss9o9o9o18-Jul-12 21:50
groupss9o9o9o18-Jul-12 21:50 
This is a best article i seen ever.
GeneralMy vote of 5 Pin
manoj kumar choubey26-Feb-12 21:09
membermanoj kumar choubey26-Feb-12 21:09 
Questionhow to print a card Pin
mehrtash19-Dec-11 10:01
membermehrtash19-Dec-11 10:01 
QuestionMy vote of 5 Pin
oeatek28-Sep-11 23:30
memberoeatek28-Sep-11 23:30 
Generalnot save backcolor! Pin
thangnx28-Apr-11 18:43
memberthangnx28-Apr-11 18:43 
Questionhi! Pin
thangnx27-Apr-11 0:12
memberthangnx27-Apr-11 0:12 
QuestionNice work, but what's the story behind the GraphicsControls.dll file? Pin
Miwers23-May-09 1:39
memberMiwers23-May-09 1:39 
AnswerRe: Nice work, but what's the story behind the GraphicsControls.dll file? Pin
umert11-Jul-10 10:38
memberumert11-Jul-10 10:38 
QuestionSize/Color/Text/Image Components Sources? Pin
mcsnoop6-Oct-08 2:06
membermcsnoop6-Oct-08 2:06 
Questiongreetings Pin
SoumyaRanjan23-Aug-08 1:09
memberSoumyaRanjan23-Aug-08 1:09 
AnswerRe: greetings Pin
Bhupindra Singh24-Aug-08 18:14
memberBhupindra Singh24-Aug-08 18:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.180318.3 | Last Updated 25 Aug 2008
Article Copyright 2008 by Bhupindra Singh
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid