1

I am creating an app using Electron.NET. Although in Electron there is the possibility to create a window passing its parent in the window options, i cannot seem to be able to do that in Electron.NET. I tried also to use the BrowserWindow.SetParentWindow method but it is not working, it throws a js exception that getWindowById.setParentWindow function does not exists.

hassan.ef
  • 1,300
  • 2
  • 11
  • 19
georgekar
  • 11
  • 2
  • See description of Electron Net at following site : https://github.com/ElectronNET/Electron.NET. Is the child and parent window running on same machine? Same operating System? Same user account? Do you have app running as "Admin"? – jdweng Apr 22 '19 at 09:42
  • I am building an app using Electron.NET, I think it implies that i have already read the description.. Yes in all other questions, although i do not understand how 2 windows of the same desktop app would run on another machine etc.. :) – georgekar Apr 22 '19 at 11:04
  • You need to process ids on remote machine. You would have to return the parent process id from first windows connection on second machine; and then pass to second window. – jdweng Apr 22 '19 at 11:19
  • Sorry but i do not understand what you are suggesting.. Could you please explain with more details? I have read the documentation etc, but it is my first Electron.NET app.. – georgekar Apr 22 '19 at 11:40
  • I'm not an expert on Electron.Net. Probably best if you ask the Electron Net experts. It looks like it is possible by using : routes.MapRoute( name: "default", template: "{controller=Home}/{action=Index}/{id?}"); where id would be the process id on the remote machine. – jdweng Apr 22 '19 at 11:46
  • 1
    Ok, Just to explain myself better, I am able to create a second window, just not as a child to another one but as a separate window – georgekar Apr 23 '19 at 09:38

0 Answers0