Question

In: Computer Science

Which of the following methods displays the second form on top of the main form? Group...

Which of the following methods displays the second form on top of the main form?

Group of answer choices

PresentForm()

ShowDialog()

DisplayForm()

ShowForm()

-

Which of the following statements closes the form:

Group of answer choices

Close().Me

Close().Form

Me.Close()

Form.Close()

-To create an instance of a form, using the following statement. what the ? (question mark) must be?

Dim frmForm1 As ? Form1

Group of answer choices

DESIGN

NEW

GENERATE

CREATE

Where do you type the code for menu?

Group of answer choices

in corresponding menu item

in corresponding menu task

in corresponding toolbar

in menu file

-

The following statement creates an _______ of the QuizzesForm form:

Dim frmQuizzes as New QuizzesForm

Group of answer choices

value

reference

instance

sample

Solutions

Expert Solution

Answer 1 :

Showform displays the secnond form on the top of the first form that is main form

private void Shownform(object sender, EventArgs e)
{
    Form2 form2 = new Form2();
    form2.Show();
}

form 2 == show form

form 1 == main form

Answer 2 :-- Form.close()

When calling this.Close(), current form is disposed together with form2. Therefore you need to hide it and set form2.Closed event to call this.Close().

private void OnButton1Click(object sender, EventArgs e)
{
    this.Hide();
    var form2 = new Form2();
    form2.Closed += (s, args) => this.Close(); 
    form2.Show();
}

Answer 3 :-- NEW

Public Class frmMain
    Dim frmForm1 As New Form1
    Dim frmDelgates As New frmDelegate
    Dim frmEvent As New frmSimpleEvents

Answer 4:-- In correspinding menu item

you have the main menu sorted, so we take it a step further and add a submenu to the Open menu item.

Click the Open menu item.

Answer 5 :-- Reference

here we are taking the reference of the Dim frmQuizzes as New QuizzesForm


Related Solutions

Question 301 pts Which of the following statements displays 123 as 00123? Group of answer choices...
Question 301 pts Which of the following statements displays 123 as 00123? Group of answer choices cout << setw(5) << setfill('0') << 123; cout << left << setw(5) << 123; cout << setw(5) << 123; None of the options displays the required output. Flag this Question Question 311 pts Which of the following statements displays 123.567 as 123.57? Group of answer choices cout << fixed << setprecision(2) << 123.567; None of the options displays the required output. cout << setprecision(2)...
Which of the following is an abstract statement? Multiple Choice Top of Form Most of our...
Which of the following is an abstract statement? Multiple Choice Top of Form Most of our employees produce highly satisfactory work. Of the 15 candidates who applied for the job, 12 had advanced business degrees. The new international sales division will be launched in October 2018. Income for the last quarter of 2015 was higher by 10 percent. Karishma accepted the CEO position on December 20, 2015.
Which of the following statements about a real Rankine cycle is true? Top of Form (A)...
Which of the following statements about a real Rankine cycle is true? Top of Form (A) The entropy of the working fluid increases across every component. (B) The temperature of the working fluid increases across the pump. (C) The pressure of the working fluid increases across the boiler. (D) The work performed by the pump is equal to the product of the power into the pump and the pump efficiency.
Financial Statement Analysis Cases Carrefour Group Carrefour Group (FRA), the top retailer in Europe (second worldwide),...
Financial Statement Analysis Cases Carrefour Group Carrefour Group (FRA), the top retailer in Europe (second worldwide), recently had €108.629 billion in sales. It has more than 495,000 employees worldwide, with operations in 31 countries. It is the seventh largest employer worldwide, with 15,430 stores. Carrefour provided the following information in a recent annual report related to its property and equipment. Carrefour Group (in millions) Notes to the Financial Statements (in part) (3) Tangible fixed assets In accordance with IAS 16...
Financial Statement Analysis Cases Carrefour Group Carrefour Group (FRA), the top retailer in Europe (second worldwide),...
Financial Statement Analysis Cases Carrefour Group Carrefour Group (FRA), the top retailer in Europe (second worldwide), recently had €108.629 billion in sales. It has more than 495,000 employees worldwide, with operations in 31 countries. It is the seventh largest employer worldwide, with 15,430 stores. Carrefour provided the following information in a recent annual report related to its property and equipment. Carrefour Group (in millions) Notes to the Financial Statements (in part) (3) Tangible fixed assets In accordance with IAS 16...
Which of the following is not an OWASP Top 10 Web Application Security Risk? Group of...
Which of the following is not an OWASP Top 10 Web Application Security Risk? Group of answer choices Broken access control Software maturity Insecure deserialization XML External Entities
Which of the following is a periodic property that is common to both the main-group elements...
Which of the following is a periodic property that is common to both the main-group elements and the transition metals? Which of the following is a periodic property that is common to both the main-group elements and the transition metals? a) oxidation state b) first ionization energy across a row c) electronegativity down a column d) atomic size across a row
Which of the following represents empirical evidence? Group of answer choices a. A second-hand account of...
Which of the following represents empirical evidence? Group of answer choices a. A second-hand account of a researcher’s observations b. A research study without controls identified c. An experiment that outlines the methods used d. A review of studies that have been conducted on vaccine safety e. Research that cannot be repeated because the methodology isn’t clear
Which of the following is a form of dynamic pricing? Group of answer choices target pricing...
Which of the following is a form of dynamic pricing? Group of answer choices target pricing prestige pricing above-, at-, and below-market pricing cost-plus pricing yield management pricing
element E is a main group element and reacts with oxygen to form the ionic compound...
element E is a main group element and reacts with oxygen to form the ionic compound E2O. An atom of E is larger than an atom of calcium and in a similar reaction an atom of E is less reactive than an atom of Rb
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT