C
C#2y ago
bixen7135

I have some problems with the code, I chose the console mode.

It says that the modifier private and public invalid for this element, besides it is written that an identifier is required?
26 Replies
Angius
Angius2y ago
You either a) need a class b) need to remove the access modifiers
bixen7135
bixen7135OP2y ago
Angius
Angius2y ago
Is this Winforms code? If so, why did you remove the class? And why are you trying to run it as a console project?
bixen7135
bixen7135OP2y ago
Someone said that you can start from the console, I don’t understand this at all
Angius
Angius2y ago
Well, yes, if you want to start learning C#, using a console project is recommended If you don't understand it at all, as you say, start learning from the basics Don't go trying to make some random code run
bixen7135
bixen7135OP2y ago
I'm learning c++ and this is just my c# homework which i don't understand, i just need to make it work, what should i do friend?
Angius
Angius2y ago
Learn If it's your C# homework, well, you're going to fail it Tough You win some, you lose some
bixen7135
bixen7135OP2y ago
I need this or I will be bad in every sense, it's like project work at school, and I run out of time on Monday
Angius
Angius2y ago
You're not going to learn Winforms in two days, I'm afraid
bixen7135
bixen7135OP2y ago
What is winforms?
Angius
Angius2y ago
Ah, so you don't even know what the homework is about Winforms is a GUI library for C#
bixen7135
bixen7135OP2y ago
English is not my native language, I use a translator
Angius
Angius2y ago
The code you sent, comes from a Winforms project "Windows Forms" as it's formally called
bixen7135
bixen7135OP2y ago
So what should I do?
Honza K.
Honza K.2y ago
what's the assignment of your homework?
bixen7135
bixen7135OP2y ago
This is the use of the database in the development of the project. For example, we need to create a simple system for taking into account the grades of students in the 10th grade parallel.Create a database using MS access. You need to make a working interface and connect the database in OOP in c#. The form should contain the following components: TextBox, ListBox, Button, Label.
bixen7135
bixen7135OP2y ago
Anyone understand something?
Honza K.
Honza K.2y ago
yup, did you attend your programming classes?
bixen7135
bixen7135OP2y ago
Yes, but I only know C++ and have some idea about python, html and css never worked with c# before I broke my leg when we were studying c# and ended up in the hospital. I needed to study online, but there was no way
Honza K.
Honza K.2y ago
did you pay attention in your classes? 😄 because they would not give you this type of homework without previous c# (and winforms) lessons...
bixen7135
bixen7135OP2y ago
I can work in MS-ACCESS but I don't have any knowledge in c#
Honza K.
Honza K.2y ago
I think this time you gotta accept this "You win some, you lose some"
bixen7135
bixen7135OP2y ago
But I need to find a solution to this problem within this day or I'll be fucked. Hopefully this won't happen in the future. So who can help this person in a difficult situation?
Honza K.
Honza K.2y ago
IAmTimCorey
YouTube
Intro to Windows Forms (WinForms) in .NET 6
Windows Forms, also known as WinForms, is one of the original project types in .NET. It is designed to be a rapid application development environment for desktop applications. Over the past twenty years, other desktop application types such as WPF, UWP, and now .NET MAUI have come along. So, when would we use WinForms? In this video, I am going ...
Angius
Angius2y ago
How did you get a C# homework if you never worked with C#?
bixen7135
bixen7135OP2y ago
I had health problems when we studied 'c#' thank you from the bottom of my heart bro
Want results from more Discord servers?
Add your server