Click here to Skip to main content
15,917,473 members
Home / Discussions / C#
   

C#

 
GeneralRe: Passing data between forms Pin
Meysam Mahfouzi14-May-04 16:05
Meysam Mahfouzi14-May-04 16:05 
GeneralRe: Passing data between forms Pin
Jeff Varszegi15-May-04 6:23
professionalJeff Varszegi15-May-04 6:23 
GeneralTicker –Gimme Some Desktop property.. Pin
Eustov14-May-04 13:56
Eustov14-May-04 13:56 
General"DataGrid received an exception at design time. Please reset the DataSource and DataMember property on the grid." Pin
turtle9549214-May-04 11:37
turtle9549214-May-04 11:37 
GeneralRedrawing form borders Pin
PhineasPhreak14-May-04 10:41
PhineasPhreak14-May-04 10:41 
GeneralRe: Redrawing form borders Pin
Heath Stewart14-May-04 11:05
protectorHeath Stewart14-May-04 11:05 
GeneralRe: Redrawing form borders Pin
PhineasPhreak14-May-04 23:26
PhineasPhreak14-May-04 23:26 
GeneralRe: Redrawing form borders Pin
Heath Stewart16-May-04 11:23
protectorHeath Stewart16-May-04 11:23 
You would have to draw them yourself. The only APIs for helping you draw rectangular regions (see the ControlPaint class - even the Windows APIs only help you do the same).

Typically, you make a non-rectangular client area using an image. You could do the same here. Either use or generate an image (if you generated an image, you could use the SystemColors read-only properties to generate an image using the system colors) with an alpha channel and rounded edges. You set that to the Form.BackgroundImage property and set the TransparencyKey if you want to clip a certain color. You could also use an image without an alpha channel (or even with, it just wouldn't make any difference in this case) and use the same region to clip (not mask) the area you want, having rounded, 3D corners within that region. This would work on all .NET-supported Windows platforms, perhaps even some Mono platforms (depending on what window manager / toolkit is used for Windows Forms). Using the alpha channel or color key only works in Windows 2000 and newer.

 

Microsoft MVP, Visual C#
My Articles
GeneralCrystal Report Formatting question Pin
Chris#14-May-04 10:23
Chris#14-May-04 10:23 
GeneralRe: Crystal Report Formatting question Pin
TigerNinja_14-May-04 13:40
TigerNinja_14-May-04 13:40 
Generalrowstate changes to Unchanged when sybasecommandbuilder is created Pin
CodeAgnostic14-May-04 9:55
CodeAgnostic14-May-04 9:55 
GeneralRe: rowstate changes to Unchanged when sybasecommandbuilder is created Pin
Heath Stewart14-May-04 10:39
protectorHeath Stewart14-May-04 10:39 
GeneralRe: rowstate changes to Unchanged when sybasecommandbuilder is created Pin
CodeAgnostic14-May-04 11:00
CodeAgnostic14-May-04 11:00 
GeneralSimple language question Pin
Joel Holdsworth14-May-04 9:08
Joel Holdsworth14-May-04 9:08 
GeneralRe: Simple language question Pin
Nemanja Trifunovic14-May-04 9:19
Nemanja Trifunovic14-May-04 9:19 
GeneralRe: Simple language question Pin
Joel Holdsworth14-May-04 9:34
Joel Holdsworth14-May-04 9:34 
GeneralRe: Simple language question Pin
Judah Gabriel Himango14-May-04 9:49
sponsorJudah Gabriel Himango14-May-04 9:49 
GeneralRe: Simple language question Pin
Nemanja Trifunovic14-May-04 10:11
Nemanja Trifunovic14-May-04 10:11 
GeneralRe: Simple language question Pin
Judah Gabriel Himango15-May-04 10:59
sponsorJudah Gabriel Himango15-May-04 10:59 
GeneralDataGrid question Pin
Anfernius14-May-04 7:23
Anfernius14-May-04 7:23 
GeneralRe: DataGrid question Pin
Heath Stewart14-May-04 8:42
protectorHeath Stewart14-May-04 8:42 
GeneralRe: DataGrid question Pin
..Hubert..15-May-04 1:13
..Hubert..15-May-04 1:13 
Generalregd painting a form Pin
karteek14-May-04 7:21
karteek14-May-04 7:21 
GeneralRe: regd painting a form Pin
Meysam Mahfouzi14-May-04 7:51
Meysam Mahfouzi14-May-04 7:51 
GeneralRe: regd painting a form Pin
TigerNinja_14-May-04 7:53
TigerNinja_14-May-04 7:53 

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.