Click here to Skip to main content
15,891,816 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have made more the three different instances each with SHDocVw.InternetExplorer.

It's not about just making new tabs. I already know how to make new tab with existing explorer.

It's like After making three diffrent "new" instances of InternetExplorer then put one in another one to be new tab.

1)
C#
string url1 = "http://codeproject.com/";
InternetExplorer ie1 = new InternetExplorer();
ie1.Navigate(url1);

2)
C#
string url1 = "http://google.com/";
InternetExplorer ie1 = new InternetExplorer();
ie1.Navigate(url1);

3)
C#
string url3 = "http://microsoft.com/";
InternetExplorer ie3 = new InternetExplorer();
ie3.Navigate(url3);

Is there any method to put ie2, ie3 in ie1 to be new tabs of ie1 ?

Because I want to put each InternetExplorer into array of InternetExplorer[].

Any help is greatly appreciated.
Posted

1 solution

No, you cannot put an object instance to an object instance.

To create something like that, you will need to create a container object like InternetExplorerWindow (there isn't any, I'm just trying to tell you to create one like this) and then allow it to have as many InternetExplorer instances in it as it can, just like the tabs. You can try using a generic List object to include those object instances.
 
Share this answer
 
Comments
Member 10874313 13-Nov-14 11:25am    
Yeah, that's great idea. But how would i visualize the tabs after putting each single instances in parent container. Any suggestion or tips are very helpful.
Afzaal Ahmad Zeeshan 13-Nov-14 13:14pm    
You can try to create a Window for each of the InternetExplorer instance. :-)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900