Click here to Skip to main content
15,889,992 members
Home / Discussions / C#
   

C#

 
AnswerRe: list to array Pin
cst_kvp19-Jun-08 19:04
cst_kvp19-Jun-08 19:04 
AnswerRe: list to array Pin
N a v a n e e t h19-Jun-08 21:23
N a v a n e e t h19-Jun-08 21:23 
AnswerRe: list to array Pin
Henrik K. Larsen19-Jun-08 21:42
Henrik K. Larsen19-Jun-08 21:42 
AnswerRe: list to array Pin
Sathesh Sakthivel19-Jun-08 22:17
Sathesh Sakthivel19-Jun-08 22:17 
Questionhow to write " int he xml file Pin
sowmya k19-Jun-08 18:58
sowmya k19-Jun-08 18:58 
AnswerRe: how to write " int he xml file [modified] Pin
priy@19-Jun-08 21:26
priy@19-Jun-08 21:26 
AnswerRe: how to write " int he xml file Pin
Kjetil Svendsen20-Jun-08 4:15
Kjetil Svendsen20-Jun-08 4:15 
QuestionHow to dynamically add a "CheckBox" or "List Box " property Item to a Property Grid at runtime ? Pin
Varad_Rajan19-Jun-08 18:32
Varad_Rajan19-Jun-08 18:32 
I have a requirement to add dynamically a list box or checkbox to a propertygrid at runtime. I do not know at compile time what type of property items to be added to property Grid.

I am able to achieve to add dynamically a simple property item like a text
by overriding the "PropertyDescriptor" Class in my customdescriptor class.

But how to add in similar way a checkbox or listbox to propertygrid dynamically ?
I was not successfull till now.

But I can achieve the same thing for example adding a checkbox property item at compile time(without overriding PropertyDescriptor) by using UiTypeEditor like:

public class CheckBoxTest : System.Drawing.Design.UITypeEditor
{
public override bool GetPaintValueSupported(ITypeDescriptorContext context)
{
return true;
}

public override void PaintValue(System.Drawing.Design.PaintValueEventArgs e)
{
System.Windows.Forms.ControlPaint.DrawCheckBox(e.Graphics, e.Bounds, ((CustomProperty)e.Context.Instance).checkValue ? ButtonState.Checked : ButtonState.Normal);
}
}

But If I try to achieve the above to be executed at runtime by overriding "PropertyDescriptor" These functions are not called.

Can anyone have any idea ?

Thanks,
Rajan
QuestionHow to Access Reporting Service using asp.net and c# Pin
grewin19-Jun-08 17:13
grewin19-Jun-08 17:13 
Questionc# sql server 2000 login code Pin
ginji2019-Jun-08 17:11
ginji2019-Jun-08 17:11 
AnswerRe: c# sql server 2000 login code Pin
Abhijit Jana19-Jun-08 18:31
professionalAbhijit Jana19-Jun-08 18:31 
GeneralRe: c# sql server 2000 login code Pin
ginji2019-Jun-08 19:10
ginji2019-Jun-08 19:10 
GeneralRe: c# sql server 2000 login code Pin
Abhijit Jana19-Jun-08 20:44
professionalAbhijit Jana19-Jun-08 20:44 
AnswerRe: c# sql server 2000 login code Pin
N a v a n e e t h19-Jun-08 21:07
N a v a n e e t h19-Jun-08 21:07 
GeneralRe: c# sql server 2000 login code Pin
Abhijit Jana19-Jun-08 21:11
professionalAbhijit Jana19-Jun-08 21:11 
GeneralRe: c# sql server 2000 login code Pin
N a v a n e e t h19-Jun-08 21:16
N a v a n e e t h19-Jun-08 21:16 
GeneralRe: c# sql server 2000 login code Pin
ginji2019-Jun-08 21:11
ginji2019-Jun-08 21:11 
QuestionA little help Pin
grewin19-Jun-08 15:39
grewin19-Jun-08 15:39 
AnswerRe: A little help Pin
Abhijit Jana19-Jun-08 18:33
professionalAbhijit Jana19-Jun-08 18:33 
GeneralRe: A little help Pin
grewin19-Jun-08 19:08
grewin19-Jun-08 19:08 
QuestionsoRry for that wrong question.. Pin
maRk_maGic19-Jun-08 15:03
maRk_maGic19-Jun-08 15:03 
AnswerRe: soRry for that wrong question.. Pin
Ravi Bhavnani19-Jun-08 15:25
professionalRavi Bhavnani19-Jun-08 15:25 
Questionupdate an xml attribute Pin
nyjcr19-Jun-08 14:59
nyjcr19-Jun-08 14:59 
AnswerRe: update an xml attribute Pin
PIEBALDconsult19-Jun-08 15:08
mvePIEBALDconsult19-Jun-08 15:08 
GeneralRe: update an xml attribute Pin
nyjcr19-Jun-08 17:18
nyjcr19-Jun-08 17:18 

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.