Click here to Skip to main content
15,908,675 members
Home / Discussions / Windows Forms
   

Windows Forms

 
Questionlistbox question Pin
loyal ginger12-Nov-09 10:51
loyal ginger12-Nov-09 10:51 
AnswerRe: listbox question Pin
Luc Pattyn12-Nov-09 12:03
sitebuilderLuc Pattyn12-Nov-09 12:03 
GeneralRe: listbox question Pin
loyal ginger12-Nov-09 14:46
loyal ginger12-Nov-09 14:46 
GeneralRe: listbox question Pin
Shameel17-Nov-09 4:41
professionalShameel17-Nov-09 4:41 
GeneralRe: listbox question Pin
Shameel17-Nov-09 4:40
professionalShameel17-Nov-09 4:40 
QuestionChange of text color in PropertyGrid Pin
Member 133012112-Nov-09 0:19
Member 133012112-Nov-09 0:19 
AnswerRe: Change of text color in PropertyGrid Pin
Dave Kreskowiak12-Nov-09 3:42
mveDave Kreskowiak12-Nov-09 3:42 
GeneralRe: Change of text color in PropertyGrid Pin
Member 133012115-Nov-09 18:52
Member 133012115-Nov-09 18:52 
I tried using UITypeEditor which allows me to paint the cell, but it also displays a small recangular box in the cell, which makes my display look ugly. Can you tell me how to get rid of this small rectangle?

The rectangular box appears as soon as I override the following function of UIEditorType

public override bool GetPaintValueSupported(ITypeDescriptorContext context)
{
//Set to true to implement the PaintValue method
return true;
}

I tried clearing the cell in PaintValue method but that did not work

public override void PaintValue(PaintValueEventArgs e)
{
base.PaintValue(e);

Region reg = new Region(new Rectangle(e.Bounds.X , e.Bounds.Y, e.Bounds.Width+10 , e.Bounds.Height));
Region tempReg = e.Graphics.Clip;
e.Graphics.Clip = reg;

// Tried to clear the entire cell with white color but still the small rectangle appears
e.Graphics.Clear(Color.White);
e.Graphics.Clip = tempReg;
// Fill region also did not work
//e.Graphics.FillRegion(Brushes.Red, reg);
}
}
GeneralRe: Change of text color in PropertyGrid Pin
Dave Kreskowiak16-Nov-09 5:12
mveDave Kreskowiak16-Nov-09 5:12 
QuestionProgrammatically Click mouse on specefic location Pin
shaina22317-Nov-09 3:02
shaina22317-Nov-09 3:02 
AnswerRe: Programmatically Click mouse on specefic location Pin
shaina22317-Nov-09 3:24
shaina22317-Nov-09 3:24 
QuestionRe: Programmatically Click mouse on specefic location Pin
Lukas Molnar16-Dec-09 0:34
Lukas Molnar16-Dec-09 0:34 
AnswerRe: Programmatically Click mouse on specefic location Pin
Luc Pattyn7-Nov-09 3:29
sitebuilderLuc Pattyn7-Nov-09 3:29 
QuestionForm Design Error Pin
mirzamujib3-Nov-09 21:21
mirzamujib3-Nov-09 21:21 
AnswerRe: Form Design Error Pin
Richard MacCutchan3-Nov-09 23:39
mveRichard MacCutchan3-Nov-09 23:39 
GeneralRe: Form Design Error Pin
mirzamujib4-Nov-09 2:54
mirzamujib4-Nov-09 2:54 
AnswerRe: Form Design Error Pin
Shameel4-Nov-09 4:09
professionalShameel4-Nov-09 4:09 
QuestionForm Design Error Pin
mirzamujib3-Nov-09 21:21
mirzamujib3-Nov-09 21:21 
Questionwhat are the different manners to run a file auto in WindowsXP Pin
WindowsVsLinux3-Nov-09 19:48
WindowsVsLinux3-Nov-09 19:48 
QuestionProportional Resize of Vertically Stacked Controls on a Resizable Form Pin
User 127823-Nov-09 9:36
User 127823-Nov-09 9:36 
AnswerRe: Proportional Resize of Vertically Stacked Controls on a Resizable Form Pin
User 127823-Nov-09 10:42
User 127823-Nov-09 10:42 
QuestionFont Dialog Box Pin
swapnil_bhanagle3-Nov-09 7:09
swapnil_bhanagle3-Nov-09 7:09 
QuestionRegex Question Pin
Alan Burkhart3-Nov-09 4:31
Alan Burkhart3-Nov-09 4:31 
AnswerRe: Regex Question Pin
Rob Smiley3-Nov-09 5:47
Rob Smiley3-Nov-09 5:47 
GeneralRe: Regex Question Pin
Alan Burkhart3-Nov-09 9:29
Alan Burkhart3-Nov-09 9:29 

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.