Trying to figure out why ocx file wont load form.
Program is able to run perfectly fine, but when trying to edit the form you get: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))Class not…
Why WebBrowser doesn't show up in toolbox?
I want to make an own custom web browser so i looked for tutorial, when i at the insert WebBrowser extension, it's not shown up. I tried to reset and added it again, but it shows up "Added sucessfully but can't see or use in designer". I tried…
Appropreate message to initiate window move with the mouse button up
Unfortunately I was asking the wrong way. I know how to move the form by setting its Location property. I have a working solution without p/invoke on github although quite convoluted for my taste. My question is "can I avoid this convolution by…
Microsoft point of sales for .net solution's can't create new PosExplorer Object
I'm Trying to use Microsoft point of sales for .net 1.14.1 version and trying to use it's Cash drawer capabilities for my Windows form application. But when i'm trying to create PosExplorer new object it throws "System.NullReferenceException:…
Multiple forms with common buttons
I need to create multiple winforms in an application with two buttons previous and next. When I click on the next button in a form the next form should open up. Similarly when I click on previous button previous form should open up. I don't want to…
Is control.TrayLocation in resource file is really required?
whenever I add a non visual control(tooltip, dataset etc) to windows form, an entry control.TrayLocation gets added in the resource file. is it really required? is it okay to delete this entry before checking-in into source control?
i cannot open windows default application?
i am trying to open snipping tool ,Paint and Notepad but attached will pop up.
how can my pc allow certain apps to work without ruinning my router?
hello so i have docker and another app and whenever i launch them the internet in the house stop working, some websites like telegram or so still work but other then that the internet doesnt work at all, my question is can i allow the pc in settings or…
The Application installed on customer not responding on developer environment working properly
My application working, with limitation of a beginner in Visual Studio C# programmer, working properly from 10 months. After last security updates of March the application not responding. I have developped three programs: the first program is a…
C# Webview2 WebMessageReceived event not firing anymore after update of MS Edge browser and Webview2 runtime
I am developing a WinForms project using VS2022 IDE. as per our requirement I am using Webview2 to embed the browser in our WinForms. web site load properly. my requirement was if user select any data from Webview2 at runtime then I need to capture the…
Visual Studio 2022 considering Desktop application as ASP.Net & generating errors
I have developed a desktop application using Visual Studio 2022. I then developed a web application ASP.net with Visual Studio 2022. Now, whenever I launch the desktop application, VS considers it an ASP.net application, and is generating errors by the…
l cannot find the Windows.Devices.Sensors Namespace.
l wish to access the Windows Ambient lights sensors on a windows forms app using C# but l cannot find the reference for system device sensors
System.ArgumentException: 'Password not Supported: 'trust server certificate'.'
SqlConnection conn = new SqlConnection(@"Data Source=<SERVERNAME>;User ID=erp;Password=***********;Encrypt=True;Trust Server Certificate=True"); This is the line of code where i get the error, i have tried taking off the Trust Server…
Toolbox has no items
Visual Studio 22 Windows Forms App has the following message in the Toolbox, "There are no usable controls in this group. Drag an item onto this text to add it to the toolbox." I have tried the reset toolbox and choosing items but neither…
ClickOnce Publishing Issues-Cannot Copy Files
I keep getting this error when publishing files. It does not matter if its to a local directory or URL server. The project builds correctly, and I can run the application. I have administrator rights to all locations. I've tried to delete bin an obj…
What is the alternative of GetWebLoginClientContext in the current PnP.Framework?
Following this issue, I have copied the code for GetWebLoginClientContext and implemented it in my project. However, I get this out-of-date browser error because the code uses System.Windows.Forms.WebBrowser which uses the old built-in browser. What…
C# windows form crash
Hi, I'm writing my Windows forms project in C# using the latest versione available of Visual Studio Community (17.9.3). The project manages a Modbus TCP client connection using the NModbus library to a proprietary and tested server. The connection is…