DLL Subform - De-activates NAV form
RickDDMS
Member Posts: 11
Hi,
I've wrote a .NET DLL which takes control of a NAV subform (similar to a tree view) to display NAV data graphically.
Its all working other than when i click within the .NET form the NAV form is de-activated.
I've used c# sharp and hooked the into the NAV window...
When the NAV form is active my tool tips work fine (tips within the .net form) but once you've clicked within the .NET form (and de-activated the NAV parent form) the tool tips won't work (until you re-activate the NAV form).
I've tried having my .NET form call an event in NAV to re-focus the NAV form but unless i pop a message up the focus doesn't return.
Does anyone have any ideas as to how you can keep the NAV form active, or stop a .NET form from receiving focus.
Thanks
I've wrote a .NET DLL which takes control of a NAV subform (similar to a tree view) to display NAV data graphically.
Its all working other than when i click within the .NET form the NAV form is de-activated.
I've used c# sharp and hooked the into the NAV window...
When the NAV form is active my tool tips work fine (tips within the .net form) but once you've clicked within the .NET form (and de-activated the NAV parent form) the tool tips won't work (until you re-activate the NAV form).
I've tried having my .NET form call an event in NAV to re-focus the NAV form but unless i pop a message up the focus doesn't return.
Does anyone have any ideas as to how you can keep the NAV form active, or stop a .NET form from receiving focus.
Thanks
0
Comments
-
Is it RoleTailored or Classic?
Can you share some code?
What do you mean by "hook into the window"?Freddy Kristiansen
Group Program Manager, Client
Microsoft Dynamics NAV
http://blogs.msdn.com/freddyk
The information in this post is provided "AS IS" with no warranties, and confers no rights. This post does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.0 -
Its the classic client i'm using and a native database.
I'm retreiving the handle of the NAV subform and setting it as the parent of my .NET form using ..(part of the code)
public static extern IntPtr SetParent(IntPtr hWndChild, IntPtr hWndParent);
[DllImport("User32", CharSet = CharSet.Auto, ExactSpelling = true)]
Rick0
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
- 250 Dynamics CRM
- 102 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