I want to draw some lines on screen, one line and then next, just likes you see the subtitle of a movie.
but they overlaped, and I just get a black rect in the end.
It is not repainted between every drawing, so i want to know how to force to repaint.
It is to screen, not form. thx.
private void Show(string line)
IntPtr desk = GetDesktopWindow();
IntPtr hdc = GetDCEx(desk, IntPtr.Zero, 1027);
//RedrawWindow(desk, Rectangle.Empty, IntPtr.Zero, 0x85);
Graphics g = Graphics.FromHdc(hdc);
g.DrawString(line, this.Font, new SolidBrush(forecolor), new PointF(Screen.GetWorkingArea(this).Width - 500,
Screen.GetWorkingArea(this).Height - 60));
View Complete Post