Custom Control Property
-
I have a control that includes a few buttons, a drop down and a text box. There is a property called DestinationGrid which is set at design time to be the grid the control works with. I also have another property called SelectedRow which is used to set the on the grid. Because the grid doesnt have any rows I get an error when I view the form at design time saying that SelectedRow - Object not set to an instance ... How can I stop thsi error occuring? I could remove the property and use a SetSelectedRow() and GetSelectedRow() method, but would like to use a property. Any suggestions? Thanks
-
I have a control that includes a few buttons, a drop down and a text box. There is a property called DestinationGrid which is set at design time to be the grid the control works with. I also have another property called SelectedRow which is used to set the on the grid. Because the grid doesnt have any rows I get an error when I view the form at design time saying that SelectedRow - Object not set to an instance ... How can I stop thsi error occuring? I could remove the property and use a SetSelectedRow() and GetSelectedRow() method, but would like to use a property. Any suggestions? Thanks
pjholliday wrote: How can I stop thsi error occuring? Simple: ask on the C# or the .NET forum. I bet there are people there willing to answer your question. Did you actually read those big, red letters when you posted here? Yes, even I am blogging now!
-
pjholliday wrote: How can I stop thsi error occuring? Simple: ask on the C# or the .NET forum. I bet there are people there willing to answer your question. Did you actually read those big, red letters when you posted here? Yes, even I am blogging now!
Chris should make some AI that can detect programming questions, and tell the poster to go somewhere else ;) - Anders My Photos
WDevs - The worlds first DSP, free blog space, email and more
-
Chris should make some AI that can detect programming questions, and tell the poster to go somewhere else ;) - Anders My Photos
WDevs - The worlds first DSP, free blog space, email and more
I bet spambayes could be used for this. If people voted "this is a programming question", spambayes would be able to quickly learn how to detect them. Not to mention that only top-level posts are programming questions. Yes, even I am blogging now!
-
Chris should make some AI that can detect programming questions, and tell the poster to go somewhere else ;) - Anders My Photos
WDevs - The worlds first DSP, free blog space, email and more
Isn't that what Paul was employed for? ;) Jon