QUESTIONS & SOLUTIONS(RATED
A+)
What type of environment is used when creating a new project? - ANSWERWindows
Forms App (.NET Framework) in C#
First step after creating a new project? - ANSWERRename the form
Tools in the toolbox we have used? - ANSWERButton, Groupbox, Label, ListBox,
PictureBox, RadioButton, TextBox
How to change the forecolor property of a label to green? (via code) -
ANSWERlblX.ForeColor = Color.Green;
How to change the font property of a label to arial, 24 pt? (via code) -
ANSWERlblX.Font = new Font("Arial", 24);
How to change the front property of a label to Monospace, 12 pt? (via code) -
ANSWERlblX.Font = new Font(FontFamily.GenericMonospace, 12);
How to make the label invisible? (via code) - ANSWERlblX.Visible = false;
How to make the click event for a button? - ANSWERDouble click on the button in the
UI
How to put a number in the text property of a textbox? - ANSWERUse .ToString() to
convert the number to a string
Concatenation - ANSWERCombining strings using the "+" sign between strings
How to include quotes within a string? - ANSWER" /"[text]/" "
How to make block comments? - ANSWERUse /* and */ with the comments in-between
Acceptable characters to include in variable names? - ANSWERAny non-punctuation
character and underscores
Are variable names case sensitive? - ANSWERYes, variable names are case sensitive
What should variable names start with? - ANSWERAn alphabetic character
Properties we have used? - ANSWER(Name), AutoSize, BackColor, Cursor, Checked,
Font, ForeColor, Text, TextAlign, ReadOnly, Visible