Click here to Skip to main content
15,867,453 members
Home / Discussions / C#
   

C#

 
AnswerRe: Problem with quitting an application Pin
Dave Kreskowiak14-Oct-09 5:20
mveDave Kreskowiak14-Oct-09 5:20 
GeneralRe: Problem with quitting an application Pin
Frank Alviani14-Oct-09 5:44
Frank Alviani14-Oct-09 5:44 
GeneralRe: Problem with quitting an application Pin
Dave Kreskowiak14-Oct-09 6:17
mveDave Kreskowiak14-Oct-09 6:17 
GeneralRe: Problem with quitting an application Pin
Frank Alviani14-Oct-09 8:27
Frank Alviani14-Oct-09 8:27 
GeneralRe: Problem with quitting an application Pin
Dave Kreskowiak14-Oct-09 9:10
mveDave Kreskowiak14-Oct-09 9:10 
GeneralMobile phone programs Pin
Enobong Adahada14-Oct-09 4:45
Enobong Adahada14-Oct-09 4:45 
GeneralRe: Mobile phone programs Pin
EliottA14-Oct-09 4:51
EliottA14-Oct-09 4:51 
QuestionInvalidation, Painting problems Pin
DahrkDaiz14-Oct-09 4:22
DahrkDaiz14-Oct-09 4:22 
Ok, I have a control with custom painting being done. I have a back buffer bitmap that I draw to then OnPaint, I paint the entire bitmap to the control. There are sometimes with certain sections of the bitmap are updated and all I need to do is update those sections on the control. So what I'm doing so far is:

pseudocode
void UpdateArea(Rectangle rect)
{
    // Drawing code;
    Invalidate(rect);
}

void OnPaint(object o, PaintEventArgs e)
{
    e.Graphics.DrawImage(BackBuffer, e.ClipRectangle, e.ClipRectangle, GraphicsUnit.Pixel);
}


Ok, that's not actual code, but it's close enough. When I call UpdateArea, the area which I changed is successfully reflected on the screen. However, once UpdateArea is called, the control will only redraw that section from there on out. Everything outside of the region becomes garbage. The Bitmap itself is fine because if I call Invalidate(), the entire bitmap draws just fine. What am I missing that would prevent the rest of the bitmap from being draw properly?
AnswerRe: Invalidation, Painting problems Pin
Luc Pattyn14-Oct-09 4:42
sitebuilderLuc Pattyn14-Oct-09 4:42 
GeneralRe: Invalidation, Painting problems Pin
DahrkDaiz14-Oct-09 4:50
DahrkDaiz14-Oct-09 4:50 
QuestionCreate the database with LINQ Pin
Mohammad Dayyan14-Oct-09 4:18
Mohammad Dayyan14-Oct-09 4:18 
AnswerRe: Create the database with LINQ Pin
Dave Kreskowiak14-Oct-09 5:15
mveDave Kreskowiak14-Oct-09 5:15 
GeneralRe: Create the database with LINQ Pin
Mohammad Dayyan14-Oct-09 15:38
Mohammad Dayyan14-Oct-09 15:38 
GeneralRe: Create the database with LINQ Pin
Dave Kreskowiak14-Oct-09 16:15
mveDave Kreskowiak14-Oct-09 16:15 
GeneralRe: Create the database with LINQ Pin
Mohammad Dayyan14-Oct-09 23:29
Mohammad Dayyan14-Oct-09 23:29 
GeneralRe: Create the database with LINQ Pin
Dave Kreskowiak15-Oct-09 1:09
mveDave Kreskowiak15-Oct-09 1:09 
Questionapplication validation did not succeed Pin
tamir90114-Oct-09 4:10
tamir90114-Oct-09 4:10 
AnswerRe: application validation did not succeed Pin
Not Active14-Oct-09 4:18
mentorNot Active14-Oct-09 4:18 
GeneralRe: application validation did not succeed Pin
tamir90114-Oct-09 23:57
tamir90114-Oct-09 23:57 
Questionlandscape page in crystal report Pin
Enobong Adahada14-Oct-09 4:05
Enobong Adahada14-Oct-09 4:05 
AnswerRe: landscape page in crystal report Pin
EliottA14-Oct-09 4:54
EliottA14-Oct-09 4:54 
AnswerRe: landscape page in crystal report Pin
Lyon Sun14-Oct-09 9:37
Lyon Sun14-Oct-09 9:37 
Questionmultiple reports in a single reportviwer Pin
Enobong Adahada14-Oct-09 4:04
Enobong Adahada14-Oct-09 4:04 
AnswerRe: multiple reports in a single reportviwer Pin
EliottA14-Oct-09 4:54
EliottA14-Oct-09 4:54 
GeneralMobile phone programs Pin
Enobong Adahada14-Oct-09 3:59
Enobong Adahada14-Oct-09 3:59 

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.