There are NO libraries required
For .NET Framework projects, the right redistributables could be needed, depending on versions :
.NET Framework deployment guide for developers
And what does "NOT WORKING" mean ?
(Which error or message ?)
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Any NET. application does't work - I am in the visual studio, I build a simple program, release - and transfer it to any person on the planet earth who has Windows - and so, he does not start the application ( start .exe files ). There are NO libraries required. My question is, why do you even create such a tool that cannot be used ????? That is, really, the company Microsost why are you creating something that cannot be used ????
There are NO libraries required
For .NET Framework projects, the right redistributables could be needed, depending on versions :
.NET Framework deployment guide for developers
And what does "NOT WORKING" mean ?
(Which error or message ?)
This means that it does not start and writes - to run this application, you need to install the necessary packages (but everything is going to me during development)
p.s.
Thanks you for your answer
1) I'm use 4.8 .NET Framework
2) Yes, i use ( WebView2 )
3) Code ( two pages )
Form1.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace sadoqwepoflkajsdhfkljhagsdljkhgasd
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
this.Resize += new System.EventHandler(this.Form_Resize);
}
private void Form_Resize(object sender, EventArgs e)
{
webView21.Size = this.ClientSize - new System.Drawing.Size(webView21.Location);
}
private void button1_Click(object sender, EventArgs e)
{
System.Diagnostics.Debug.WriteLine(" call press ny button ");
SendsToServerForms();
}
void SendsToServerForms()
{
CallSending();
}
private void webView21_Click(object sender, EventArgs e)
{
}
}
}
Form1.Designer.cs
namespace sadoqwepoflkajsdhfkljhagsdljkhgasd
{
partial class Form1
{
private System.ComponentModel.IContainer components = null;
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
private void InitializeComponent()
{
this.webView21 = new Microsoft.Web.WebView2.WinForms.WebView2();
this.button1 = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)(this.webView21)).BeginInit();
this.SuspendLayout();
//
// webView21
//
this.webView21.CreationProperties = null;
this.webView21.DefaultBackgroundColor = System.Drawing.Color.White;
this.webView21.Location = new System.Drawing.Point(2, 0);
this.webView21.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.webView21.Name = "webView21";
this.webView21.Size = new System.Drawing.Size(621, 356);
this.webView21.Source = new System.Uri("http://mikhailk.ru/testing/msstore_prototype/game_prototype.html", System.UriKind.Absolute);
this.webView21.TabIndex = 0;
this.webView21.ZoomFactor = 1D;
this.webView21.Click += new System.EventHandler(this.webView21_Click);
//
// button1
//
this.button1.Location = new System.Drawing.Point(629, 0);
this.button1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(94, 80);
this.button1.TabIndex = 1;
this.button1.Text = "button1";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(720, 360);
this.Controls.Add(this.button1);
this.Controls.Add(this.webView21);
this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.Name = "Form1";
this.Text = "Form1";
((System.ComponentModel.ISupportInitialize)(this.webView21)).EndInit();
this.ResumeLayout(false);
}
#endregion
private void CallSending()
{
System.Diagnostics.Debug.WriteLine(" c sendin !! ");
this.webView21.CoreWebView2.ExecuteScriptAsync($"receivedFromContainer('we are send this p.s. LOS! ')");
}
private Microsoft.Web.WebView2.WinForms.WebView2 webView21;
private System.Windows.Forms.Button button1;
}
}
https://www.dropbox.com/s/r0tbvrlwiyt376b/sadoqwepoflkajsdhfkljhagsdljkhgasd.zip?dl=0 - downloads zip file with .exe files ( and all project )
https://drive.google.com/file/d/1_CoH4yfayrdKFpd5bL8vOHB2JQ0C27Eo/view?usp=sharing