Click here to Skip to main content
15,908,444 members
Home / Discussions / C#
   

C#

 
GeneralRe: Error in .NET (regions) ??!! Pin
Chris Jobson4-Apr-03 10:57
Chris Jobson4-Apr-03 10:57 
I've found by experiment that the problem is with the width (0.002...). If either the width or the height of the rectangle used to create the region is less than 0.03125 then the problem occurs. I've also found that
region.IsEmpty(myform.CreateGraphics())
returns true if either the width or height is less than this value.

I'm afraid I've no idea why a width/height of less than 0.03125 makes a region empty, or what you can do about it (except check for a size less than this and make it bigger). 0.03125 = 1/32, so maybe this is some "magic number" used within GDI+?Confused | :confused:

Chris Jobson
GeneralRe: Error in .NET (regions) ??!! Pin
Wizard_014-Apr-03 21:58
Wizard_014-Apr-03 21:58 
GeneralTypes and XML Pin
Jon Newman4-Apr-03 3:17
Jon Newman4-Apr-03 3:17 
GeneralRe: Types and XML Pin
Stephane Rodriguez.4-Apr-03 6:46
Stephane Rodriguez.4-Apr-03 6:46 
QuestionHave components you want to sell? Pin
Roger Alsing4-Apr-03 0:57
Roger Alsing4-Apr-03 0:57 
GeneralUsing the capacity property of ArrayList Pin
Alex Iagovsky4-Apr-03 0:51
Alex Iagovsky4-Apr-03 0:51 
GeneralRe: Using the capacity property of ArrayList Pin
Paul Riley4-Apr-03 1:56
Paul Riley4-Apr-03 1:56 
GeneralRe: Using the capacity property of ArrayList Pin
Stephane Rodriguez.4-Apr-03 6:51
Stephane Rodriguez.4-Apr-03 6:51 
GeneralRe: Using the capacity property of ArrayList Pin
neroknights4-Apr-03 4:01
neroknights4-Apr-03 4:01 
GeneralSQL Server -> trigger -> event -> caught by C# program Pin
zoltan_ie4-Apr-03 0:22
zoltan_ie4-Apr-03 0:22 
GeneralArray.Contains Pin
Anonymous3-Apr-03 23:22
Anonymous3-Apr-03 23:22 
GeneralRe: Array.Contains Pin
Paul Riley4-Apr-03 1:57
Paul Riley4-Apr-03 1:57 
GeneralRe: Array.Contains Pin
Anonymous4-Apr-03 2:23
Anonymous4-Apr-03 2:23 
Generalregister customized protocol Pin
ddrk3-Apr-03 22:34
ddrk3-Apr-03 22:34 
GeneralRe: register customized protocol Pin
Stephane Rodriguez.4-Apr-03 7:00
Stephane Rodriguez.4-Apr-03 7:00 
GeneralRe: register customized protocol Pin
ddrk4-Apr-03 17:18
ddrk4-Apr-03 17:18 
GeneralPrinting > How do I see the status of a printer Pin
Leon van Wyk3-Apr-03 22:25
professionalLeon van Wyk3-Apr-03 22:25 
General.NET remote object running locally Pin
dacris3-Apr-03 17:08
dacris3-Apr-03 17:08 
GeneralRe: .NET remote object running locally Pin
dacris4-Apr-03 2:05
dacris4-Apr-03 2:05 
Questionhow can get password and username in active directory? Pin
wangzhibin3-Apr-03 12:55
wangzhibin3-Apr-03 12:55 
Generalread binary registry key Pin
peterchen3-Apr-03 12:12
peterchen3-Apr-03 12:12 
GeneralRe: read binary registry key Pin
J. Dunlap4-Apr-03 7:08
J. Dunlap4-Apr-03 7:08 
GeneralProblems with ".Equals()" in listview code Pin
vlusardi3-Apr-03 12:08
vlusardi3-Apr-03 12:08 
GeneralCrystal Report distribution Pin
Mmithat3-Apr-03 12:05
Mmithat3-Apr-03 12:05 
GeneralConnection Gateway Pin
0siris3-Apr-03 11:49
0siris3-Apr-03 11:49 

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.