Hi Dmitry,
I came across similar problems, as posted here : https://groups.google.com/g/exceldna/c/Zpr1KDsRTUE
There are some alternative projects to have a look at, if you want to create a Dialog Window.
I am not too familiar with WPF forms and really needed a functioning RefEdit approach asap, so I decided to
stick with the old DIALOG.BOX funtion:
_resultObject = XlCall.Excel(XlCall.xlfDialogBox, dialogDef);
In a way, that puts you back in the stone ages of Excel, but at least
RefEdit is tried and trusted in this dialog environment.
You'll probably will find it very hard to find documentation on these pre-Visual Basic XLM-commands. You need to use “Excel XLM macro’s” as a search term.
I used the following project on GitHub to further develop my own
solution: https://github.com/zwq00000/ExcelDna-XlDialog.
I have made several adjustments & improvements to the code, and now
it does the job pretty well. I haven't posted anything on GitHub, so my "branch" isn't
publically available (yet).
I hope this helps.
Regards,
Bart
--
You received this message because you are subscribed to a topic in the Google Groups "Excel-DNA" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/exceldna/RQ-xLW1A4NI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to exceldna+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/exceldna/245793f6-338e-4e35-b456-5a4b733bc4c9n%40googlegroups.com.
Hi Bart,
The XlDialogBox project looks really nice – thank you for updating and publishing this.
For many cases the XlDialogBox approach is simple and seems to work well.
I think with a friendly wrapper like this, it’s obviously much easier to use, and the code becomes kind of self-documenting.
I don’t think I quite understand Excel’s ‘callback’ style yet, so need to have a closer look at that.
I think there is a setting in GitHub (Settings -> Branches) where you can configure the default branch for the repo – changing that to “master” should pop up the right code when one opens the GitHub repo home page at https://github.com/MrBeee/XlDialogBox.
-Govert
--
You received this message because you are subscribed to the Google Groups "Excel-DNA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to exceldna+u...@googlegroups.com.
Greg Harvey's Excel 4.0 for the MAC: Harvey, Greg: Amazon.nl (sold out in NL, purchased in US).
So I expect that I'll be making some changes to the code when the book arrives.
Thanks for the tip on using Github, I was rather frustrated when I ended up with two branches somehow ☺
Best regards,
Bart
You received this message because you are subscribed to a topic in the Google Groups "Excel-DNA" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/exceldna/RQ-xLW1A4NI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to exceldna+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/exceldna/021801d72541%2462eb03b0%2428c10b10%24%40icon.co.za.
Hi Dmitry,
You probably have to edit the project’s Post-build command line to point at the right folder.
I think it’s set up when the ExcelDnaDoc package is installed, but not fixed up for a pre-built project that you are opening.
-Govert
From: exce...@googlegroups.com <exce...@googlegroups.com> On Behalf Of Dmitry Volynkin
Sent: 3 April 2021 23:35
To: Excel-DNA <exce...@googlegroups.com>
Subject: Re: [ExcelDna] Re: DotNetRefEdit and System.InvalidOperationException: Cross-thread operation not valid
Hi guys,
Bart, thanks for piecing that together, looks like a ton of work and research. I've cloned it, but for some reason couldn't make it run. Got these outputs:

To view this discussion on the web visit https://groups.google.com/d/msgid/exceldna/d0d7b6a8-b8e1-4e7e-98b0-86cd5543f647n%40googlegroups.com.