Click here to Skip to main content
15,916,692 members
Home / Discussions / C#
   

C#

 
GeneralExchange Server Address Book Pin
FredSP5-Sep-04 18:18
FredSP5-Sep-04 18:18 
GeneralRe: Exchange Server Address Book Pin
Corinna John5-Sep-04 20:42
Corinna John5-Sep-04 20:42 
GeneralRe: Exchange Server Address Book Pin
FredSP6-Sep-04 2:49
FredSP6-Sep-04 2:49 
GeneralRe: Exchange Server Address Book Pin
Corinna John6-Sep-04 3:41
Corinna John6-Sep-04 3:41 
GeneralSocket remote node disconnection Pin
Den2Fly5-Sep-04 18:08
Den2Fly5-Sep-04 18:08 
GeneralRe: Socket remote node disconnection Pin
Pradeep Shamarao5-Sep-04 21:47
Pradeep Shamarao5-Sep-04 21:47 
GeneralCustomizing a ListBox Pin
eggie55-Sep-04 16:58
eggie55-Sep-04 16:58 
GeneralRe: Customizing a ListBox Pin
mav.northwind6-Sep-04 2:35
mav.northwind6-Sep-04 2:35 
GeneralRe: Customizing a ListBox Pin
Werdna6-Sep-04 9:49
Werdna6-Sep-04 9:49 
GeneralRe: Customizing a ListBox Pin
eggie56-Sep-04 19:32
eggie56-Sep-04 19:32 
GeneralRe: Customizing a ListBox Pin
Werdna7-Sep-04 3:59
Werdna7-Sep-04 3:59 
GeneralRe: Customizing a ListBox Pin
eggie57-Sep-04 14:01
eggie57-Sep-04 14:01 
QuestionCan I use Visual C# Standard commercially? Pin
kusanagi20005-Sep-04 15:35
kusanagi20005-Sep-04 15:35 
AnswerRe: Can I use Visual C# Standard commercially? Pin
Christian Graus5-Sep-04 15:38
protectorChristian Graus5-Sep-04 15:38 
GeneralRe: Can I use Visual C# Standard commercially? Pin
kusanagi20005-Sep-04 16:33
kusanagi20005-Sep-04 16:33 
GeneralGradientPanel Pin
Asciono5-Sep-04 13:29
Asciono5-Sep-04 13:29 
Hello,

I'd like to have a small gradient panel on the top of my application. I created a Custom Control and added this to OnPaint:

ColorBlend cBlend = new ColorBlend(2);
Color[] blendColors = {this.BackColor, SystemColors.ActiveBorder};
float[] pos = {.0f, 1f};

cBlend.Colors = blendColors;
cBlend.Positions = pos;

LinearGradientBrush brush = new LinearGradientBrush(e.ClipRectangle, blendColors[0], blendColors[1], LinearGradientMode.Horizontal);
brush.InterpolationColors = cBlend;

e.Graphics.Clear(this.BackColor);
e.Graphics.FillRectangle(brush, e.ClipRectangle);

It works nicely. But when I resize, I think it only repaint the a small part of the area, which makes it look odd.

Tried to catch the resize event, and did this:
Invalidate(this.ClientRectangle, false);

But apparantly, that wasn't enough.

Any ideas?
GeneralRe: GradientPanel Pin
mav.northwind5-Sep-04 20:10
mav.northwind5-Sep-04 20:10 
GeneralMachine Info Pin
Moon Boy5-Sep-04 13:17
Moon Boy5-Sep-04 13:17 
GeneralRe: Machine Info Pin
eggie55-Sep-04 14:20
eggie55-Sep-04 14:20 
GeneralRe: Machine Info Pin
Mazdak5-Sep-04 20:39
Mazdak5-Sep-04 20:39 
GeneralRe: Machine Info Pin
heile6-Sep-04 19:10
heile6-Sep-04 19:10 
QuestionOnKeyDown not getting arrow keys ? Pin
Christian Graus5-Sep-04 12:30
protectorChristian Graus5-Sep-04 12:30 
AnswerRe: onkeydown not getting arrow keys ? Pin
Werdna6-Sep-04 9:53
Werdna6-Sep-04 9:53 
GeneralRe: onkeydown not getting arrow keys ? Pin
Christian Graus6-Sep-04 10:40
protectorChristian Graus6-Sep-04 10:40 
Generaldifferential comparison algo Pin
sho125-Sep-04 10:37
sho125-Sep-04 10:37 

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.