Obtain Handle of NAvision

asieraies
Member Posts: 49
Hi,
Can I obtain the handle of my NAvision window??
Thanks
Asier
Can I obtain the handle of my NAvision window??
Thanks
Asier
0
Comments
-
not with C/AL but with C++ or C#Do you make it right, it works too!0
-
... or any language which supports win32 api calls.0
-
I agree with garak on this one...the only way I could see to be able to do something like this in the past is through Win32 API calls (which is better left to C++, C# or VB.Net).
In the past I've developed a small little COM control that used the Win32API to loop through all of the window handles available and find one that matches. The problem with this method is that you cannot 100% guarantee that you're getting the right window handle. What if there are multiple navision clients open on the same machine? You will have to know what window caption Navision is assigning to the form - and this can be tricky as fin.exe may build the caption for you.
Thats about as far as I got with it - because I couldn't find a method that guarantees I retrieve the right handle I stopped. (I haven't tried this again...it may be possible with Nav 5.0)
If you find something bullet proof please post it!!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