Click here to Skip to main content
15,886,840 members
Home / Discussions / Windows Forms
   

Windows Forms

 
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 
GeneralRe: Alpha-Blending controls Pin
Martin#13-Mar-08 1:18
Martin#13-Mar-08 1:18 
Hello,

Zerox MXI wrote:
why isn't it blending into the form?

Because the Color.Transparent only means, that the Control shows the BackColor of the ContainerControl.

Apart from that, you have to care about your instanciated GDI object (Brushes, Pen, ...)!

They have to be" Dispose()";

You could call "fontBrush.Dispose();" or use a "using"- block:
using(SolidBrush fontBrush = new SolidBrush(Color.FromArgb(alpha, Color.Black)))
{
    g.DrawString("Crap", this.Font, fontBrush, 10.0f, 10.0f);
}

Or hold the objects as long as the Control get's disposed and do the disposing there!

All the best,

Martin

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 
GeneralRe: Forms and Namespaces Pin
weirbear11-Mar-08 5:42
weirbear11-Mar-08 5:42 

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.