Click here to Skip to main content
15,922,015 members
Home / Discussions / C#
   

C#

 
QuestionCreate transparent gradient form? Pin
BlueChippy22-Feb-07 0:55
BlueChippy22-Feb-07 0:55 
AnswerRe: Create transparent gradient form? Pin
Judah Gabriel Himango22-Feb-07 4:56
sponsorJudah Gabriel Himango22-Feb-07 4:56 
GeneralRe: Create transparent gradient form? Pin
mike montagne22-Feb-07 8:51
mike montagne22-Feb-07 8:51 
GeneralRe: Create transparent gradient form? Pin
mike montagne22-Feb-07 9:28
mike montagne22-Feb-07 9:28 
AnswerRe: Create transparent gradient form? Pin
mike montagne22-Feb-07 9:01
mike montagne22-Feb-07 9:01 
GeneralRe: Create transparent gradient form? Pin
mike montagne22-Feb-07 9:32
mike montagne22-Feb-07 9:32 
AnswerRe: Create transparent gradient form? Pin
mike montagne22-Feb-07 9:12
mike montagne22-Feb-07 9:12 
GeneralRe: Create transparent gradient form? Pin
BlueChippy22-Feb-07 21:05
BlueChippy22-Feb-07 21:05 
The last bit of code is just to see where the edge was - thats why the brush declaration is quick and dirty!

As for the fill with Alpha:

Color myColor = Color.FromArgb(25, this.TransparencyKey);<br />
Color[] colors = { myColor};<br />
brush2.SurroundColors = colors;<br />
g.FillEllipse(brush2, rect2);<br />


I thought this would take the current color of the transparency key (in this case it's actually SystemColors.Desktop) and then apply an alpha of 25 to it (close to transparent, but not entirely).

This code works for an elips drawn on top of a single colour form, e.g. as an extra circle on a square form, but not when it "is" the form, if you see what I mean.

Thanks.
QuestionSystem.Net.Mail response Pin
babbelfisken22-Feb-07 0:55
babbelfisken22-Feb-07 0:55 
AnswerRe: System.Net.Mail response Pin
Mike Dimmick22-Feb-07 1:01
Mike Dimmick22-Feb-07 1:01 
GeneralRe: System.Net.Mail response Pin
babbelfisken22-Feb-07 1:18
babbelfisken22-Feb-07 1:18 
QuestionCreate and set Printer port? Pin
Sebastian P.R. Gingter22-Feb-07 0:42
Sebastian P.R. Gingter22-Feb-07 0:42 
QuestionClient-Server Problem Pin
stancrm22-Feb-07 0:31
stancrm22-Feb-07 0:31 
AnswerRe: Client-Server Problem Pin
Mike Dimmick22-Feb-07 0:57
Mike Dimmick22-Feb-07 0:57 
Questionsynchronisation Pin
Sunshine Always22-Feb-07 0:16
Sunshine Always22-Feb-07 0:16 
AnswerRe: synchronisation Pin
Judah Gabriel Himango22-Feb-07 4:52
sponsorJudah Gabriel Himango22-Feb-07 4:52 
Questionconversion problem VS 2003 to VS 2005 Pin
ArthurGZ21-Feb-07 23:48
ArthurGZ21-Feb-07 23:48 
AnswerRe: conversion problem VS 2003 to VS 2005 Pin
Stefan Troschuetz22-Feb-07 0:02
Stefan Troschuetz22-Feb-07 0:02 
QuestionTab page to hold focus programatically Pin
Glen Harvy21-Feb-07 23:34
Glen Harvy21-Feb-07 23:34 
AnswerRe: Tab page to hold focus programatically Pin
Stefan Troschuetz21-Feb-07 23:47
Stefan Troschuetz21-Feb-07 23:47 
GeneralRe: Tab page to hold focus programatically Pin
Glen Harvy22-Feb-07 1:25
Glen Harvy22-Feb-07 1:25 
GeneralRe: Tab page to hold focus programatically Pin
Stefan Troschuetz22-Feb-07 2:42
Stefan Troschuetz22-Feb-07 2:42 
GeneralRe: Tab page to hold focus programatically Pin
Glen Harvy22-Feb-07 3:03
Glen Harvy22-Feb-07 3:03 
QuestionGet Process Names Pin
Rahul.RK21-Feb-07 23:19
Rahul.RK21-Feb-07 23:19 
AnswerRe: Get Process Names [modified] Pin
Martin#21-Feb-07 23:22
Martin#21-Feb-07 23:22 

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.