Hello!
I can see two problems on the line that throws an error.
- you don't say which TabPage gets a new control. (=>
TabControl.TabPages(index).Controls.Add();)
- you don't say which control you add to your TabPage (=>
TabControl.TabPages(index).Controls.Add(something))
Maybe your code here isn't what you have in your application, but
right now these two strike me as quite easy to correct.

On 24 août, 12:18, "Mohammed.hussain" <[email protected]> wrote:
> Q) How to Add a form on TabPage?
>
> How i do this...
> frmMaster _frm = new frmMaster();
> TabControl.TabPages.Controls.add();   // error occurs
>
> bla bla bl...........
>
> frmMaster contains the DataGridView and The navigaion code
> From the menu Selection the TabPage call and it contains the frmMaster
> grid..
>
> How i Call the form into the TabPage..
>
> Thanks

Reply via email to