How to translate this programm to C#??
import java.io.IOException; import java.net.ServerSocket; import java.net.Socket; public class Server { public static ServerSocket socket = null; public static void main(String[] args) { try { socket = new…
code to open form from toolstrip, same code yet among one code cannot .show();
private void userToolStripMenuItem_Click(object sender, EventArgs e) { frUser user = new frUser(); user.Show(); } private void categoryToolStripMenuItem_Click(object sender, EventArgs e) …
difference between NETStandard.Library and Microsoft.NETCore.App?
I wanted to know the difference between the NETStandard.Library package and the Microsoft.NETCore.App package. I tried to look up documentation but it's all very broad or they sound very similar saying both packages are a set of .NET API's. Is there a…
Ayuda con programación de ComboBox en C#
Hola, muy buenas. Contextualizando un poco, esto desarrollando una aplicación en WF con el lenguaje c#. Ahora bien, estoy desde hace un par de días en una situación que no me deja avanzar. Resulta que dentro del Form tengo un comboBox del cual obtengo el…
saving data from 2nd form to the same master table in win form application
I have two winforms where form 1 is used to enter data from first seven fields and other forms is used to enter for last three fields , where i have the table stored in MSSQL server ,Now when i try to save the last three fields i am getting below "…
Sharepoint Online - CSOM search KeyWordQuery document not appear
Hello, I'm doing a search in Sharepoint with CSOM, some documents are missing, otherwise if a do the same search directly over Sharepoint this documents appear.... I already check Query Source, crawled properties, syntax, etc... need help. …
How to validate windows local users using c# ?
Hi, I am using below code to validate but it is working for few users and it is not working for few users.please help me to resolve this issue. public bool ValidatePassword(string userName, string Password, ref string errorMessage) { errorMessage =…
How to activate Online Speech Recognition on Single-App Kiosk
Hi, I would like to know how to turn on the Online Speech Recognition on an Single-App Kiosk session ? My goal here, is to be able to access the Touch KeyBoard Speech-to-Text feature through an UWP' application.
Console App (Non UWP) with CS/WinRT
Hi I have created a Console App (NonUWP) that use CS/WinRT I was able to access WinRT API like Windows.Devices.Custom but the problem is that await is not working for me, I'm getting errors. i can worked around it using GetResults() but it is…
Create custom monitor
Hi All, I have a requirement like I have to monitor for one event for maximum 1 minute if the event comes within that time I can continue. Otherwise make it as failed. This I can do using auto reset event. But I have one more requirement if its in…
Deserialize json using JavaScriptSerializer
Hi, I am trying to parse a json string and write it into a table using JavaScriptSerializer() in SSIS Script Task C#. { "events": [ { "Id": 456895, "Name": "Chelsea - Arsenal", …
System.EntryPointNotFoundException: Unable to find an entry point named 'PldaMemoryWrite32' in DLL 'PLDA.dll'.
Hi, I am using C# application with DLL library source code for one of my project. I configured both for 64bt system and tested in windows 64 bit supported board, there it was working fine. But when I configured both for 32 bit system and tested…
How can i disable my C# application proxy server error
I am using a proxy server on my C# app. If the app is running, the proxy server is active, if app is not running or crashed, I can disable proxy server but some users can shutdown computer without closing my app. When the computer is turned on, then…
How do we maintain next row of data column and save those report in particular path using c#
I want to maintain employee report who have not been regularized in office in and out. for that, we have to update empolyee reason row by row of every employee. one employee will have many reason. for example, String Reason1 = "Not…
Should i use Select and Aggregate?
Hello, I used Select to test two variables in my calculation. It returns 2 answers but only one is adding to the list. var listm = new List<double>(); listm.Add(Close.GetValueAt(CurrentBar)); listm.Add(nearclose); var fibo2list =…
.net 5.0 seems to be wrong in detecting zero-terminzted string
The following code: class Program { static void Main(string[] args) { const string s = "abc"; const string sz = "abc\0"; void Report(string str) =>…
There's a problem with this formula with Excel Scenarios in C#
I am using Microsoft.Interop.Excel to collect summaries from different scenarios in a specific worksheet. C# Code: using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; …
method takes any enum
hi how to get this functionality: public static void GetEnum(string txt, out Enum result) { Enum.TryParse<value.GetType()>(txt, out value); // error } thanks in advance
Binary NOT in c#
Hello I have a misunderstanding issue...if you can please help me. I get a binary number: 110 for example, in string format and I want to apply the not ~ operator and get 001. I try to convert it to sbyte or byte but for "1" I get 49.…
Windows Forms C# application - Automatically handle DPI Scaling when a user sets the display to 125% or 150%
We had designed a Windows Form application such that it is suitable for all the resolutions. We came across a situation where the applications appear to be incorrectly sized when the user chooses 125% or 150% in the machine display setting . I have set…