Click here to Skip to main content
15,886,873 members
Home / Discussions / C#
   

C#

 
Questionnewbee ques on structs Pin
ter815-Oct-05 14:12
susster815-Oct-05 14:12 
AnswerRe: newbee ques on structs Pin
enjoycrack5-Oct-05 14:19
enjoycrack5-Oct-05 14:19 
GeneralRe: newbee ques on structs Pin
ter815-Oct-05 14:24
susster815-Oct-05 14:24 
GeneralRe: newbee ques on structs Pin
enjoycrack6-Oct-05 10:31
enjoycrack6-Oct-05 10:31 
AnswerRe: newbee ques on structs Pin
Christian Graus5-Oct-05 14:57
protectorChristian Graus5-Oct-05 14:57 
QuestionCurrency Symbol Pin
Dominic Farr5-Oct-05 13:00
Dominic Farr5-Oct-05 13:00 
QuestionGetting my program to look up UK addresses from postcodes... How? Pin
Red_Wizard_Shot_The_Food5-Oct-05 12:15
Red_Wizard_Shot_The_Food5-Oct-05 12:15 
QuestionPainting in a Panel Pin
Red Tricycle5-Oct-05 11:18
Red Tricycle5-Oct-05 11:18 
Dear all,

To get familiar with the C# language I have started a project involving Forms, Controls and GDI+. The aim is a sort of curve editor (don't ask me why)

Please have a look at the following screenshot:
http://www.redtricycle.net/code/gamma_curve_unpainted.png[^]

The structure of the program is as follows:
- The window is a standard Windows Form.
- The khaki rectangular area is an inherited Panel which implements a Paint event handler to draw the grid and the curve.
- The point handles inherit from Control objects (which easily facilitate the handling of mouse events). These controls are added to the Panel.

As you might notice, there is this rectangle of 200x100 that won't be painted. Only the controls inside the panel are painted but not the stuff drawn by the Panels Paint event handler.
Since the default size of a panel is 200x100 I've overridden the DefaultSize property and set it to 0,0 but this did not have any effect.

Do any of you have an idea of what could be the problem here? I'm a little puzzled by it.
Thanks for your response in advance!

For those that want to get a feel of the program, the exe is here:
http://www.redtricycle.net/code/GammaCurve2.zip[^]



Red Tricycle
AnswerRe: Painting in a Panel Pin
Heath Stewart5-Oct-05 11:46
protectorHeath Stewart5-Oct-05 11:46 
GeneralRe: Painting in a Panel Pin
Red Tricycle5-Oct-05 20:02
Red Tricycle5-Oct-05 20:02 
QuestionCreate custom Calendar Pin
Gywox5-Oct-05 11:09
Gywox5-Oct-05 11:09 
QuestionFile name validation Pin
baronics5-Oct-05 10:29
baronics5-Oct-05 10:29 
AnswerRe: File name validation Pin
David Stone5-Oct-05 11:06
sitebuilderDavid Stone5-Oct-05 11:06 
QuestionHow to get datarow from OdbcDataReader? Pin
Ming Luo5-Oct-05 9:56
Ming Luo5-Oct-05 9:56 
AnswerRe: How to get datarow from OdbcDataReader? Pin
Wjousts5-Oct-05 10:10
Wjousts5-Oct-05 10:10 
AnswerRe: How to get datarow from OdbcDataReader? Pin
Guffa5-Oct-05 10:20
Guffa5-Oct-05 10:20 
Questionforms Pin
xilefxilef5-Oct-05 8:40
xilefxilef5-Oct-05 8:40 
AnswerRe: forms Pin
Heath Stewart5-Oct-05 9:19
protectorHeath Stewart5-Oct-05 9:19 
QuestionWindow Handles and Mouse Clicks Pin
budidharma5-Oct-05 8:28
budidharma5-Oct-05 8:28 
AnswerRe: Window Handles and Mouse Clicks Pin
Heath Stewart5-Oct-05 8:35
protectorHeath Stewart5-Oct-05 8:35 
GeneralRe: Window Handles and Mouse Clicks Pin
budidharma5-Oct-05 8:42
budidharma5-Oct-05 8:42 
GeneralRe: Window Handles and Mouse Clicks Pin
budidharma6-Oct-05 6:57
budidharma6-Oct-05 6:57 
Questionhow handle objects and code of setup forms? Pin
Anonymous5-Oct-05 8:26
Anonymous5-Oct-05 8:26 
QuestionAccessing dBase files with C# Pin
TheMajorRager5-Oct-05 8:02
TheMajorRager5-Oct-05 8:02 
AnswerRe: Accessing dBase files with C# Pin
Heath Stewart5-Oct-05 9:15
protectorHeath Stewart5-Oct-05 9:15 

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.