private void userToolStripMenuItem_Click(object sender, EventArgs e)
{
frUser user = new frUser();
user.Show();
}
private void categoryToolStripMenuItem_Click(object sender, EventArgs e)
{
frCategory category = new frCategory();
category.Show();
hi, why i can open user form using this code yet cannot do for category? when i put 'category.' the suggestion didnt show up 'Show' and when i manually do this, the code is not being recognized by vs.
this is a code at a main form to open subform using tool stripbar.
thank you
The
Show()
method is part of the System.Windows.Forms.Form class. YourfrCategory
class must inherit fromSystem.Windows.Forms.Form
.