Click here to Skip to main content
15,895,142 members
Home / Discussions / C#
   

C#

 
GeneralRe: How do I open a file? Pin
c.bartsch29-Apr-07 8:41
c.bartsch29-Apr-07 8:41 
GeneralRe: How do I open a file? Pin
Dave Kreskowiak30-Apr-07 7:55
mveDave Kreskowiak30-Apr-07 7:55 
QuestionHow to improve Windows application performance? Pin
engsrini28-Apr-07 11:14
engsrini28-Apr-07 11:14 
AnswerRe: How to improve Windows application performance? Pin
kubben28-Apr-07 12:57
kubben28-Apr-07 12:57 
Questionnew Double Buffering Pin
HexaDeveloper28-Apr-07 10:58
HexaDeveloper28-Apr-07 10:58 
AnswerRe: new Double Buffering Pin
Christian Graus28-Apr-07 14:19
protectorChristian Graus28-Apr-07 14:19 
GeneralRe: new Double Buffering Pin
HexaDeveloper29-Apr-07 2:37
HexaDeveloper29-Apr-07 2:37 
GeneralRe: new Double Buffering Pin
HexaDeveloper29-Apr-07 5:06
HexaDeveloper29-Apr-07 5:06 
public void tab_Paint(object sender, PaintEventArgs e)
{
TabPage tab = (TabPage)sender;
BufferedGraphicsContext context;
BufferedGraphics buffer;
// context = BufferedGraphicsManager.Current;
/// Dedicated context
/// used when highly animated graphics
context = new BufferedGraphicsContext();
Graphics grfx = tab.CreateGraphics();
buffer =
context.Allocate(grfx, tab.ClientRectangle);
drawSurfaceToBuffer(buffer.Graphics);
buffer.Render(grfx);
buffer.Dispose();
grfx.Dispose();




}
public void drawSurfaceToBuffer(Graphics bufferGrfx)
{
/// some processing that used the buffer grfxs
}


this code i understand it from MSDN and write it to reduce Graphics Flicker but it does not make any thing at all also it make my background of tabpage black and the original is white

is there any suggestions please

Generator
Questionhelp me-sth like a blog and commenting Pin
sanaziuse28-Apr-07 7:39
sanaziuse28-Apr-07 7:39 
AnswerRe: help me-sth like a blog and commenting Pin
Colin Angus Mackay28-Apr-07 8:56
Colin Angus Mackay28-Apr-07 8:56 
GeneralRe: help me-sth like a blog and commenting Pin
sanaziuse28-Apr-07 9:14
sanaziuse28-Apr-07 9:14 
GeneralRe: help me-sth like a blog and commenting Pin
Colin Angus Mackay28-Apr-07 9:39
Colin Angus Mackay28-Apr-07 9:39 
GeneralRe: help me-sth like a blog and commenting Pin
sanaziuse28-Apr-07 10:29
sanaziuse28-Apr-07 10:29 
GeneralRe: help me-sth like a blog and commenting Pin
Colin Angus Mackay28-Apr-07 11:07
Colin Angus Mackay28-Apr-07 11:07 
AnswerRe: help me-sth like a blog and commenting Pin
Christian Graus28-Apr-07 14:21
protectorChristian Graus28-Apr-07 14:21 
QuestionDataGridView Combobox Column Pin
Mohammed Elkholy28-Apr-07 6:53
Mohammed Elkholy28-Apr-07 6:53 
QuestionPrinting Alignment Pin
Richard Blythe28-Apr-07 6:36
Richard Blythe28-Apr-07 6:36 
QuestionC# RichTextBox DragDrop Pin
User 208927228-Apr-07 6:08
User 208927228-Apr-07 6:08 
QuestionTime Pin
Anka_Ame28-Apr-07 4:43
Anka_Ame28-Apr-07 4:43 
AnswerRe: Time Pin
Stefan Troschuetz28-Apr-07 5:08
Stefan Troschuetz28-Apr-07 5:08 
Questionask you to answer my question as understand it [modified] Pin
mahmoud wafy28-Apr-07 4:39
mahmoud wafy28-Apr-07 4:39 
AnswerRe: ask you to answer my question as understand it Pin
Christian Graus28-Apr-07 13:04
protectorChristian Graus28-Apr-07 13:04 
Question.NET2 SSL connection. Unexpected error Pin
rulllesss28-Apr-07 3:38
rulllesss28-Apr-07 3:38 
AnswerRe: Shell unzipping - Anyone had any problems with this? Pin
kubben28-Apr-07 5:12
kubben28-Apr-07 5:12 
GeneralRe: Shell unzipping - Anyone had any problems with this? Pin
Christian Graus28-Apr-07 13:05
protectorChristian Graus28-Apr-07 13:05 

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.