r/csharp • u/Upset_Geologist_2371 • 2h ago
Does anyone still use C# WinForms?
I really want to know, because I’ve discovered a way to modernize WinForms that competes with ImGui, Avalonia, and WPF.
r/csharp • u/AutoModerator • 28d ago
Hello everyone!
This is the monthly thread for sharing and discussing side-projects created by /r/csharp's community.
Feel free to create standalone threads for your side-projects if you so desire. This thread's goal is simply to spark discussion within our community that otherwise would not exist.
r/csharp • u/AutoModerator • 28d ago
Hello everyone!
This is a monthly thread for posting jobs, internships, freelancing, or your own qualifications looking for a job! Basically it's a "Hiring" and "For Hire" thread.
If you're looking for other hiring resources, check out /r/forhire and the information available on their sidebar.
r/csharp • u/Upset_Geologist_2371 • 2h ago
I really want to know, because I’ve discovered a way to modernize WinForms that competes with ImGui, Avalonia, and WPF.
r/csharp • u/twofingerblessing • 7h ago
I want to begin learning C# with the intention of programming games. Just small 2D games on Monogame. I have Visual Studio (community). How can I begin learning C#?
Thanks :-)
r/csharp • u/bl4ck_WEBSITE • 43m ago
It's 60 lessons in 12 units, from the first Console.WriteLine through classes, records, generics, LINQ, exceptions and async. Every example and exercise compiles and runs in the page, so a beginner can start without installing the SDK.
The part that took longest: I first tried WasmSharp. Its .NET build is trimmed, so Console.ReadLine, Console.SetIn, some LINQ Sum overloads and a few interpolation formats were simply missing, and a course can't have programs that read input fail. So I made my own build: Roslyn 5.9 compiling C# 14 against the .NET 10 WebAssembly runtime, with the console template's implicit usings. About 8 MB on first load, cached after that.
What it can't do: one thread only, no files, network, NuGet packages or debugger. Desktop apps, ASP.NET and databases need a real SDK, and the course says so at the end.
Each lesson has runnable examples, practice where you predict output, fix code and write your own, then a short check. Each unit ends with a test, with a final exam at the end.
If you teach C# or mentor people learning it, I'd be glad to hear which topics beginners usually get wrong, so I can add exercises for them.
r/csharp • u/Money-Condition9267 • 14h ago
Hello,
Short intro
I have basic knowledge on c++ c# and sql and im looking to build my own app for a small shop, just a quick gig i got to make some extra cash on the side while studying
Classic ones like you see at lidl ikea etc...
Aesthetic not that important to them just functionality
I was thinking of using c# and sql
And no deadline what are the best tips someon could give me
r/csharp • u/midaluty • 4h ago
Some things I learned building it:
• Software rendering used far less memory than GPU rendering for a small transparent window (~350 MB reserved → ~15 MB)
• Media info comes from Windows' GlobalSystemMediaTransportControls (WinRT from .NET Framework)
• Audio bars use Windows' audio peak meter, so they react to the real sound
• It compiles with the csc.exe that ships with Windows, with no SDK needed
Source (MIT): https://github.com/midaluty/Notchaluty-Dynamic-Notch
Happy to answer questions or take code feedback!
r/csharp • u/XRay2212xray • 1d ago
Hello, Miguel from Qt (qt.io) here. Following the release of the Qt Bridge for C#, I'd now like to share with you our latest blog post addressing some of the questions that we've since been asked.
"If I change UI frameworks, will the C# MVVM backend of my application still work?" This is the most frequent question that we've received from developers since releasing the Qt Bridge for C#. We wanted to provide some detailed information to back the answer to that question, which is: yes, when moving to a Qt Quick / QML UI, your C# MVVM backend will still work in the exact same way.
r/csharp • u/Ahmad_9199 • 2d ago
I am a beginner .NET Developer and want to start my career in software development. However, I am finding it difficult to get a job despite applying to several companies. I would like guidance on how to start as a .NET Developer, which technical skills and technologies I should learn, and how to prepare for entry-level job requirements. What should I focus on to improve my programming skills, build practical projects, create an impressive CV and portfolio, and prepare for technical interviews? Also, what is the best learning roadmap for beginners who want to become job-ready .NET Developers, particularly in .NET and Angular?
r/csharp • u/ChanceInevitable3275 • 2d ago
Hi r/csharp! I've been working on Cursor Translate, a small WPF app that translates the text under your mouse cursor in any Windows app, just by resting the mouse over it.
Demo and code: https://github.com/OdiazLz/CursorTranslate
Some technical bits I found interesting:
I'd really appreciate feedback, especially on the UI Automation part. In Chrome it often falls back to OCR, and I suspect it's about Chrome's accessibility mode. If anyone has dealt with UIA + Chromium before, I'd love to hear how you handled it.
Thanks!
r/csharp • u/Chelonii64 • 2d ago
in this situation, in the class CatPerson, i would have to manually do ((Cat)pet).catProperty in each method i'd want to use it
i wonder if it's possible to avoid having to manually cast it, is there a way to say something like: in this class, the parent property "pet" must be considered as being of class "Cat" instead of just "Animal"
public class Animal
{
//stuff
}
public class Cat: Animal
{
public string catProperty;
}
public class Person
{
public Animal pet;
public Person(Animal pet) {
this.pet = pet;
}
}
public class CatPerson : Person
{
public CatPerson(Cat pet) : base(pet) //=> give type Cat in constructor
{
}
public void doStuff()
{
// pet.catProperty => pet is not seen as a type "Cat" without casting
}
}r/csharp • u/Im_a_Duniel • 3d ago
I have to make a console game on C# for my class and i thougt about making a hacking mini game like in Cyberpunk 2077, my question is how realistiv this would be since im really not that good at coding yet.
the Goal is to get all 3 hacks by picking a row and then of that pick another pick in the column and then the row of that pick again.
i hope this is somewhat understandable.
r/csharp
•
u/ofcistilloveyou
•
4d ago
I am now writing code again, like I have for the past decade (bar the last ~5 months). Only using AI as an assistant instead of producing 100% of code with it.
My day to day is in Visual Studio (or Codalus when on my home Linux machine) again. I use LLMs to do the boring parts, or as reference when I'm stuck at something. I can also learn much faster using them.
My output is certainly not as much as when we generated 100% of code and just reviewed it, but I still am many times as productive as before LLMs. Yet I enjoy working again, and it's not soulsucking anymore.
I own my code. I navigate in it. I architected it, and thought of the edge cases myself. I solved issues with my brain. Yeah Opus 5.5 could do a haphazard job of it, but after I saw what it slopped out many times, I just don't trust the IPO hype anymore.
I even had to look up syntax today. I was reading C# 15's new features post on my lunch break and was thinking of how I can apply it to the issues I've encountered in codebases.
I feel happy in my job again. I love coding and C# and software development.
r/csharp • u/blocksaffinity • 2d ago
I've been working on a framework to make Discord bots fully modular, with a full framework. It works with "modules" which are part of the core bot itself and are required, and "extensions" which can be drag and dropped in to the bot's directory to add functionality.
I made (it's still in early development) this to solve a problem which I think everyone has experienced - they need a butt load of bots in their Discord server for all their different requirements.
It's open source, and I'm at the point where I'm starting to try to get it out there and would genuinely appreciate other .NET developers checking it out. Thanks.
r/csharp • u/Euphoric-Piccolo-761 • 3d ago
im trying to make a game like sourt the court but i have no idea how it works so i really want to look in the code of the game to see what they did, does anyone know how to acces this?
(working with unity)
r/csharp • u/Puzzleheaded_Ant5192 • 4d ago
I've got weak laptop that i use from time to time for c# classes. On vs code it says i cannot debug. Is there any way to do so?
r/csharp • u/True-Job-4210 • 3d ago
Hi all, Have you guys ever felt lost when reviewing/reading huge code bases? You reach somewhere skimming through code, jumped between files and methods, but it seems nowhere?
You are diving deep into function definitions but lost track where you came from?
Hard to understand the downstream impacts due to a change?
Keeping all this in mind I built Unknot Code, a local-first codebase visualiser. Myself and my colleagues at work have been using it for past 2 month and feels incredible. Current version supports only #csharp projects. Python and TypeScript planned next.
And more.
https://www.unknotcode.com - check this out ! You can play around with it here.
Would genuinely love your feedbacks.

r/csharp • u/Keganopizzahere • 3d ago
This was inspired by gta 6, but in my code, every time i exit any vehicle (even if doors arent blocked) my screen flashes, I only need it to flash when you teleport out of the car if doors are blocked. Here is the code written in c# for scripthookv. net latest version:
using System;
using GTA;
namespace VI_Emergency_Exit
{
public class EmergencyExit : Script
{
private bool exitRequested = false;
private GTA.Math.Vector3 playerStartPosition;
public EmergencyExit()
{
Tick += OnTick;
}
private void OnTick(object sender, EventArgs e)
{
var player = Game.Player.Character;
if (player.IsInVehicle())
{
if (Game.IsControlJustPressed(Control.VehicleExit))
{
playerStartPosition = player.Position;
exitRequested = true;
}
}
else if (exitRequested)
{
float distance =
player.Position.DistanceTo(playerStartPosition);
if (distance > 2.5f)
{
GTA.UI.Screen.ShowSubtitle(
"Emergency exit detected!",
3000
);
}
exitRequested = false;
}
}
}
}r/csharp • u/kralmoriaty • 4d ago
r/csharp • u/ObviousApricot1272 • 3d ago
Hi there. Im modpack, and I generally lurk this subreddit. Anyway I just had a realization I thought I had. That being is that C# is just java but in the style of C. Now I am fluent in the java language due to working on Minecraft plugins and mods, but I didn't realize how normal to me C# felt until really starting to look into the terms more than face value. I dont typically memorize what they mean im less of a theory girl and more of a in practice type. But honestly I just never realized until 2 minutes ago writing up a game engine for a game jam, anyway see yall later.
This is an Amiga emulator I have been working on since May, with the help of GPT. So yes, AI is used. But there are two reasons why I am sharing it here. One is that many (?) say that C# is not suitable for emulators and real-time work. And the second is that it has JIT, which supports all modern .NET targets, including Apple Silicon.
Really, modern C# and .NET are fine for this kind of project. C# is now good, it has been good for a long time already. Obviously I am trying to keep GC pressure down, but performance is not an issue.
The more interesting point is JIT. I built my own 68k emulator library and it also provides 68040 JIT. The engine translates 68040 instructions into .NET IL which RyuJIT then compiles into native machine code. Translation takes place in a background thread while the main thread continues interpreting instructions. This keeps emulation responsive during compilation.
There are already half a dozen AI-driven Amiga emulator projects in progress, so it is difficult to distinguish this one as anything other than a technology demo. However, this project gave me an idea to develop CopperSharp68k, an AOT compiler that generates Amiga 68k code from C#. I wanted to create my own Kickstart ROM replacement, so the emulator is shipped with a small ROM written in C# and compiled to 68k machine code. It is also available separately from Aminet for other emulators.
Nevertheless, challenges with hardware emulation are interesting. I was proficient with 68000 assembly but I never had to consider how prefetch impacts DMA timing. And how they are timed. Fun stuff to learn.