A
A
Asriel2022-02-15 14:07:22
C++ / C#
Asriel, 2022-02-15 14:07:22

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.


In theory it says:
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();
}

FormEmployee does not read and gives "Could not find the type or namespace name FormEmployee"

I searched the Internet and did not find it. What am I doing wrong in this case?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question