Nav 5 + COM
xyligan
Posts: 10
I`m trying to connect my grid (C#) to Nav 5, using COM.
To do this, i typed:
After loading grid form in second and third.. i can`t change data right off.
In another clients of this dll (C# appl) there is no this problem.
How do you think, why this error occurred?
To do this, i typed:
public Form1()
{
...
IntPntr hFocus = GetFocus();
_ParentHwnd = hFocus;
}
protected override CreateParams CreateParams
{
get
{
CreateParams cp = base.CreateParams;
cp.Parent = _ParentHwnd;
return cp;
}
}
In NAV:
Create(gird); grid.show;All likes good, but after loading dll in first time, after few seconds, i can`t change data value in my grid, controls works fine.
After loading grid form in second and third.. i can`t change data right off.
In another clients of this dll (C# appl) there is no this problem.
How do you think, why this error occurred?
0
Comments
-
What is the ".show" method actually doing?
Didn't think you could show a windows form from a COM component in NAV...0 -
It simple show() method of windows form in C#.
But before, i changed form to create it in NAV form, like a parent container.0 -
But you might have problems showing the Windows Form called from a COM component. I didn't think this was fully supported but could be wrong... You'd definitely run in to trouble if you were trying to do this on the 3 tier as well...
http://msdn.microsoft.com/en-us/library/ee909565.aspx0 -
I enabled textbox in row.. and saw that focus is escaping from grid..
i can`t change anything after selecting textbox or checkbox.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
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 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