#csharp

  1. I

    Get folder size/ACL from millions folders

    hello googled some on stackoverflow...etc - but too old info sometimes i need to get folder size/acl for millions of folders powershell is working, but its too slow - and it uses a lot of ram even without putting all object to ram so - what .net methods/classes should i use in 2023?
  2. melihxrist

    Resolved Move File Into Program (for Auto-Update)

    Hello forum members, I'm developing a launcher for a game. I have completed everything, the required version control system, the download system of the new file that will change, the process of extracting this file after downloading, etc. But I only have one problem left. The game's files are...
  3. A

    UnityContainerExtension in Mirosoft.DependencyInjection?

    Hi I am converting my code from unity to Mirosoft.DependencyInjection and I am facing some errors what is the alternate for UnityContainerExtension in Mirosoft.DependencyInjection as it is used in unity alternate for :- _container.RegisterType<TInterface, TImplementation>(name...
  4. E

    pass binding info to another window

    Good afternoon i have a login system that does not use sql it uses a php database on my webserver, what i am trying to sort out is logging in managed to do that fine, but i am trying to retrieve the login information ( aka username ) from the txtbox in wpf and when user logs in it displays...
  5. Jfisher387

    certain rows not updating data in a DGV?

    Hello all, Working on inventory software for in house use at my machine shop i work at. I have been working on this and learning c# for over a year now. Still a long road to go. Currently I have a DGV that we perform transactions on to change the qty of our in house tooling. and if it falls...
  6. karcs

    Resolved How do i cast a string type to a class type ?

    here is the ERROR MESSAGE:- Unable to cast object of type 'System.String' to type 'query' public static Xxl.Query QueryBySize(string SizeNo) { Query result = new Query(); result.SizeInfo.SizeCode = "Xxl"; Xxl.Query result1 = new Xxl.Query()...
  7. G

    Resolved using Project.FolderName is not working.

    I have this visual studio c# wpf program that I created a year back using online tutorials and stuff and I need to add more stuff to the project. But lot of stuff I dont remember so I am trying to just copy paste and edit it. But here comes the first problem. So in the solution explorer under...
  8. MonsterMMORPG

    My C# and ASP.NET Core MVC Lecture Videos

    Hello everyone. My name is Furkan Gözükara. I am a Ph.D. computer engineer from Turkey. I have a software engineering dedicated Youtube channel named: SECourses : https://www.youtube.com/SECourses I want to share a few of my lecture playlists. The playlists contain the full course for free...
  9. Automation23

    Resolved Establishing database connection with a using statement c#

    Hello everyone! I have two separate methods that open the connection and close it. But I need to implement a using statement. How can I establish the connection with a ‘using’ statement, so then I can implement database methods, validate the results, and then close/dispose the connection...
  10. L

    I'm looking for reviews for my code

    I'm a C# beginner and I don't really know how good my program is. I wrote a program that shows the user the weather at their location. I would be very grateful if someone would read it and give me a rating. you can find it here: https://github.com/LukasEber/WeatherApp
  11. M

    Question Are INotifyPropertyChanged and ValidationRule compatible?

    In my GUI I have a TextBox whose content can be edited at any time by the user and must be known in the code that has to use its latest value. The TextBox is already bound to the procedure that checks its content is in the proper range: <Window.Resources> <local:DoubleRangeRule...
  12. M

    Is there a C# code to read and display Excel sheets?

    I have been asked to do something to read and display excel sheets. If I was using MatLab it would be a piece of cake. Unluckily there is no MatLab license in the hospital where I work. I found a posted C# code. I downloaded and unlocked it. Unluckily when I compiler I got a lot of errors...
  13. L

    Resolved Blazor get html element using c# code

    I wanna build a Tic Tac Toe Blazor game. To print the fields I am using html buttons and a foreach loop: @if(MatchField != null) { @foreach(var field in MatchField) { <span> <button @onclick="() => PrintSymbolOnButton(field)" >...
  14. G

    Question string variable broken

    So, I'm using this bit of code in "Visual Studio Code" and it keeps saying: "Converting null literal or possible null value to non-nullable type." string name = Console.ReadLine(); This is the bit of code I am using and it should work fine! Please help me!
  15. toto_sharp

    C# which version to learn?

    Hi all, I've recently started learning c#, my question is which version of c# should I start learning?
  16. msaaaddev

    Question Can software in different cities uses the same database to store data?

    Hello Friends, I want to ask that can software in different cities uses the same database to store data. I am new to c#. I want to know if I develop software in c# and then install it in different cities(branches) of same company can I use the same database for all running software in different...
  17. DominusDRR

    Is there a way to get the MAC address of a device on a network based on its IP address? (C# & Android)

    Hi. I have an application made for Android in C #. I'm trying to get the MAC address of a remote device using its IP address as follows: public string GetMacByIP(string ipAddress) { try { // grab all online interfaces var query =...
  18. S

    linking API calls to buttons in my html document. (electron)

    So ive been given a task to link api calls to the frontend, however when I attempt to call the method using the "onclick" function nothing is happening. I've loaded the Javascript file within the head of the html document and also input the function name but still nothing is happening. Can...
  19. C

    Document presence recognition algorithm

    Hi All, I am trying to implement an algorithm for the detection of the document presence in C# ( with .NET Framework 4.6.2). There is a document holder where the document is inserted. The document holder background is red. In front of the document holder there is a camera that takes a photo and...
  20. sachin Shrestha

    What is Guidline For Vertical Spacing in c# When to do it asp.net actions

    Guidlines for Vertical spacing in c#
Back
Top Bottom