Click here to Skip to main content
15,900,906 members
Home / Discussions / C#
   

C#

 
QuestionC# picture box Pin
C.CoderCreator20-Sep-10 20:05
C.CoderCreator20-Sep-10 20:05 
AnswerRe: C# picture box Pin
Pete O'Hanlon20-Sep-10 22:06
mvePete O'Hanlon20-Sep-10 22:06 
QuestionMicrosoft.Sharepoint.dll Reference. Pin
avi_dadi200220-Sep-10 20:00
avi_dadi200220-Sep-10 20:00 
AnswerRe: Microsoft.Sharepoint.dll Reference. Repost Pin
Richard MacCutchan20-Sep-10 21:19
mveRichard MacCutchan20-Sep-10 21:19 
Questionwhat gets passed to what class?? Pin
stephen.darling20-Sep-10 19:52
stephen.darling20-Sep-10 19:52 
AnswerMessage Closed Pin
20-Sep-10 21:09
stancrm20-Sep-10 21:09 
GeneralRe: what gets passed to what class?? Pin
stephen.darling20-Sep-10 21:29
stephen.darling20-Sep-10 21:29 
AnswerRe: what gets passed to what class?? Pin
OriginalGriff20-Sep-10 21:43
mveOriginalGriff20-Sep-10 21:43 
It works fine for me, so try recreating the steps I used:
1) In solution explorer, right click your project, and add a user control. Call it something sensible.
2) Highlight the new control, and open the code.
3) Change the derivation from "UserControl" to "Panel" - you don't need to do this, but WTF. If you do, compile the program, and delete the line the compiler complains about (AuoScaleMode)
4) In your new control class, add the following:
protected override void OnPaint(PaintEventArgs e)
    {
    e.Graphics.FillRectangle(Brushes.Green, e.ClipRectangle);
    }

Now, when you add your new control, it will fill itself with Green - this shows OnPaint in being called.
I would then add a Paint method to my ECG class, and hand it either e.Graphics so it can draw itself.
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.

GeneralRe: what gets passed to what class?? Pin
stephen.darling20-Sep-10 21:48
stephen.darling20-Sep-10 21:48 
GeneralRe: what gets passed to what class?? [Modified] Pin
OriginalGriff20-Sep-10 21:59
mveOriginalGriff20-Sep-10 21:59 
GeneralRe: what gets passed to what class?? [Modified] Pin
stephen.darling20-Sep-10 22:07
stephen.darling20-Sep-10 22:07 
GeneralRe: what gets passed to what class?? [Modified] Pin
OriginalGriff21-Sep-10 2:10
mveOriginalGriff21-Sep-10 2:10 
QuestionFinding gap between Date ranges Pin
DJ24520-Sep-10 19:22
DJ24520-Sep-10 19:22 
AnswerRe: Finding gap between Date ranges Pin
Łukasz Nowakowski20-Sep-10 21:35
Łukasz Nowakowski20-Sep-10 21:35 
GeneralRe: Finding gap between Date ranges Pin
DJ24520-Sep-10 22:11
DJ24520-Sep-10 22:11 
GeneralRe: Finding gap between Date ranges Pin
Łukasz Nowakowski20-Sep-10 22:19
Łukasz Nowakowski20-Sep-10 22:19 
AnswerRe: Finding gap between Date ranges Pin
DJ24520-Sep-10 23:16
DJ24520-Sep-10 23:16 
QuestionLinq question - what wrong with my code ? Pin
Yanshof20-Sep-10 19:13
Yanshof20-Sep-10 19:13 
AnswerRe: Linq question - what wrong with my code ? [modified] Pin
Pete O'Hanlon20-Sep-10 22:13
mvePete O'Hanlon20-Sep-10 22:13 
AnswerRe: Linq question - what wrong with my code ? Pin
PIEBALDconsult21-Sep-10 3:13
mvePIEBALDconsult21-Sep-10 3:13 
QuestionAdd row to DataGridView [Solved] Pin
Deepak.Prahlad20-Sep-10 18:31
Deepak.Prahlad20-Sep-10 18:31 
Questiongraph not drawing properly? Pin
stephen.darling20-Sep-10 15:54
stephen.darling20-Sep-10 15:54 
AnswerRe: graph not drawing properly? Pin
Luc Pattyn20-Sep-10 16:33
sitebuilderLuc Pattyn20-Sep-10 16:33 
Questionwhy they don't show up Pin
neverpleat20-Sep-10 14:50
neverpleat20-Sep-10 14:50 
AnswerRe: why they don't show up Pin
Luc Pattyn20-Sep-10 15:02
sitebuilderLuc Pattyn20-Sep-10 15:02 

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.