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
You either
a) need a class
b) need to remove the access modifiers
Is this Winforms code?
If so, why did you remove the class?
And why are you trying to run it as a console project?
Someone said that you can start from the console, I don’t understand this at all
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
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?
Learn
If it's your C# homework, well, you're going to fail it
Tough
You win some, you lose some
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
You're not going to learn Winforms in two days, I'm afraid
What is winforms?
Ah, so you don't even know what the homework is about
Winforms is a GUI library for C#
English is not my native language, I use a translator
The code you sent, comes from a Winforms project
"Windows Forms" as it's formally called
So what should I do?
what's the assignment of your homework?
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.
Anyone understand something?
yup, did you attend your programming classes?
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
did you pay attention in your classes? 😄 because they would not give you this type of homework without previous c# (and winforms) lessons...
I can work in MS-ACCESS
but I don't have any knowledge in c#
I think this time you gotta accept this "You win some, you lose some"
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?
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 ...
How did you get a C# homework if you never worked with C#?
I had health problems when we studied 'c#'
thank you from the bottom of my heart bro