Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #10491 > unrolled thread
| Started by | D.J.W. van Kooten <vankooten@removethis.ic2.com> |
|---|---|
| First post | 2017-04-25 17:27 +0200 |
| Last post | 2017-04-28 19:15 -0400 |
| Articles | 6 — 3 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
Using C# WPF program from VO D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2017-04-25 17:27 +0200
Re: Using C# WPF program from VO "Jamal" <noooospam@example.com> - 2017-04-25 14:57 -0400
Re: Using C# WPF program from VO D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2017-04-27 19:40 +0200
Re: Using C# WPF program from VO "Jamal" <noooospam@example.com> - 2017-04-27 18:08 -0400
Re: Using C# WPF program from VO Carlos Rocha <j.carlos.rocha.1.SpyedBy@gmail.com> - 2017-04-28 23:46 +0100
Re: Using C# WPF program from VO "Jamal" <noooospam@example.com> - 2017-04-28 19:15 -0400
| From | D.J.W. van Kooten <vankooten@removethis.ic2.com> |
|---|---|
| Date | 2017-04-25 17:27 +0200 |
| Subject | Using C# WPF program from VO |
| Message-ID | <tcqufctcbnfk07k1e54llrbncmlm3b319u@4ax.com> |
This has been long ago I've done something similair so if someone has this knowledge readily available it could save us a lot of time. We are working on a HTML editor, written in C# and using WPF screens. How again would be the way to get this component work in VO (so we can instert it in a window, like we do for e.g. a RTF control). I assume we need to create a DLL in C#, and then something with OleControl or CreateEmbedding? I think we use OCX's that way but that's a bit a thing of the past I read. Dick --- Deze e-mail is gecontroleerd op virussen door AVG. http://www.avg.com
[toc] | [next] | [standalone]
| From | "Jamal" <noooospam@example.com> |
|---|---|
| Date | 2017-04-25 14:57 -0400 |
| Message-ID | <odo66t$t05$1@news.albasani.net> |
| In reply to | #10491 |
I do not think you can embed WPF or Winforms program in VO. I can call custom Winforms COM visible libraries from VO (have not tried WPF as I don’t think this is doable), and have .NET handle the user interface in a separate .NET window. Another option is to shell to the program and use command line parameters. Jamal "D.J.W. van Kooten" wrote in message news:tcqufctcbnfk07k1e54llrbncmlm3b319u@4ax.com... This has been long ago I've done something similair so if someone has this knowledge readily available it could save us a lot of time. We are working on a HTML editor, written in C# and using WPF screens. How again would be the way to get this component work in VO (so we can instert it in a window, like we do for e.g. a RTF control). I assume we need to create a DLL in C#, and then something with OleControl or CreateEmbedding? I think we use OCX's that way but that's a bit a thing of the past I read. Dick --- Deze e-mail is gecontroleerd op virussen door AVG. http://www.avg.com
[toc] | [prev] | [next] | [standalone]
| From | D.J.W. van Kooten <vankooten@removethis.ic2.com> |
|---|---|
| Date | 2017-04-27 19:40 +0200 |
| Message-ID | <t1b4gct0i3q7n40kcrmikm4kg9qshvemjf@4ax.com> |
| In reply to | #10493 |
Replying on message of Tue, 25 Apr 2017 14:57:32 -0400 from Jamal: Hello Jamal, >I do not think you can embed WPF or Winforms program in VO. Hmmm, I hope you are wrong but you are often right ;). I would expect it to work like the webbrowser, this is basically what the component could replace and that works as well from VO. In our case, we use a 3rd party OCX and that is integrated differently but I understood that ocx is really past time. Well let's see what (other) options we have. Dick
[toc] | [prev] | [next] | [standalone]
| From | "Jamal" <noooospam@example.com> |
|---|---|
| Date | 2017-04-27 18:08 -0400 |
| Message-ID | <odtq44$77p$1@news.albasani.net> |
| In reply to | #10513 |
Hi Dick, In the past I looked at Microsoft InteropForms Toolkit 2.1, which described as "This toolkit helps you bring the power of .NET to your existing VB6 applications, by allowing them to display .NET Forms and Controls from within the same application." You need VB6 which cannot be installed in Windows 8 or 10 anymore. So, I gave up on it! https://www.microsoft.com/en-us/download/details.aspx?id=3264 A tutorial: https://www.codeproject.com/articles/18954/interop-forms-toolkit-tutorial Good luck if you can get it working. Jamal "D.J.W. van Kooten" wrote in message news:t1b4gct0i3q7n40kcrmikm4kg9qshvemjf@4ax.com... Replying on message of Tue, 25 Apr 2017 14:57:32 -0400 from Jamal: Hello Jamal, >I do not think you can embed WPF or Winforms program in VO. Hmmm, I hope you are wrong but you are often right ;). I would expect it to work like the webbrowser, this is basically what the component could replace and that works as well from VO. In our case, we use a 3rd party OCX and that is integrated differently but I understood that ocx is really past time. Well let's see what (other) options we have. Dick
[toc] | [prev] | [next] | [standalone]
| From | Carlos Rocha <j.carlos.rocha.1.SpyedBy@gmail.com> |
|---|---|
| Date | 2017-04-28 23:46 +0100 |
| Message-ID | <oe0ghh$r9l$1@dont-email.me> |
| In reply to | #10514 |
Às 23:08 de 27/04/2017, Jamal escreveu: > > In the past I looked at Microsoft InteropForms Toolkit 2.1, which > described as "This toolkit helps you bring the power of .NET to your > existing VB6 applications, by allowing them to display .NET Forms and > Controls from within the same application." > > You need VB6 which cannot be installed in Windows 8 or 10 anymore. So, I > gave up on it! > VB6 can be installed in every windows version since Win95, including Win8 and Win10. I have it here (Win10 64) and had it in Win7 and Win8.1 before. It's important to install it (and run) with administrator rights, tho. https://docs.microsoft.com/en-us/dotnet/articles/visual-basic/reference/vb6-support I didn't need it, but the following link may help http://blog.danbrust.net/2015/09/14/installing-visual-basic-studio-6-on-windows-10/ -- *Carlos Rocha* --- Este e-mail foi verificado em termos de vírus pelo software antivírus Avast. https://www.avast.com/antivirus
[toc] | [prev] | [next] | [standalone]
| From | "Jamal" <noooospam@example.com> |
|---|---|
| Date | 2017-04-28 19:15 -0400 |
| Message-ID | <oe0ieg$bl8$1@news.albasani.net> |
| In reply to | #10520 |
Carols, >> VB6 can be installed in every windows version since Win95, including Win8 and Win10. I have it here (Win10 64) and had it in Win7 and Win8.1 before. It's important to install it (and run) with administrator rights, tho. << According to my testing, the last version VB6 could be installed correctly is Win 7, but in in 8 and 10 many options did not work correctly and lots of errors. Actually during installing it hung on installing certain components;. Anyway, it is time to skip it and div into .NET and use it a COM server and be done with it. Jamal "Carlos Rocha" wrote in message news:oe0ghh$r9l$1@dont-email.me... Às 23:08 de 27/04/2017, Jamal escreveu: > > In the past I looked at Microsoft InteropForms Toolkit 2.1, which > described as "This toolkit helps you bring the power of .NET to your > existing VB6 applications, by allowing them to display .NET Forms and > Controls from within the same application." > > You need VB6 which cannot be installed in Windows 8 or 10 anymore. So, I > gave up on it! > VB6 can be installed in every windows version since Win95, including Win8 and Win10. I have it here (Win10 64) and had it in Win7 and Win8.1 before. It's important to install it (and run) with administrator rights, tho. https://docs.microsoft.com/en-us/dotnet/articles/visual-basic/reference/vb6-support I didn't need it, but the following link may help http://blog.danbrust.net/2015/09/14/installing-visual-basic-studio-6-on-windows-10/ -- *Carlos Rocha* --- Este e-mail foi verificado em termos de vírus pelo software antivírus Avast. https://www.avast.com/antivirus
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web