Datagridview insert new Row after First
Hi, Please I need help , as I am using datagridview when user press enter key its move to next cell instead of new to new row when its reach to last cell upon user enter key on last cell or row its move to new row, the following code is insert new row…
How do we handle Data Row and its column value in another procedure class file from data table using c#
I have employee data table. In that, every row contains more than 100 columns. It's very difficult to handle the same main page all the columns of every row. In that case, Hoe do we pass all column values for processing in separate procedure…
directoryInfo.CreationTime
How do I get the directoryInfo.CreationTime and the Filename in the ListBox (FileList) with Item Text and the Value. I want to display the filename and need the date for something else. private void BindFileNamesToList() { string…
Task.Run without wait ?
In .NET core 2.0 application, have requirement to run task in a background. 1 option is to use IHostedService, However can use Task.Run(() => DoSomething(a,b,c)) without wait ? I got to know it is risky, as if any exception occurred in the…
![](https://techprofile.blob.core.windows.net/images/7ca689de67ca4855a0ed985ff5add70e.png)
I need a parameter that implements multiple interfaces,How should the code be represented?
interface IA { int DoA(); } interface IB { int DoB(); } These are two interfaces. My method needs to implement the parameters of both interfaces. Is there any way to restrict the caller? I've thought about a lot of things That I can think…
How to invoke an API
Can anyone help me....... I'm a fresher and I'm unable to invoke an API in C# code. Could anyone give an answer for this question.
Visual Fox Pro oledDB provider error "No value or one or more paramter required" in reading DBF ukranian files in execute reader()
Dear Team, We are using VFPOLEDB data provider. We need to read the DBF file and convert this into CSV file. we are using VFPOLEDB.1 data provider to read the ukraninan file name ПолесьеПродукт_Товары.DBF. While executing line execute reader(), we are…
algorithm find how long each segment of a path will take at a constant speed
Hey guys! so I have a little issue I am trying to solve. my concept has a picture box where you can add points to a list List<pointf>, and it draws the lines as a path on the picturebox. however now I need to work out for an imaginary…
Console App (.NET Core) Issue
My new organization has an internal web app for product maintenance and reporting. A server was changed out and parts of the app need to point to the new data source. I updated the IP address of the existing connection to point to the new server in…
Add Multiple control type in DataGridView in winforms c#
Dear Friends, I want to display the DataGridView like below in winforms c#
How to make edge browser show in front of my UWP app?
Hello, This issue was related to UWP app and c# console application. I made a simple server by using c# console application. And my UWP will run in full-screen mode and connect to it. My console application will start a process to open the edge…
Stored procedure called once, but executed twice.
I'm using System.Data.SqlClient.SqlCommand.ExecuteNonQuery() to execute a stored procedure in SQL Server 2012. From my application log, this execution has been called only once (it writes log for each calls), but, I realized the store procedure…
AES-256 Encryption
Hi, I Need to know is there a common AES-256 algorithm which support Encryption and decryption from Both C# and SQL server ? 1) Master Key 2) Certificate 3) Symmetric Key 4) EncryptbyKey Above are already in place in the database for specific…
C# method listbox or combobox as parameter
Hi all, First time at MS Q&A I am using VS2015 and C# I have code that loads data into a listbox. No problem, it work fine. Now I need a second method that loads the same data into a combobox. I recall that there was a way to pass the list…
C# Console Delete Directory With any username
Ok so basically I am making a spoofer to unban you from FiveM and its going good and it works but not everyone is gonna have my username on my desktop so for example if its C:/Users/nicov/ and theres is C:/Users/richard/ it wont delete the folder for…
![](https://techprofile.blob.core.windows.net/images/_5e-jRvlCkWlkMrV8cdbJg.png?8D8365)
Get SCCM Software Center Applications using CIMSession
UPDATE : @TimonYang, First of all thank you for your quick reply! Regarding to the error, if you didn't import the required reference yet, you should import it from : …
HttpWebRequest.BeginGetResponse method
Hello. I have carefully read the code example at https://video2.skills-academy.com/ru-ru/dotnet/api/system.net.httpwebrequest.begingetresponse?view=net-5.0#----------- and tried to run it. It worked fine, but i wanted to test TimeoutCallback (when…
Avoid "src" in autonamatic namespace
Hello, is still necessary to have "src" included in automatic namespace? I found this topic was solved years ago here: …
question about Static method/class with where T : class,new(), what does it mean
Hi I am studying an example project and one class is like this: public class ClassDB<T> where T : class,new(), { public static IEnumerable<T> ExecuteGetList(T whereModel) } And in another class(classA) , the code is …
Direct access to object properties from another window without creating a new window
Hi First and foremost, I apologize for my grammatical errors; my first language is Persian (Iran). In my project (WPF) i have many windows. in window form i have no problem to access object property from Another window With following codes for…