Why I cannot access the properties of my Custom ComboBox
Ok, I created a windows control project....dropped a comboBox on it, wrote some custom code that I wanted on its event ( Text Changed event, etc) ... I can also compile it and drop it on a new WinForm开发者_如何学运维s App... good.
But in my sample WinForms app that I want to use it, I cannot access the properties of that combo box.. it does not list them .. properties like SelectedItems, etc...
what Am I doing wrong? this is my first time creating a custom control tho.
Thanks all
If Intellisense is failing you, it's most likely a misplaced brace, or something similar. Try commenting out lines with errors until your code is error-free, and try intellisensing again.
Ok, I could fix that by Inheriting from ComboBox instead of UserConntrol which was generated by the code. so now I am moer confused! so If I had more than one control on that border-less area then how I refer to them in my projects?
精彩评论