+ 1

Window Form using Node.js

Hello all, is there any possibility that I can make window form using Node.js which will be draw on other applications of Windows?

1st Aug 2021, 9:39 AM
Hamdan Farooq
Hamdan Farooq - avatar
13 Answers
+ 5
Yes, you could build window desktop applications using electron.js Electron.js allows for the development of desktop GUI applications using web technologies: it combines the Chromium rendering engine and the Node.js runtime.
1st Aug 2021, 10:24 AM
Calviղ
Calviղ - avatar
+ 4
Hamdan Farooq ipcMain is the interprocess communication method between election app and web pages, which is different from what interprocess that Martin Taylor has mentioned.
1st Aug 2021, 1:00 PM
Calviղ
Calviղ - avatar
+ 3
Hamdan Farooq Follow the following steps to setup a basic desktop application using election.js. // Quickstart of simple electron app // commands to run to setup electron package in node.js npm init -y npm i -D electron // modified package.json "main": "main.js" "script": { "start": "electron ." } // create index.htmk and add content in // run electron app from main.js import {app, BrowserWindow} = require(electron); app.whenReady.then(() => { const win = new BrowserWindow({ width: 800, height: 600 }); win.loadFile('index.html'); }); // to compile the desktop application, run command npm start https://code.sololearn.com/ca9a6a20A5A1/?ref=app
1st Aug 2021, 2:54 PM
Calviղ
Calviղ - avatar
+ 1
I can't imagine why you would want to use Node over C# for winforms...
1st Aug 2021, 9:43 AM
Aleksei Radchenkov
Aleksei Radchenkov - avatar
+ 1
I never said I will use node over c# I am working with react.js node.js and react native also. And currently I am doing demo project for more practicing that is why I am asking. Aleksei Radchenkov
1st Aug 2021, 10:09 AM
Hamdan Farooq
Hamdan Farooq - avatar
1st Aug 2021, 10:18 AM
Aleksei Radchenkov
Aleksei Radchenkov - avatar
+ 1
1st Aug 2021, 10:20 AM
Hamdan Farooq
Hamdan Farooq - avatar
+ 1
Martin Taylor you are saying right I have found ipcMain (for the communication)
1st Aug 2021, 12:03 PM
Hamdan Farooq
Hamdan Farooq - avatar
0
Calviղ Thank you
1st Aug 2021, 10:27 AM
Hamdan Farooq
Hamdan Farooq - avatar
0
Calviղ thanks I was searching for interprocess communication and I misunderstood ipcMain.
1st Aug 2021, 1:50 PM
Hamdan Farooq
Hamdan Farooq - avatar
0
Thanks Calviղ. My application has been completed the only thing that I am struggling on now is to activate mouse event true when pressing any key (in my case is 'z') and disabling mouse Event on pressing key(in my case is 'x').
1st Aug 2021, 2:58 PM
Hamdan Farooq
Hamdan Farooq - avatar
0
@Hamdan Farooq, I am also working on the same thing I want to call my C# classes code behind Electron UI. Can you help me out?
29th Mar 2024, 7:33 AM
Muhammad Saqib Khan
Muhammad Saqib Khan - avatar