onpaint
how to make a tmemo and Tedit with a transparent background?
how to make a tmemo and Tedit with a transpare开发者_JS百科nt background? or add image background on it\'s canvas. that workable in both Delphi7 upI have no actual answer to the question, but I know[详细]
2023-01-16 08:47 分类:问答Why is my c# paint method running out of memory?
I\'m new to c#, and trying to learn by writing some simple apps to get familiar with the syntax and .NET library.The most recent miniproject I took on is a polar clock like the one found here.[详细]
2023-01-15 11:11 分类:问答A problem with overriding OnPaint when DoubleBuffered set to true
I have created a custom control which derives from Panel. I use it to display an Image using BackgroundImage property. I override the OnClick method and set isSelected to true then call Invalidate met[详细]
2023-01-07 16:04 分类:问答C# WinForms - Paint method questions
I am not sure what is the best way of using graphics - should I attach my cla开发者_如何转开发sses to main form Paint event and then do the drawing, or it is better to call it from overidden OnPaint v[详细]
2023-01-06 04:35 分类:问答Setting the fontsize of a Paintbox causes OnPaint to be called
I need to write some text to a paintbox, and I do it in the OnPaint event. When I set the fontsize twice in the method, the OnPaint-event is called repeatedly.[详细]
2023-01-05 14:17 分类:问答Getting empty update rectangle in OnPaint after calling InvalidateRect on a layered window
I\'m trying to figure out why I\'ve been getting an empty update rectangle when I call InvalidateRect on a transparent window.The idea is that I\'ve drawn something on the window (it gets temporarily[详细]
2023-01-02 02:28 分类:问答How to effectively draw on desktop in C#?
I want to draw directly on the desktop in C#. From searching a bit, I ended up using a Graphics object from the Desktop HDC (null). Then, I painted normally using this Graphics object.[详细]
2022-12-31 08:06 分类:问答Exceptions and Access Violations in Paint events in Windows
After executing some new code, my C++ application started to behave strange (incorrect or incomplete screen updates, sometimes no screen updates at all).[详细]
2022-12-31 07:33 分类:问答OnPaint event during a callback when the form is below?
Imagine the following scenario: this.SetStyle(ControlStyles.UserPaint, true); //this doesn’t change anything[详细]
2022-12-29 15:38 分类:问答GDI+ Problem encountered in drawing multiples rectangles on the form
I whant to draw a table in C# Windows Forms using GDI+. When the number of rectangles is too large for all rectangles to be displayed on the form, it does not scroll. And can not access those who did[详细]
2022-12-27 00:24 分类:问答