Click here to Skip to main content
15,903,012 members
Home / Discussions / C#
   

C#

 
QuestionRe: Custom Xml Serialization Pin
Skippums8-Jan-08 10:07
Skippums8-Jan-08 10:07 
GeneralRe: Custom Xml Serialization Pin
Ennis Ray Lynch, Jr.8-Jan-08 10:12
Ennis Ray Lynch, Jr.8-Jan-08 10:12 
QuestionRe: Custom Xml Serialization Pin
Skippums8-Jan-08 10:33
Skippums8-Jan-08 10:33 
GeneralRe: Custom Xml Serialization Pin
Ennis Ray Lynch, Jr.8-Jan-08 10:35
Ennis Ray Lynch, Jr.8-Jan-08 10:35 
GeneralRe: Custom Xml Serialization Pin
Skippums8-Jan-08 10:48
Skippums8-Jan-08 10:48 
GeneralInteresting Pin
Ennis Ray Lynch, Jr.8-Jan-08 11:01
Ennis Ray Lynch, Jr.8-Jan-08 11:01 
GeneralRe: Interesting Pin
Skippums9-Jan-08 5:12
Skippums9-Jan-08 5:12 
QuestionCreate Axwebbrowser with new Tabpage (VS2005) Pin
cola19738-Jan-08 8:00
cola19738-Jan-08 8:00 
Hi ,
I am a beginner in C# and just looking for a function to create dynamic several Webbrowser in a Tabpage. I use the Microsoft Webbrowser AxSHDocVw.AxWebBrowser Control in my application.
If i invoke the void a firsttime it runs, but at the second click I get a errormessage

Exception Typ : System.Windows.Forms.AxHost+InvalidActiveXStateException

This is my Code:

void myTabPageAxWebbbrowser()
        {
            TabPage myTabPg = new TabPage();
            AxSHDocVw.AxWebBrowser myWB = new AxSHDocVw.AxWebBrowser();
            object empty = System.Reflection.Missing.Value;
            System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1));
            myTabPg.SuspendLayout();

            this.tabControl1.Controls.Add(myTabPg);
            myTabPg.Controls.Add(myWB);
            myTabPg.Location = new System.Drawing.Point(10, 30);
            myTabPg.Name = "MyNewPage";
            myTabPg.Padding = new System.Windows.Forms.Padding(3);
            myTabPg.Size = new System.Drawing.Size(650, 500);
            myTabPg.TabIndex = 1;
            myTabPg.Text = "MyNewTab";
            myTabPg.UseVisualStyleBackColor = true;
            myTabPg.ResumeLayout(false);
            myWB.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("myWB.OcxState")));
            myWB.Dock = System.Windows.Forms.DockStyle.Fill;
            Debug.WriteLine(myWB.OcxState.ToString());
                        
            myWB.Navigate("c:\\test.doc", ref empty, ref empty, ref empty, ref empty);//

        }

Does anybody know how can I solve the Problem?



Thanks in Advance

Cola 1973  :) 

GeneralChange the Properties.Settings.Default user Pin
Christopher Stratmann8-Jan-08 7:36
Christopher Stratmann8-Jan-08 7:36 
GeneralRe: Change the Properties.Settings.Default user Pin
Skippums8-Jan-08 7:42
Skippums8-Jan-08 7:42 
GeneralRe: Change the Properties.Settings.Default user Pin
Christopher Stratmann8-Jan-08 7:52
Christopher Stratmann8-Jan-08 7:52 
GeneralRe: Change the Properties.Settings.Default user Pin
Skippums8-Jan-08 8:14
Skippums8-Jan-08 8:14 
GeneralChanging colors of listview items.. Pin
Dio228-Jan-08 7:23
Dio228-Jan-08 7:23 
GeneralRe: Changing colors of listview items.. Pin
cola19738-Jan-08 8:41
cola19738-Jan-08 8:41 
GeneralThreading Advice/Solutions Pin
paul90388-Jan-08 6:11
paul90388-Jan-08 6:11 
GeneralRe: Threading Advice/Solutions Pin
led mike8-Jan-08 7:00
led mike8-Jan-08 7:00 
GeneralRe: Threading Advice/Solutions Pin
Patrick Etc.8-Jan-08 7:17
Patrick Etc.8-Jan-08 7:17 
QuestionHow to access click event of the controlbox item close 'X' of a form Pin
eoswin8-Jan-08 5:43
eoswin8-Jan-08 5:43 
GeneralRe: How to access click event of the controlbox item close 'X' of a form Pin
Not Active8-Jan-08 5:47
mentorNot Active8-Jan-08 5:47 
GeneralRe: How to access click event of the controlbox item close 'X' of a form Pin
eoswin8-Jan-08 10:55
eoswin8-Jan-08 10:55 
Question[Message Deleted] Pin
sven-it8-Jan-08 5:20
sven-it8-Jan-08 5:20 
GeneralRe: Problem with OpenFiledialog - C# CompactFramework Pin
Not Active8-Jan-08 5:48
mentorNot Active8-Jan-08 5:48 
GeneralWindow.status Bar Pin
A.Asif8-Jan-08 4:40
A.Asif8-Jan-08 4:40 
GeneralRe: Window.status Bar Pin
Judah Gabriel Himango8-Jan-08 6:06
sponsorJudah Gabriel Himango8-Jan-08 6:06 
GeneralRe: Window.status Bar Pin
A.Asif8-Jan-08 6:43
A.Asif8-Jan-08 6:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.