Click here to Skip to main content
15,886,137 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionLooking for C# winforms control / library to manage different map-based plain image layers Pin
vValkir6-Nov-13 1:22
vValkir6-Nov-13 1:22 
AnswerRe: Looking for C# winforms control / library to manage different map-based plain image layers Pin
BillWoodruff9-Nov-13 6:36
professionalBillWoodruff9-Nov-13 6:36 
AnswerRe: Looking for C# winforms control / library to manage different map-based plain image layers Pin
xstoneheartx25-Dec-14 16:20
xstoneheartx25-Dec-14 16:20 
XML
Long time ago, I made an application near to your requirements. The main design was:
- An abstract base Shape class having some methods like a void Render(Graphics) and a method for hit testing,bool HitTest(Point).
- Shape classes for custom shapes that are needed on each layer; shapes like point, line, icon, path, etc that inherit from abstract Shape class.
- Each derived shape has its own properties and overrides Render method and renders itself on the graphics object; also overrides HitTest method to check if it contains a point.
- A Layer class that contains a List of Shapes and a void Render(Graphics) and calls render method of each shape. (You can restrict each layer to specific types of shapes, you can implement z-order management for shapes, etc)
- A Map class having and Image and a List<Shapes> and Save and Load to/from file. (You can handle Active layer and active shape easily.)
- A custom control that has a Map property. This control is responsible for rendering layers and handling user mouse interaction and update layers. This control overrides OnPaint and mouse events and enables double buffering.

Hope this idea helps you.

QuestionNokia for Windows Phone developers, DVLUP. Pin
Anshu Kapoor26-Sep-13 1:45
Anshu Kapoor26-Sep-13 1:45 
AnswerRe: Nokia for Windows Phone developers, DVLUP. Pin
Eddy Vluggen26-Sep-13 1:54
professionalEddy Vluggen26-Sep-13 1:54 
GeneralRe: Nokia for Windows Phone developers, DVLUP. Pin
Anshu Kapoor26-Sep-13 2:07
Anshu Kapoor26-Sep-13 2:07 
GeneralRe: Nokia for Windows Phone developers, DVLUP. Pin
Eddy Vluggen26-Sep-13 3:00
professionalEddy Vluggen26-Sep-13 3:00 
AnswerRe: Nokia for Windows Phone developers, DVLUP. Pin
Richard MacCutchan26-Sep-13 4:33
mveRichard MacCutchan26-Sep-13 4:33 
AnswerRe: Nokia for Windows Phone developers, DVLUP. Pin
Abhinav S9-Oct-13 3:01
Abhinav S9-Oct-13 3:01 
QuestionWeifenLuo.WinformsUI.Docking.dll Version 2.7.0.0 not toggling Pin
rohit24c23-Sep-13 19:48
rohit24c23-Sep-13 19:48 
AnswerRe: WeifenLuo.WinformsUI.Docking.dll Version 2.7.0.0 not toggling Pin
Richard MacCutchan23-Sep-13 20:56
mveRichard MacCutchan23-Sep-13 20:56 
Generalwindow form application Pin
ANKIT KUMAR SINHA22-Sep-13 23:02
ANKIT KUMAR SINHA22-Sep-13 23:02 
SuggestionRe: window form application Pin
Richard MacCutchan23-Sep-13 0:51
mveRichard MacCutchan23-Sep-13 0:51 
GeneralRe: window form application Pin
Eddy Vluggen23-Sep-13 1:20
professionalEddy Vluggen23-Sep-13 1:20 
NewsRe: window form application Pin
Gil-B6-Oct-13 5:26
professionalGil-B6-Oct-13 5:26 
GeneralRe: window form application Pin
ANKIT KUMAR SINHA8-Oct-13 22:56
ANKIT KUMAR SINHA8-Oct-13 22:56 
GeneralRe: window form application Pin
Simon_Whale9-Oct-13 0:15
Simon_Whale9-Oct-13 0:15 
GeneralRe: window form application Pin
sankarsan parida12-May-14 7:28
professionalsankarsan parida12-May-14 7:28 
AnswerRe: window form application Pin
Member 9986689 (PandaLion98)25-Oct-14 21:27
professionalMember 9986689 (PandaLion98)25-Oct-14 21:27 
QuestionCode VB 2010 - Send SMS via AT command Pin
caopv12-Sep-13 19:05
caopv12-Sep-13 19:05 
AnswerRe: Code VB 2010 - Send SMS via AT command PinPopular
Bernhard Hiller12-Sep-13 22:41
Bernhard Hiller12-Sep-13 22:41 
QuestionHow to avoid color changes when button is disabled Pin
Ksmart129-Sep-13 23:47
Ksmart129-Sep-13 23:47 
AnswerRe: How to avoid color changes when button is disabled Pin
Bernhard Hiller11-Sep-13 3:50
Bernhard Hiller11-Sep-13 3:50 
AnswerRe: How to avoid color changes when button is disabled Pin
Dave Kreskowiak11-Sep-13 5:10
mveDave Kreskowiak11-Sep-13 5:10 
AnswerRe: How to avoid color changes when button is disabled Pin
xstoneheartx25-Dec-14 16:46
xstoneheartx25-Dec-14 16:46 

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.