I make some component and controls in the my toolbox
when I drag them to the form, i hope VS can write the code into the InitializeComponent automaticlly,just like I drag a VS button in the form.
How to archieve this
pls give me some idea
Thanks
I make some component and controls in the my toolbox
when I drag them to the form, i hope VS can write the code into the InitializeComponent automaticlly,just like I drag a VS button in the form.
How to archieve this
pls give me some idea
Thanks
How to write the code automaticly into the InitializeComponent?
Wuchihchung
bugmenot
how to write DesignerSerializer
pls give me a example
anderl
namespace
Phone_Number_Control{
public class PhoneTypeConverter : TypeConverter{
public PhoneTypeConverter(){
} public override bool GetPropertiesSupported(ITypeDescriptorContext context){
return true;}
public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes){
return TypeDescriptor.GetProperties(typeof(PhoneNumber));}
}
}
Codewarrior3
Shane Griggs - MSFT
I use the TyeConverter and UITypeEditor
to display the property in the window
i want the code can created in code window too
Olivertech
Durone
pls leave your msn or email,so we can chat conveniently.
Thanks
dnelson
private string test = "muh";
public string Test
{
get { return this.test; }
set { this.test = value; }
}
Compile the solution and add the control to a Form. Now have a look into the InitializeComponent Block and you will find the Test property. I think this was meant.
Dijkstra30
Best wishes