开发者

Draw on the screen, C#

I seek a C# method that can print data on the screen 'externally'.

Basically, I have an DX9 application, and I want to 'paint on it.'.

I tried the Graphics.FromHwnd(0); method, but its flickering and its not as good as I want it to be.

I know theres a lot of application like Skype that can draw on the monitor, 'above' all other 开发者_如何学Pythonapplications, but I can't understand how to do it programically.

I will be very greatful if you could help me.

Mark


Just create a form whose

form.TopMost=true

You may want to create a transparent form so that the form itself is invisible.

You may even want to create a non-rectangular form.


Sometimes overriding the OnBackgroundPaint event will produce fewer flickers. You might want to try that.

Otherwise, I don't know what your code is doing to cause the flickers in the first place.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜