SQL to JSON
Hi I have a stored procedure that returns data like: date1 number id Description date2 rowVersion date3 id2 Code Type date4 Owned RowVersion2 09/11/2018 17:57 123456 5566 Full description 09/11/2018 17:57 0x000000000T49G19B 27/12/2018…
Simple automation in C# web appliction
Hello, could somebody help us in following: 1) There is an WEB application in which via Search text box, we filter unique codes in column (ColumnName) in a form e.g., 12345 2) Upon having displayed found row of data from the database: 3) We must select…
C# endless list is filled and taken - concept with xml object
Hello, I receive a string that I have to buffer. Then process it in sequence. What is the best way to do this in C# WPF desktop? In the example, a number is incremented in the task. But I need to parse and process a passed string(XML). How is…
How to store and retrieve image using MVVM pattern in WPF C#
Please I am looking for a solid means to save and retrieve image to/fro SQL server database. I am using MVVM pattern in WPF. I have gone through everything I saw on Google concerning this issue, all I'm seeing is Image control being tied directly to code…
![](https://techprofile.blob.core.windows.net/images/NhkrylFCqEiUzgd3au5ONw.png?8D7FAD)
Get child windows of WPF wrapper from Windows Forms/ an other thread
Hello, I wants to activate (set foreground) a child window in Visual Studio (and any other WPF wrapper) from my windows forms app. I'm getting the handles by the following as mentioned in my previous post…
![](https://techprofile.blob.core.windows.net/images/bpqI_wINOUGg4BYYipkUVA.png?8D827C)
Everything is an error on VS2019 but not VS2017, why?
Hopefully someone can help, I have an android project, works fine with VS2017, but when I open it in VS2019 everything is red(ie: The type or namespace 'System' could not be found...). All the references are shown with a yellow icon, unless I click on…
INotifyDataErrorInfo implementation for several values, check that there are no errors in Dictionary (WPF MVVM)
I have been trying to implement INotifyDataErrorInfo and everything seems to be working except SaveSettings() and especially bool HasErrors. Can somebody please tell me why and how to fix it? I mean that SaveSettings is always triggered, even if there…
Web request not going through with TLS 1.2 enabled in registry in C# application
I have a C# windows application and I am trying to make a web request on a URL using HttpWebRequest. I have enabled TLS 1.2 in the registry at below location …
How do I pass DataGridView selected row value to TextBox in another form?
hello all , i am very new to c# I am creating a small data entry application using WinForms and MSSQL database , In this i need to pass Datagridview selected row value to the textbox , combo box in another form? the datagridview form:…
![](https://techprofile.blob.core.windows.net/images/IWrejgBABgAAAAAAAAAAAA.png?8D8A0F)
cryptographic service provider (CSP)
Hi Initializes an instance of System.Security.Cryptography.MD5CryptoServiceProvider. it's work in source code run. but after compiler my code and run exe file not work under windows 10 64bit. public static string EncryptPassword(string s) { …
![](https://techprofile.blob.core.windows.net/images/IWrejgBABgAAAAAAAAAAAA.png?8D8A0F)
![](https://techprofile.blob.core.windows.net/images/CL9sTc5zkUClnOVlnXO8DA.png?8DC921)
disable button for user login in winforms
in my winform application , i have 3 forms , Login form Main form Data entry form when the login is "User" , Main form should open , but in the childform "data entry" - "button1" should be disabled. when the…
![](https://techprofile.blob.core.windows.net/images/7ca689de67ca4855a0ed985ff5add70e.png)
C# Interop.Excel AddIn Error
Run Excel.exe Run C# Program -> Interop.excel ![50303-image.png][2] My SourceCode Excel.Application excel = new Excel.Application(); Excel.Workbooks workbooks = null; …
What to do with its Java Native Interface library file in its filepath?
I have installed or unzipped the Java Native Interface or JNI library onto my desktop. What I want to perform next is how to reference its file path within the Xamarin IDE in Visual Studio. This question applies to the following: Visual Studio 2019…
C# Xamarin Forms InAppBilling PurchaseAsync not returning after handle of playstore
I am using jamesmontenegro InAppBilling and I have a small issue regarding payments. The code is working fine but after the payment is handled by Google Play Store, the app doesn't handle the procedure and doesn't return if the purchase was successfully…
Check if Checked doesn't work
Why doesn't this work? if (postonly_check.Checked) { fee_double = 0.025; } I researcht and anybody said that postonly_check.Checked works.
get data from sql table throwing null exception even when try block is present
In my WinForms app, i have this below code which fetches the lot number from MSSQL table when the button is clicked , private void getlotnumbers() { try { SqlConnection con = new SqlConnection(cs); …
How to read Excel Marco (.xlsm) file
Hi all, I have code like below to read Excel Macro (.xlsm) file; Microsoft.Office.Interop.Excel.Application objExcel = new Microsoft.Office.Interop.Excel.Application(); object missing = Type.Missing; …
Clickonce update problem
I'm not good at clickonce so I need help to solve my problem. I made a application, and I trying to deploy my app via clickonce. But, I do not want to auto update by clickonce.(this clickonce from .net framework folder) So I uncheck all of…
how to use http listner in windows forums c# app
Hi, I am trying to convert twain(windows forums) into API using HTTP listener in windows forums. But my window keeps freezing. I believe my code is not sending event messages to a main window handle forum when a window is created on that thread when…
Set foreground of child window in Visual Studio
I want to set the foreground of a window in Visual Studio. What i've tried: When i have 2 windows "docked" side by side i can't set the foreground of a window under the mouse in VS. I'm using GetCursorPos and WindowFromPoint which usually…