.NET-Form for Navision

f.ritz
Member Posts: 13
I try to develop DLL under NET(with C #), these contain a Windows-Form.
The problem is that navision sends this form always in background, this is never active. This happens only in Navision, if I call the DLL from other program, remains the form in the demand reason and is active.
I develop the DLL with VS.NET as class library(COM-Interop).
Help, which wrong I make?.
Code example:
The problem is that navision sends this form always in background, this is never active. This happens only in Navision, if I call the DLL from other program, remains the form in the demand reason and is active.
I develop the DLL with VS.NET as class library(COM-Interop).
Help, which wrong I make?.
Code example:
using System; using System.Runtime.InteropServices; [InterfaceType(ComInterfaceType.InterfaceIsIDispatch)] public interface INavisionTest { void start(); } [ClassInterface(ClassInterfaceType.None)] public class NavisionTest : INavisionTest { public NavisionTest() { } public void start() { Form f = new Form(); f.Show(); } }
0
Comments
-
I had this too, but only when the Object Designer was open. Try runnig it from the menusuite or close the Object Designer each time0
-
It does not function!
I produce a Automation variable in a Codeunit for the .NET-Form and start these for example in EmployeeCard(without Object Designer).
Codeunit:define nav_test as Automation(NavisionTest) --OnRun()------------------ CREATE(nav_test); nav_test.start(); -----------------------------
Employee Form:define codeu as codeunit(Codeunitname) --<Button> - OnPush()----- codeu.RUN(); --------------------------------
Help! Form remains nevertheless in the background!0 -
I do not have problems if the Object designer is closed or I start the .NET-Form from Menusuite.
It functioned not, only if I start the .NET-Form from a Form(example Employee).
It may not be Modal-Form(form.ShowDialog())!0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions