Nav is hanging when Browser controladdin page is closed
smshyd
Member Posts: 72
Hi all,
I have created a Browser client addin using following code in VS.(not much idea on .net
I have build and generated dll and registered Client addin through Addin Registration tool(christian blog I guess). Page running 5n and able to browse in RTC page also. But while closing the Page, nav gets stopped working . IS there any solution for this?
I have created a Browser client addin using following code in VS.(not much idea on .net
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Dynamics.Framework.UI.Extensibility.WinForms;
using Microsoft.Dynamics.Framework.UI.Extensibility;
using System.Windows.Forms;
using System.Drawing;
namespace MyCompany.MyProduct.BrowserAddins
{
[ControlAddInExport("MyCompany.MyProduct.BrowserAddin")]
public class BrowsercontrolAddin : WinFormsControlAddInBase, IStringControlAddInDefinition
{
WebBrowser webBrowser1;
string urlstring;
System.Uri weburi;
protected override Control CreateControl()
{
//throw new NotImplementedException();
webBrowser1 = new System.Windows.Forms.WebBrowser();
webBrowser1.Dock = System.Windows.Forms.DockStyle.Fill;
webBrowser1.Location = new System.Drawing.Point(0, 0);
webBrowser1.MinimumSize = new System.Drawing.Size(20, 20);
webBrowser1.Name = "webBrowser1";
webBrowser1.TabIndex = 0;
weburi = new System.Uri("http://www.google.com");
webBrowser1.Url = weburi;
return webBrowser1;
}
//protected override Control CreateControl()
//{
// throw new NotImplementedException();
//}
#region IValueControlAddInDefinition<string> Members
public bool HasValueChanged
{
get { throw new NotImplementedException(); }
}
public string Value
{
get
{
// throw new NotImplementedException();
return urlstring;
}
set
{
//throw new NotImplementedException();
urlstring = value;
if (value != "")
{
weburi = new System.Uri(value);
webBrowser1.Url = weburi;
}
}
}
#endregion
#region IEventControlAddInDefinition Members
public event ControlAddInEventHandler ControlAddIn;
#endregion
}
//[ControlAddInExport("MyCompany.MyProduct.BrowserAddin")]
//public class BrowsercontrolAddin : WinFormsControlAddInBase, IStringControlAddInDefinition
//{
//}
}
)I have build and generated dll and registered Client addin through Addin Registration tool(christian blog I guess). Page running 5n and able to browse in RTC page also. But while closing the Page, nav gets stopped working . IS there any solution for this?
0
Comments
-
Hi all,
is there any solution for the above issue.0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions