Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > Visual C++ 2005
|
Visual C++ 2005 For discussion of Visual C++ 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 13th, 2007, 01:36 AM
Registered User
 
Join Date: Sep 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default using activemdichild in c++2005

I need to navigate a webbrowser thats on the activemdichild. I have successfully used
Code:
Dim child as form1 = trycast(form1,activemdichild)
child.webbrowser.navigate(combobox.text)
in vb.net 2005 and in c# 2005
Code:
                                        
 Form activeChildForm = this.ActiveMdiChild;

            if (activeChildForm != null)
            {
                WebBrowser activewebbrowser = (WebBrowser)activeChildForm.ActiveControl;
                if (activewebbrowser != null)
                    activewebbrowser.Navigate(toolStripComboBox1.Text);
            }

But I dont know how to do this in vc++ 2005. Please help






Similar Threads
Thread Thread Starter Forum Replies Last Post
reg conn to sql server 2005 from vb.net 2005.. veda SQL Server 2005 2 July 1st, 2008 12:16 AM
Migrating 2005 AJAX-Enabled Web Site to 2005 SP1 jrblack10 ASP.NET 2.0 Professional 0 July 25th, 2007 02:16 PM
VWD Express 2005 and VS 2005 - Help not working dmlocke C# 2005 0 March 21st, 2007 04:19 PM
Configuring SS 2005, vStudio 2005 only Environmnt mkaftor ASP.NET 2.0 Professional 3 February 10th, 2006 08:16 PM
Force ActiveMdiChild gbyrkje VB.NET 1 October 8th, 2004 04:55 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.