Reputation: 1
I am currently trying to add items to a listview. The problem… it is not in the current form I’m working on.
Target Item located:
Form1
TabControl1
Tab2
SplitPanel1
Panel1
listMain
Trying to add items from location:
Form1
TabControl1
Tab2
SplitPanel1
Panel2
UserControlForm
I’m sure it’s something easy I’m missing but I can’t seem to figure out how access it from code.
Does anyone have any suggestions? It is all under the same namespace…
Upvotes: 0
Views: 50
Reputation: 101
This is not a very clean approach but it can be done. UI controls in WinForms are by default private, so technically you could open up the designer.cs file, find the control, and make it public. However, I'd advise a better design than approaching it this way.
Upvotes: 0