¡@

Home 

c# Programming Glossary: e.graphics.fillrectangle

C#: TreeView owner drawing with ownerdrawtext and the weird black highlighting when clicking on a node

http://stackoverflow.com/questions/1003459/c-treeview-owner-drawing-with-ownerdrawtext-and-the-weird-black-highlighting-w

the background Brush backBrush new SolidBrush leftColour e.Graphics.FillRectangle backBrush itemRect Faint underline along the bottom of each.. e.State TreeNodeStates.Hot 224 128 255 255 255 e.Graphics.FillRectangle bodge selRect Pen dotPen new Pen Color.FromArgb 128 128 128..

How to change the background color of unused space tab in C# winforms?

http://stackoverflow.com/questions/11822748/how-to-change-the-background-color-of-unused-space-tab-in-c-sharp-winforms

e.Index .Text StringFormat sftTab new StringFormat e.Graphics.FillRectangle bshBack e.Bounds Rectangle recTab e.Bounds recTab new Rectangle.. Brush b Brushes.BlueViolet the color you want e.Graphics.FillRectangle b emptyspacerect for me it's working perfectly share improve..

how to print datagridview data on winforms?

http://stackoverflow.com/questions/15853746/how-to-print-datagridview-data-on-winforms

colcount GridCol for int i _GridCol.Count 1 i 0 i e.Graphics.FillRectangle new SolidBrush Color.LightGray new Rectangle int arrColumnLefts..

Resize WinForm, with no border?

http://stackoverflow.com/questions/2575216/resize-winform-with-no-border

rc rc new Rectangle 0 0 this.ClientSize.Width 32 e.Graphics.FillRectangle Brushes.DarkBlue rc protected override void WndProc ref Message..

C# Can I display images in a list box?

http://stackoverflow.com/questions/472897/c-sharp-can-i-display-images-in-a-list-box

The item is selected. We want a blue background color. e.Graphics.FillRectangle new SolidBrush Color.Blue e.Bounds else The item is NOT selected... item is NOT selected. We want a white background color. e.Graphics.FillRectangle new SolidBrush Color.White e.Bounds Draw the item. string..

TreeView Remove CheckBox by some Nodes

http://stackoverflow.com/questions/4826556/treeview-remove-checkbox-by-some-nodes

using SolidBrush brush new SolidBrush backColor e.Graphics.FillRectangle brush e.Node.Bounds TextRenderer.DrawText e.Graphics e.Node.Text..

Highlighting a particular item in a combo box

http://stackoverflow.com/questions/856397/highlighting-a-particular-item-in-a-combo-box

if template.IsDefault font new Font font FontStyle.Bold e.Graphics.FillRectangle backgroundColor e.Bounds e.Graphics.DrawString template.Name..

Partial transparency with C# .NET 3.5 WinForms?

http://stackoverflow.com/questions/873470/partial-transparency-with-c-sharp-net-3-5-winforms

Brush brush new SolidBrush Color.FromArgb 155 Color.Black e.Graphics.FillRectangle brush e.ClipRectangle It works but occasionally the form draws..