1
Answer

[C#] Listview to change tabpage

Jay S

Jay S

10y
1.2k
1
I have a main form, on that form I have a tabcontrol and a list view.

As I click my listview my tabpages do change (no problems).

On my tab pages I have some objectlistviews where on row click I open another form:

                this.currentEdit = new FrmEdit();
                this.currentEdit.TopLevel = false;
                this.currentEdit.Parent = this.tabP;
                this.currentEditShow();
                this.currentEditBringToFront();

This form is borderless and has no icon, no taskbar, in effect it looks "embedded".

The listview from my main form is still visble as this is in a tabpage

In this "subform" I have another tabcontrol, as I open this form up I programatically change some of the items in the listview.

I want to be able to use the listview click event to change the tabpage of subform..

I can't seem to find a way to access the child of a child tabcontrol

I hope I have explained this well.


Answers (1)