im making a treeview in c# but cant get it so show in navision
have tride to look on som of the treeview in download but they are in delphi and i cant figure them out so if anyone knows what the problem are or how to show the treeview plz tell me
There exist some techniques to show anything:
1. Standalone window - you have to solve presentation in your DLL
2. In Navision window - create subform (I used to subform with easy identied caption), then you have to find hWnd of this subform and then send all output of your DLL to this window.
There exist some API function which you can use to traverse thru windows and only task is to find the caption of this subform (child of Navision main window) and in your code change the hWnd of your control to found one.
@nooby: before investing days or weeks in it you must know that at the end it wont be a perfect solution.
why: a Winform is still a Winform and won't act the same way as a child-control in Navision does. You'll have to manage the focus manually, tabbing on the Navision - Form wont work with your Control, etc...
Answers
1. Standalone window - you have to solve presentation in your DLL
2. In Navision window - create subform (I used to subform with easy identied caption), then you have to find hWnd of this subform and then send all output of your DLL to this window.
At this time I have no code samples.
why: a Winform is still a Winform and won't act the same way as a child-control in Navision does. You'll have to manage the focus manually, tabbing on the Navision - Form wont work with your Control, etc...