Click here to Skip to main content
15,914,500 members
Home / Discussions / C#
   

C#

 
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 
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 
hi, heath, thanx for bearing with me Smile | :)
no this is not a custom tab control, but a non rectangular window. the intent is for the upper poligonal(nonrectangular) part to be used as a handle to mousedrag the window by.
the first part of the code is in the contructor, and the second goes inside the OnPaint override.
im copying the code again -
in the 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);
in the Paint override:
GraphicsPath p = new GraphicsPath();
Point[] points = { new Point(0, 0), new Point(100, 0),
new Point(150, 50), new Point(0, 50)};
p.AddPolygon(points);
g.FillPath(new SolidBrush(Color.Aqua), p);
g.DrawPath(Pens.Red, p);

if you paste this directly into a windows form application code you will see what i mean (i would have posted the entire solution if i knew how to do it here Smile | :)

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 
GeneralDisplay formatted xml document in richtextbox Pin
CNU20-Dec-04 20:50
CNU20-Dec-04 20:50 
GeneralTcpChannel and authentication Pin
Bjoern.adG20-Dec-04 20:39
Bjoern.adG20-Dec-04 20:39 
GeneralRe: TcpChannel and authentication Pin
Skynyrd20-Dec-04 21:06
Skynyrd20-Dec-04 21:06 
GeneralExtending Folder properties Pin
umeshb20-Dec-04 20:02
umeshb20-Dec-04 20:02 
GeneralRe: Extending Folder properties Pin
Heath Stewart20-Dec-04 21:58
protectorHeath Stewart20-Dec-04 21:58 
QuestionMultiligual and End-User defined labels...? Pin
Darren Weir20-Dec-04 18:35
Darren Weir20-Dec-04 18:35 

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.