Click here to Skip to main content
15,791,113 members
Home / Discussions / C#
   

C#

 
AnswerRe: list to array Pin
cst_kvp19-Jun-08 20:04
cst_kvp19-Jun-08 20:04 
AnswerRe: list to array Pin
N a v a n e e t h19-Jun-08 22:23
N a v a n e e t h19-Jun-08 22:23 
AnswerRe: list to array Pin
Henrik K. Larsen19-Jun-08 22:42
Henrik K. Larsen19-Jun-08 22:42 
AnswerRe: list to array Pin
Sathesh Sakthivel19-Jun-08 23:17
Sathesh Sakthivel19-Jun-08 23:17 
Questionhow to write " int he xml file Pin
sowmya k19-Jun-08 19:58
sowmya k19-Jun-08 19:58 
AnswerRe: how to write " int he xml file [modified] Pin
priy@19-Jun-08 22:26
priy@19-Jun-08 22:26 
AnswerRe: how to write " int he xml file Pin
Kjetil Svendsen20-Jun-08 5:15
Kjetil Svendsen20-Jun-08 5:15 
QuestionHow to dynamically add a "CheckBox" or "List Box " property Item to a Property Grid at runtime ? Pin
Varad_Rajan19-Jun-08 19:32
Varad_Rajan19-Jun-08 19: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 18:13
grewin19-Jun-08 18:13 
Questionc# sql server 2000 login code Pin
ginji2019-Jun-08 18:11
ginji2019-Jun-08 18:11 
AnswerRe: c# sql server 2000 login code Pin
Abhijit Jana19-Jun-08 19:31
professionalAbhijit Jana19-Jun-08 19:31 
GeneralRe: c# sql server 2000 login code Pin
ginji2019-Jun-08 20:10
ginji2019-Jun-08 20:10 
GeneralRe: c# sql server 2000 login code Pin
Abhijit Jana19-Jun-08 21:44
professionalAbhijit Jana19-Jun-08 21:44 
AnswerRe: c# sql server 2000 login code Pin
N a v a n e e t h19-Jun-08 22:07
N a v a n e e t h19-Jun-08 22:07 
GeneralRe: c# sql server 2000 login code Pin
Abhijit Jana19-Jun-08 22:11
professionalAbhijit Jana19-Jun-08 22:11 
GeneralRe: c# sql server 2000 login code Pin
N a v a n e e t h19-Jun-08 22:16
N a v a n e e t h19-Jun-08 22:16 
GeneralRe: c# sql server 2000 login code Pin
ginji2019-Jun-08 22:11
ginji2019-Jun-08 22:11 
QuestionA little help Pin
grewin19-Jun-08 16:39
grewin19-Jun-08 16:39 
AnswerRe: A little help Pin
Abhijit Jana19-Jun-08 19:33
professionalAbhijit Jana19-Jun-08 19:33 
GeneralRe: A little help Pin
grewin19-Jun-08 20:08
grewin19-Jun-08 20:08 
QuestionsoRry for that wrong question.. Pin
maRk_maGic19-Jun-08 16:03
maRk_maGic19-Jun-08 16:03 
AnswerRe: soRry for that wrong question.. Pin
Ravi Bhavnani19-Jun-08 16:25
professionalRavi Bhavnani19-Jun-08 16:25 
Questionupdate an xml attribute Pin
nyjcr19-Jun-08 15:59
nyjcr19-Jun-08 15:59 
AnswerRe: update an xml attribute Pin
PIEBALDconsult19-Jun-08 16:08
professionalPIEBALDconsult19-Jun-08 16:08 
GeneralRe: update an xml attribute Pin
nyjcr19-Jun-08 18:18
nyjcr19-Jun-08 18: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.