Click here to Skip to main content
15,894,343 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: Datagridview Refresh Control Problem Pin
Herman<T>.Instance1-Apr-08 23:47
Herman<T>.Instance1-Apr-08 23:47 
GeneralProblem with DataGridViewComboBoxColumn - try to disable/hide already selected values [modified] Pin
Skeletor2314-Mar-08 11:43
Skeletor2314-Mar-08 11:43 
GeneralStrange Error on Data Bound ComboBox Pin
Brady Kelly13-Mar-08 7:43
Brady Kelly13-Mar-08 7:43 
GeneralRe: Strange Error on Data Bound ComboBox Pin
led mike14-Mar-08 4:58
led mike14-Mar-08 4:58 
GeneralRe: Strange Error on Data Bound ComboBox Pin
Brady Kelly16-Mar-08 22:27
Brady Kelly16-Mar-08 22:27 
GeneralRe: Strange Error on Data Bound ComboBox Pin
ChandraRam17-Mar-08 0:37
ChandraRam17-Mar-08 0:37 
GeneralRe: Strange Error on Data Bound ComboBox Pin
Brady Kelly17-Mar-08 1:36
Brady Kelly17-Mar-08 1:36 
QuestionAlpha-Blending controls Pin
Zerox MXI12-Mar-08 23:43
Zerox MXI12-Mar-08 23:43 
I have set the alpha values of the brushes and pen, why isn't it blending into the form?

http://img153.imageshack.us/img153/2372/ss0001cn7.png[^]

Is there anyway to do this correctly?

<br />
        protected override void OnPaint(PaintEventArgs e)<br />
        {<br />
            //base.OnPaint(e);<br />
<br />
            this.AutoSize = false;<br />
            this.BackColor = Color.Transparent;<br />
<br />
            Graphics g = e.Graphics;<br />
<br />
            g.SmoothingMode = SmoothingMode.AntiAlias;<br />
            g.CompositingMode = CompositingMode.SourceOver;<br />
            g.CompositingQuality = CompositingQuality.HighQuality;<br />
<br />
            LinearGradientBrush brush = new LinearGradientBrush(this.ClientRectangle, Color.FromArgb(alpha, Color.Gray), Color.FromArgb(alpha, Color.Silver), LinearGradientMode.Horizontal);<br />
            g.FillRectangle(brush, this.ClientRectangle);<br />
<br />
            Pen pen = new Pen(Color.FromArgb(alpha, Color.Red));<br />
            g.DrawRectangle(pen, 0, 0, this.Size.Width - 1, this.Size.Height - 1);<br />
<br />
            SolidBrush fontBrush = new SolidBrush(Color.FromArgb(alpha, Color.Black));<br />
            g.DrawString("Crap", this.Font, fontBrush, 10.0f, 10.0f);<br />
        }<br />

GeneralRe: Alpha-Blending controls Pin
Martin#13-Mar-08 1:18
Martin#13-Mar-08 1:18 
QuestionHow to create Dynamic table? Pin
Guru_yogi12-Mar-08 20:42
Guru_yogi12-Mar-08 20:42 
AnswerRe: How to create Dynamic table? Pin
John_Adams12-Mar-08 21:53
John_Adams12-Mar-08 21:53 
GeneralSeeking directions for building own custom controls and about UI programming Pin
Zerox MXI12-Mar-08 15:17
Zerox MXI12-Mar-08 15:17 
GeneralRe: Seeking directions for building own custom controls and about UI programming Pin
led mike13-Mar-08 4:22
led mike13-Mar-08 4:22 
GeneralSend Page by email ( in the right forum now i hope ) :) Pin
cechode12-Mar-08 11:30
cechode12-Mar-08 11:30 
GeneralRe: Send Page by email ( in the right forum now i hope ) :) Pin
led mike13-Mar-08 4:26
led mike13-Mar-08 4:26 
GeneralRe: Send Page by email ( in the right forum now i hope ) :) Pin
cechode13-Mar-08 5:37
cechode13-Mar-08 5:37 
GeneralRe: Send Page by email ( in the right forum now i hope ) :) Pin
led mike13-Mar-08 6:03
led mike13-Mar-08 6:03 
GeneralNewbie trying to get a grasp Pin
Aazzin12-Mar-08 3:10
Aazzin12-Mar-08 3:10 
GeneralRe: Newbie trying to get a grasp Pin
James J. Foster12-Mar-08 11:58
James J. Foster12-Mar-08 11:58 
GeneralCombo box not getting populated .there is no Problem with The code Pin
Ramya Bhaskaran11-Mar-08 20:05
Ramya Bhaskaran11-Mar-08 20:05 
GeneralRe: Combo box not getting populated .there is no Problem with The code Pin
darkelv11-Mar-08 23:29
darkelv11-Mar-08 23:29 
GeneralRe: Combo box not getting populated .there is no Problem with The code Pin
Sabarinathan T13-Mar-08 4:02
Sabarinathan T13-Mar-08 4:02 
QuestionGridView customization to group columns Pin
spd11-Mar-08 9:11
spd11-Mar-08 9:11 
GeneralForms and Namespaces Pin
weirbear11-Mar-08 5:19
weirbear11-Mar-08 5:19 
GeneralRe: Forms and Namespaces Pin
Pete O'Hanlon11-Mar-08 5:24
mvePete O'Hanlon11-Mar-08 5:24 

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.