Click here to Skip to main content
15,892,298 members
Home / Discussions / C#
   

C#

 
GeneralRe: Displaying IIS directories/sites in C# Application Pin
Heath Stewart31-Dec-04 22:42
protectorHeath Stewart31-Dec-04 22:42 
GeneralRe: Displaying IIS directories/sites in C# Application Pin
Adnan Siddiqi2-Jan-05 19:50
Adnan Siddiqi2-Jan-05 19:50 
GeneralRe: Displaying IIS directories/sites in C# Application Pin
Heath Stewart2-Jan-05 21:14
protectorHeath Stewart2-Jan-05 21:14 
GeneralRe: Displaying IIS directories/sites in C# Application Pin
Adnan Siddiqi3-Jan-05 7:55
Adnan Siddiqi3-Jan-05 7:55 
GeneralRe: Displaying IIS directories/sites in C# Application Pin
Adnan Siddiqi5-Jan-05 8:05
Adnan Siddiqi5-Jan-05 8:05 
GeneralSQL statement with result list restriction Pin
ppp00120-Dec-04 22:25
ppp00120-Dec-04 22:25 
GeneralRe: SQL statement with result list restriction Pin
Colin Angus Mackay20-Dec-04 22:45
Colin Angus Mackay20-Dec-04 22:45 
GeneralGDI+ nonrectangular forms problem Pin
sstoyan20-Dec-04 22:18
sstoyan20-Dec-04 22:18 
hi i have this in the form constructor:
GraphicsPath p = new GraphicsPath();

Point[] points = { new Point(0, 0), new Point(100, 0),
new Point(150, 50), new Point(250, 50),
new Point(250, 350), new Point(0, 350) };

p.AddPolygon(points);
this.Region = new Region(p);

which creates a poligonal form.
i want to have the upper part colored, and im using the same coordinates, like:

Graphics g = e.Graphics;
Point[] points = { new Point(0, 0), new Point(100, 0),
new Point(150, 50), new Point(0, 50)};
Rectangle r = new Rectangle(points);
g.FillRectangle(new SolidBrush(Color.Aqua), r);

but the colored part doesnt match the part of the window i expect! do i have to make coordinates shift or something? i tried rectangletoscreen etc but nothing worked ...
GeneralRe: GDI+ nonrectangular forms problem Pin
Heath Stewart20-Dec-04 22:45
protectorHeath Stewart20-Dec-04 22:45 
GeneralRe: GDI+ nonrectangular forms problem Pin
sstoyan21-Dec-04 3:33
sstoyan21-Dec-04 3:33 
GeneralRe: GDI+ nonrectangular forms problem Pin
Heath Stewart21-Dec-04 8:16
protectorHeath Stewart21-Dec-04 8:16 
GeneralRe: GDI+ nonrectangular forms problem Pin
sstoyan21-Dec-04 9:54
sstoyan21-Dec-04 9:54 
GeneralRe: GDI+ nonrectangular forms problem Pin
Heath Stewart21-Dec-04 12:33
protectorHeath Stewart21-Dec-04 12:33 
GeneralRe: GDI+ nonrectangular forms problem Pin
sstoyan21-Dec-04 21:38
sstoyan21-Dec-04 21:38 
GeneralRe: GDI+ nonrectangular forms problem Pin
Heath Stewart22-Dec-04 6:59
protectorHeath Stewart22-Dec-04 6:59 
GeneralRe: GDI+ nonrectangular forms problem Pin
sstoyan22-Dec-04 9:00
sstoyan22-Dec-04 9:00 
GeneralRe: GDI+ nonrectangular forms problem Pin
Heath Stewart22-Dec-04 9:17
protectorHeath Stewart22-Dec-04 9:17 
GeneralRe: GDI+ nonrectangular forms problem Pin
sstoyan22-Dec-04 12:15
sstoyan22-Dec-04 12:15 
GeneralRe: GDI+ nonrectangular forms problem Pin
Heath Stewart22-Dec-04 13:39
protectorHeath Stewart22-Dec-04 13:39 
GeneralRe: GDI+ nonrectangular forms problem Pin
sstoyan22-Dec-04 22:19
sstoyan22-Dec-04 22:19 
GeneralRe: GDI+ nonrectangular forms problem Pin
Heath Stewart23-Dec-04 4:28
protectorHeath Stewart23-Dec-04 4:28 
GeneralRe: GDI+ nonrectangular forms problem Pin
sstoyan23-Dec-04 5:05
sstoyan23-Dec-04 5:05 
GeneralRe: GDI+ nonrectangular forms problem Pin
Heath Stewart23-Dec-04 5:29
protectorHeath Stewart23-Dec-04 5:29 
GeneralBinding DataGrid with Database Pin
T i T i20-Dec-04 21:50
T i T i20-Dec-04 21:50 
GeneralRe: Binding DataGrid with Database Pin
Heath Stewart20-Dec-04 22:13
protectorHeath Stewart20-Dec-04 22:13 

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.