How can I disable the right-click context menu in my textboc?
A -
You can set the DisableMenu property of the TextBox to true
B -
You can set the ContextMenu property of the TextBox to a dummy, empty ContextMenu instance
C -
You can set the IsMenuContextEnable property of the TextBox to false
D -
You can set the ContextMenu property of the TextBox to a null string
2-
How do you set the default button button1 for a form Form1?
A -
Form1.ButtonDefault = button1;
B -
Form1. DefaultButton = button1;
C -
Form1. IsDefaultButton = Form1;
D -
Form1.AcceptButton = button1;
3-
How can I turn off editing in the textbox portion of a ComboBox, restricting the user to
selecting only those options in the drop list?
A -
et the comboboxs DropDownStyle property to DropDownList
B -
et the comboboxs Edit property to false
C -
et the comboboxs Enabled property to false
D -
et the comboboxs DropDownStyle property to NoneEdit
4-
How can I trigger a button (button1) click event from a sub/function?
A -
button1.Click();
B -
button1_Click();
C -
button1.PerformClick();
D -
Exec button1.Click();
5-
How can you use a TextBox to enter a password with * character?
A -
Set the TextBox.PasswordChar property for the textbox to *
B -
Set the TextBox.IsPassword property for the textbox to true. Set the TextBox.PasswordChar property for the textbox to *
C -
Set the TextBox.Password property for the textbox to true. Set the TextBox.PasswordChar property for the textbox to *
D -
TextBox can not use to enter password
6-
How do you change the mouse cursor for a control?
A -
Change the MousePointer property
B -
Change the Cursor property
C -
Change the MouseCursor property
D -
Change the MouseIcon property
7-
How can you have a form with no title bar, but yet keep the resizing borders?
A -
Set your forms Title and Resize properties; myForm.Title = Titlt.None; myForm.Resize = true;
B -
Set your forms BorderStyle and ControlBox properties; myForm.BorderStyle = BorderStyle.NoTitle; myForm.ControlBox = false;
C -
Set your forms Title and ControlBox properties; myForm.Title = false; myForm.ControlBox = false;
D -
Set your forms Text and ControlBox properties; myForm.Tetx = ""; myForm.ControlBox = false;
8-
How do you set several lines into a multiline textbox?
A -
All are correct
B -
textBox1.Text = "This is line 1." + Enviroment.newLine + "This is line2";
C -
textBox1.Text = "This is line 1.\r\n This is line 2";
D -
textBox1.Text = stringvar1 + "\r\n" + stringvar2;
9-
How can I enable the mnemonics (underline) to show when my application is launched
on Window XP?
Choose the best answer?
A -
Repair in Registry
B -
Open Control Panl. Choose Effects Button and uncheck the checkbox "Hide Underlined letters for keyboard navigation until I press the ALT Key".
C -
Right Click Desktop to bring up the Display Properties Dialof and then choose Appearance tab and then the Effects Button and uncheck the checkbox "Hide Underlined letters for keyboard navigation until I press the ALT Key".
D -
Open Control Panel, choose Appearance tab and then the Effects Button and uncheck the checkbox "Hide Underlined letters for keyboard vavigation until I press the ALT Key".
10-
How do you make your textbox textBox1 use all upper (or lower) case characters when
user input? Select best answer?
A -
Write code at Key_Press event and convert; textBox1.text=textBox1.Text.ToUpper();
B -
Write code at Text_Changed event and convert; textBox1.text=textBox1.Text.ToUpper();
C -
Use the Format property of the TextBox to "#C"
D -
Use the CharacterCasing property of the TextBox to CharacterCasing.Upper