C
C#

A question for my c# winforms project

A question for my c# winforms project

Kkaan20k11/20/2023
hello guys, i have a question about my c# winforms project. So : I have 2 Projects the first Project is the Login and the second Project is my Dashboard, how can i do that the form from the second Project opens when the login is succesful.
No description
ZZacharyPatten11/20/2023
1. Generally you use projects to isolate and/or share code between other projects. You don't want to make a separate "project" for every form you make. You can easily have multiple forms in the same project 2. Although hiding forms is an option, I would recommend constructing a login form, showing it, and then closing it, and then opening your main form (essentially don't keep the login form running but hidden in the background if not necessary). There can be issues when you do that, like when you show the logon form again it could be pre-populated with the previous credentials if you don't clear it. And if you don't clear it after logon, you have a hidden form with credentials in the background, and various apps and hackers could technically find the credentials throughout the user's session 3. I don't know what kind of project this is (school, educational, personal, etc.) but keep in mind that Winforms is considered a bit outdated and most people recommend other options if possible. But if you are still prototyping, nothing wrong with starting in Winfroms to prototype. 4. In order to use code from other projects you just add a "project reference" to your project. You can do that by right clicking the "Dependencies" under your project in Viosual Studio and choosing "Add Project Reference". That will add a project reference in your .csproj. If you are not using Visual Studio you can just add the reference directly in your .csproj. But again... you don't want to make a new project for each form. that is overkill and unnecessary
BBuddy11/20/2023
What are you making?
MMMayor McCheese11/20/2023
TBH you have to push me pretty hard to make a new project. It needs to solve a technical problem, and usually new projects are used for organizational structure.

Looking for more? Join the community!

C
C#

A question for my c# winforms project

Join Server
Want results from more Discord servers?
Add your server
Recommended Posts
YO I NEED HELP writing a code need advice not for u to write it for mewrite me a c# program that get 3 latters and tell if they are by the order like abc if they are backBlazor ServicesI dont know too much blazor, but I have a .cs file in a /Settings folder, in which I would like to aHow to optimize this?I have following: ```cs using System; namespace SquareCalculus { internal class FigureTriangle In VSCode, SDK not Recognized on ChromeOSHi. I just installed the .NET SDK and the Runtime by following the instructions for Ubuntu on the MiNito.AsyncEx vs DotNext.ThreadingWe're currently searching for a nice AsyncAutoResetEvent implementation. We found two suitable impleSequential BlinkersHello everyone! I bought these sequential blinkers that run off an stm32 blue pill board. the only pTrying to use Microsoft.Kiota namespace but not found when importingI am trying to use this method from the Microsoft.Kiota.Abstractions.Extensions namespace: ToFirstChWinUI3 Scheduler CalendarViewhello im trying to make a winui3 calendarview interactive calendar where I can predefine dates in myThe call is ambiguous between the following methods or properties: 'Thread.Thread(ThreadStart)' andi have to upload by filesHelp a noobie out with a simple hangmanHi! New to coding and I need some help to solve this problem. Shall I save the words to a list? AnyC# Image Resizing on Visual Studio CodeI've tried both ``newPic.SizeMode = PictureBoxSizeMode.StretchImage;`` and ``newPic.SizeMode = PictuI'm stuck,visual studio 22, I need help making my invaders/enemies move left to right then downI’m trying to get my invaders/enemies to move left to right then down like in the game space invader✅ Where should I store all the sensitive file on .NET project?Hello everyone, May I know where should I store all the credential files that needs to be used by .Unity CodeI have been trying to get my C# code to work in unity for about a week and I am officially lost. I'v