Answer the question
In order to leave comments, you need to log in
Why doesn't C# work for me?
Started learning C#. Here is part of the assignment:
1.Create a main menu that includes the following items:
"Object", "Reference", "Help".
2. For the "Object" item, create the following sub-items: "Employee",
"Client", "Agreement", "Instruction", "Deal", "Exit".
3. For the "Reference" item, create the following sub-items:
"Position", "Country", "Region", "City", "IMNS".
4. For the "Help" item, create a sub-item - "About"
5. Create a child window.
6. Add menu items to the child window.
7. Write a handler to be called from the main menu of the child
window.
Create another window, which will be a child
(FormEmployee). To do this, select the menu item Project/Add Windows
Form.
This window should be called from the main menu item
"Employee". Paste code like the following to create
a new MDI child form when the user clicks on a
menu item, such as "Employee" - object name -
employeeToolStripMenuItem (In the example below, the event pointer
is accessing the Click event of employeeToolStripMenuItem_Click).
private void сотрудникиToolStripMenuItem_Click(object sender,
EventArgs e)
{
// Создать объект FEmployee класса FormEmployee
FormEmployee FEmployee = new FormEmployee();
// Установить родительское окно для дочернего
FEmployee.MdiParent = this;
// Вывести на экран дочерее окно
FEmployee.Show();
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question