G
Greg Dunn
What determines whether a given object appears in the Component Tray of a Windows form? How can I get an item that is displaying there to stop displaying, without deleting it altogether?
Background:
I created a form using the DataForm wizard so I could take advantage of some of the code that generates. I then wanted to change all the OleDb objects to the corresponding SqlClient objects, and was able to do so successfully using global edits on the the "Windows Form Designer generated code" region.
I then renamed all the object variables that began with "OleDb", which turned out to be all command objects (formerly OleDb command objects, now SqlClient command objects).
After changing the names of these command object variables, some of the affected objects showed up in the component tray as discrete items. Some didn't. I'm not seeing in the code anything that would indicate why some show up and others don't. But I don't want any of the command objects to show up as discrete items in the component tray, as I can get at them through the properties of the DataAdapters to which they are attached.
Help appreciated!
Background:
I created a form using the DataForm wizard so I could take advantage of some of the code that generates. I then wanted to change all the OleDb objects to the corresponding SqlClient objects, and was able to do so successfully using global edits on the the "Windows Form Designer generated code" region.
I then renamed all the object variables that began with "OleDb", which turned out to be all command objects (formerly OleDb command objects, now SqlClient command objects).
After changing the names of these command object variables, some of the affected objects showed up in the component tray as discrete items. Some didn't. I'm not seeing in the code anything that would indicate why some show up and others don't. But I don't want any of the command objects to show up as discrete items in the component tray, as I can get at them through the properties of the DataAdapters to which they are attached.
Help appreciated!