Creating a scoreboard in windows form application [closed] - c#

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
Hello I am doing this project where I have to make a quiz with 50 questions and since I'm very new to programming overall, what is some way that I could make it so that when the right radiobutton is checked and the Next button is pressed add 1 to the score and then at the end show your total score.

Give it a shot, this isn't a difficult but if you're totally lost and looking for a bit of a push...
Create an empty form.
Place some some controls on the empty form the way resembling the way you want it to look.
Then add a click event handler to the next button.
Test to see which radio button is on and then increment the score if it is the correct one.

Related

How do I increment a label by 1? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
I want to make it where when you click a picturebox it adds to the label incrementing by one, like you click picture box 2 times, the label now says "2".
lblMyLabel.Text = (int.Parse(lblMyLabel.Text) + 1).ToString();
I'm assuming winforms from the picturebox. Parse the text into an int, then increase it, in your click event handler.

How can i use display information in a label acording to min and max values i put in a textbox c# wpf [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I want to display this information in a label.
If i put a number in the textbox between 50 and 60, I want the label to show "Good".
I hope someone can help me with this thanks.
At first add one button to your form. Then write below code in click event of your button:
int text = int.Parse(TextBoxName.text);
if(text>50 && text<60)
{
LableName.text="Good";
}

Textbox cumulatively added placement the value [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I want to ask a question. I am getting the data from database and when I write the texbox I want to add nearby entries under the textbox. Like searching on google. Sorry if there is any answer in forum. I don't know how i can search it on google.
It sounds like you want an AutoComplete textbox
http://www.c-sharpcorner.com/uploadfile/dpatra/auto-complete-box-in-wpf-toolkit/

C# copy function richtextbox with formatting [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
How do I make a button that allows me to copy like the ctrl+c function.
I want to select a part of a rich text box and when the button is clicked it copies the selected part. With formatting!
On button click event you should do something like:
if (richTextBox1.SelectionLength > 0)
// Copy the selected text to the Clipboard
Clipboard.SetText(richTextBox1.SelectedText, TextDataFormat.Text);

Changing tabs in C# code behind [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions must demonstrate a minimal understanding of the problem being solved. Tell us what you've tried to do, why it didn't work, and how it should work. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
When an event is fired from an element on one tab, how can I have the handler switch the view to a different tab.
I am looking for how to do it in C# code, not xaml. I have done research and cannot find a c# solution.
TabControl.SelectedIndex = <Integer index of the tab you want to display in the 0-based Tab array>

Categories