Hi,
Very thank's for your reply.
I have 2 problem in this project.
1.When we click Button1 and Button2 in Form1, then create 2 tab's in TabControl. If "Frame 2" tab is selected and we click exit button in frame2 then automatically "Frame
1" tab select. but if "Frame 1" tab is selected and we click exit button in frame1, then "Frame 2" tab can not select.
This means : when 2nd Tab in TabControl is selected, when we exit this frame then first tab in TabControl automatically selected. and if First tab in TabControl is seleted
and we want to exit it, then select next tab (2nd) in TabControl.
2.When any TabControl is not any tab, this means any frames not created.Thereover Tabcontrol must not visibe for user. but now user can TabContol when haven't any
Tab.
I modified the your code to be able solve these problems but that codes don't work propertly. (download :
http://rapidshare.com/files/413831113/pr_22.rar )
Really: my purpose of this sample project is, i want to make a multi-tab program like firefox. you have any better idea for it??