Click here to Skip to main content
15,891,943 members
Home / Discussions / C#
   

C#

 
QuestionCheck Internet Port Status ? Pin
Ariston Darmayuda30-Jun-05 7:49
Ariston Darmayuda30-Jun-05 7:49 
AnswerRe: Check Internet Port Status ? Pin
Bojan Rajkovic30-Jun-05 15:33
Bojan Rajkovic30-Jun-05 15:33 
AnswerRe: Check Internet Port Status ? Pin
leppie30-Jun-05 22:55
leppie30-Jun-05 22:55 
GeneralDataGrid resize column Pin
Scot B30-Jun-05 6:11
Scot B30-Jun-05 6:11 
GeneralRe: DataGrid resize column Pin
Piovra_30-Jun-05 22:47
Piovra_30-Jun-05 22:47 
GeneralListView scrolling on clear - add items problem Pin
machocr30-Jun-05 4:43
machocr30-Jun-05 4:43 
GeneralRe: ListView scrolling on clear - add items problem Pin
mav.northwind1-Jul-05 0:54
mav.northwind1-Jul-05 0:54 
GeneralDocking and memory errors Pin
gantww30-Jun-05 4:29
gantww30-Jun-05 4:29 
Hello all,
I've noticed an "interesting" behavior in winforms. If I have a custom control whose paint event is overridden to draw a gradient background. When the control is docked and I try to create a LinearGradientBrush by specifying colors and a rectangle, I get an Out of Memory exception. OutOfMemoryException is the most useless exception type, because it does not allow you to fix or even diagnose problems in your code. You are simply screwed as far as I can tell. Mad | :mad:

Does anybody have an idea why this happens when the control is docked, but does not occur at any other time (like when the control is anchored to achieve the same effect)?

Will
GeneralRe: Docking and memory errors Pin
mav.northwind30-Jun-05 6:06
mav.northwind30-Jun-05 6:06 
GeneralRe: Docking and memory errors Pin
leppie30-Jun-05 7:54
leppie30-Jun-05 7:54 
GeneralRe: Docking and memory errors Pin
gantww30-Jun-05 9:08
gantww30-Jun-05 9:08 
GeneralRe: Docking and memory errors Pin
Dave Kreskowiak30-Jun-05 9:21
mveDave Kreskowiak30-Jun-05 9:21 
GeneralRe: Docking and memory errors Pin
gantww30-Jun-05 9:53
gantww30-Jun-05 9:53 
GeneralRe: Docking and memory errors Pin
Dave Kreskowiak30-Jun-05 17:34
mveDave Kreskowiak30-Jun-05 17:34 
GeneralRe: Docking and memory errors Pin
gantww1-Jul-05 1:33
gantww1-Jul-05 1:33 
GeneralRe: Docking and memory errors Pin
Dave Kreskowiak1-Jul-05 2:57
mveDave Kreskowiak1-Jul-05 2:57 
Questionweb services or remoting or what ? Pin
eng.mohamed30-Jun-05 2:55
eng.mohamed30-Jun-05 2:55 
AnswerRe: web services or remoting or what ? Pin
Judah Gabriel Himango30-Jun-05 4:12
sponsorJudah Gabriel Himango30-Jun-05 4:12 
AnswerRe: web services or remoting or what ? Pin
Sebastian Schneider30-Jun-05 4:15
Sebastian Schneider30-Jun-05 4:15 
AnswerRe: web services or remoting or what ? Pin
Adam Goossens30-Jun-05 16:43
Adam Goossens30-Jun-05 16:43 
AnswerRe: web services or remoting or what ? Pin
Matt Gerrans1-Jul-05 4:53
Matt Gerrans1-Jul-05 4:53 
GeneralManaging at Runtime-created Controls in C# Pin
tutah30-Jun-05 2:08
tutah30-Jun-05 2:08 
QuestionHow to add controls to OpenDialog box? Pin
Anonymous30-Jun-05 1:53
Anonymous30-Jun-05 1:53 
AnswerRe: How to add controls to OpenDialog box? Pin
Mattias Olgerfelt30-Jun-05 5:54
Mattias Olgerfelt30-Jun-05 5:54 
GeneralRe: How to add controls to OpenDialog box? Pin
avivag6-Jul-05 0:16
avivag6-Jul-05 0:16 

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.