Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

C# Form problem


  • Please log in to reply

#1
FCCAGut

FCCAGut

    Member

  • Member
  • PipPipPip
  • 141 posts
I remembered that I opened a windows form from the menutextbox but it's not working and I forgot what I did it goes after Form2 which is suppose to bring up a new form that I made. Here's the code:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace WindowsApplication2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void fCCAWebToolStripMenuItem_Click(object sender, EventArgs e)
{

new Form2.
}
  • 0

Advertisements


#2
IO-error

IO-error

    Member

  • Member
  • PipPipPip
  • 276 posts
Before we can help you, we need to know the coding language, compiler and maybe some info of what you are trying to do.
  • 0

#3
FCCAGut

FCCAGut

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 141 posts
It's C#. I'm trying to open it from a ToolStripMenuItem, you know open it from a taskbar like "Start" "All Programs" then going to a word and when you click the word it pops up the program.
  • 0

#4
kopo.fett

kopo.fett

    New Member

  • Member
  • Pip
  • 1 posts
private void fCCAWebToolStripMenuItem_Click(object sender, EventArgs e)
{
new Form2.
}

should be

private void fCCAWebToolStripMenuItem_Click(object sender, EventArgs e)
{
Form2 newform2 = new Form2();
newform2.Show();
}
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP