help me how to open a tab page in tabcontrol by using coding

Here are two ways:

With SelectedIndex property: TabControl1.SelectedIndex = 1 Tab pages are indexed from 0, 1, 2 ...

With SelectedTab property: TabControl1.SelectedTab = TabControl1.TabPages.Item("TabPage2") assuming you have a tab page named "TabPage2", or TabControl1.SelectedTab = TabControl1.TabPages.Item(1) and the same indexing applies as with SelectedIndex property.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.