|
I want to create a traffic laws application by using winforms and c# but I don't know how to start !
Can you help me please
|
|
|
|
|
You will have to elaborate the idea further.
What will the application do? How will it work?
|
|
|
|
|
the application must contain tests and each test contains 30 questions and you must answer each question in a period of time after finished the test you get your score and the correction
|
|
|
|
|
Well you could use text and pictures on the win form to ask questions. Then have radio buttons for multiple choice questions or checking for different words in the questions that have a specific text answer.
Add to that a few buttons for back, next and finish.
I suggest you try to look at this first if you are new to C# and Win Forms:
MSDN tutorial[^]
I would start by making a form and trying to put in pictures/text, then forward and back for questions.
Then make one question and try to finish the quiz and show score and if the question is right or wrong. After that just add questions.
Hope this helps at least a bit. Have you tried anything yet ?
What is troubling you with starting the app ?
Make a plan what you need and how you would like to make it, sometimes that helps.
|
|
|
|
|
You start by PRECISELY defining what you mean by "traffic laws applications" and then you move on to exactly what this app is supposed to do, what it's features are going to be, and then building a very detailed list of requirements.
|
|
|
|
|
You're going to need a database to store all of the tests, their results and a Win Form to store the form that would be used as a question and answer sheet. You can use the Controls of the Win Forms to create the UI for the user to interact.
Once done, you can easily store those values in any data source. From JSON to SQL Server, any other data source can be used to store these values in. You first need to have the logic of how you're going to develop the application, then you can continue... MSDN (and Google) would be a great friend for your programming journey.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
Hire someone to do it for you?
But seriously, put yourself in our position, how would you react if I would ask eg ?
I want to create an application to tune my music instruments by using winforms and C# and I don't know how to start!
Can you help me please
Please read the forum guidelines and improve your post.
|
|
|
|
|
I m working on augmenting reality project i have been stuck between this i wont be able to place 3d image on live face please do guide me
|
|
|
|
|
What have you tried?
Where are you stuck?
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Im not very good at LINQ (yet), but I understand that I by using the LINQ extension methods in the Enumerable class can do like this to get the largest value in the sequence:
List<int> lst = new List<int>() { 1,2,3,4,5,6,7,8 };
int max = lst.Max();
But what if my List looks like this?
public class MyClass
{
public int Id { get; set; }
public MyClass(int _id)
{ Id = _id; }
}
List<MyClass> lst = new List<MyClass>() { new MyClass(1), new MyClass(2), new MyClass(3) };
I want to get the Id value from the instance with the highest Id value. Im under the impression that I should write a MyClass method and pass it to the Max(...) extension method, but I cant seem to figure out how it would be done. Anyone?
modified 19-Jan-15 5:16am.
|
|
|
|
|
I solved it by myself, turned out it wasnt so complicated.
int m = lst.Max(mc => mc.Id);
|
|
|
|
|
If you only want the value of the maximum ID, you can use either:
int maxId = lst.Select(x => x.Id).Max();
or:
int maxId = lst.Max(x => x.Id);
If you want to get the instance of MyClass which has the maximum ID, you'll need to implement the IComparable<T> interface[^]:
public class MyClass : IComparable<MyClass>
{
public int Id { get; set; }
public MyClass(int _id)
{
Id = _id;
}
public int CompareTo(MyClass other)
{
if (other == null) return 1;
return Id.CompareTo(other.Id);
}
}
...
MyClass maxId = lst.Max();
Unfortunately, there isn't an overload which takes an IComparer<T> instance[^], so if you need different sort orders in different situations, you're stuck with writing your own Max method.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Hey there.
I am thinking of writing a little real time game using ASP.NET SignalR.
Unfortunately I have no experience with it whatsoever.
Obviously there will be a database in the background. Let's say we have a table in the background which holds a list of events with userid/creationdate/title. How would I let my user know in real time? As in, event gets added -> immediately send data to user?
I don't need code or anything, I just want to grasp the concept.
|
|
|
|
|
Angelika S Michel wrote: I don't need code or anything, I just want to grasp the concept. Documentation here[^].
Angelika S Michel wrote: I let my user know in real time? According to the website, you can "push" the client a message. That can be done without having a database.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
That didn't answer my question in any way.. I know that I can push messages. The question is how do I push a message right when a new entry in the database appears.
|
|
|
|
|
The documentation does not say anything about detecting changes in a database; you'll have to do that yourself. You can send or broadcast messages if you detect a change. Examples are here[^], but the ShootR-example shows lots more detail.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
private void comboBox2_SelectedIndexChanged(object sender, EventArgs e)
{
if (ddl_CircularType != 'Send to Individual')
{
ddl_Department.Enabled = true;
}
else if (ddl_CircularType !='Send to Particular Department')
{
ddl_Department.Enabled = true;
ddl_EmployeeID.Enabled=true;
ddl_EmployeeName.Enabled=true;
}
else if (ddl_CircularType = 'Send to All Employee')
{
ddl_Department.Enabled = true;
ddl_EmployeeID.Enabled=true;
ddl_EmployeeName.Enabled=true;
}
}
|
|
|
|
|
You have asked this also here[^]. Please do not repost.
|
|
|
|
|
sorry for that i am new on this website
ando i dont get answer then i post again
|
|
|
|
|
You have to have patience. Also it's important that the question is clear and well explained. This helps people to understand your problem and give good answers. I see OG has already given you a suggestion so I hope that helps
|
|
|
|
|
|
hari om singh wrote: i dont get answer then i post again
No, don't. It won't help you, it will just annoy people: we don't like duplicated work. And annoying people you want help from is normally counterproductive.
Bear in mind it is a weekend, so most of the Western world is not at work today - this understandably slows responses...
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
i say sorry for that i dont remembre wekend
|
|
|
|
|
OriginalGriff wrote: Bear in mind it is a weekend, so most of the Western world is not at work today
This kind of activity doesn't count?
|
|
|
|
|
Well, Nagy is in bed hungover, DD is scheming to get his hands on the planning applications committee, and everybody else is being forced to do what their Significant Other has planned for the day...
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|