4

In my desktop application, previously I have designed the form and ten execute it but then I went for slight changes in my form.But even after changing, while I run the program now the previously created form is getting displayed.

What might be the problem...could anyone help me?

Mark Cidade
  • 98,437
  • 31
  • 224
  • 236
Srivastava
  • 3,500
  • 12
  • 46
  • 74

3 Answers3

4

Try:

Delete all the \BIN directories in your solution

Build->Clean project

Rebuild All

smirkingman
  • 6,167
  • 4
  • 34
  • 47
1

Another place to check is the solution build configuration.

Make sure your project is being built. If it is not being built, then your changes wont show up.

  1. Right click solution.
  2. Configuration Manager.
  3. Verify your project is selected.
0

When you make changes to, say, Form1, in the visual designer, Visual Studio will reflect those in the code found in the file called Form1.Designer.cs, in the method called InitializeComponent(). That's one place you can check for errors.

Mark Cidade
  • 98,437
  • 31
  • 224
  • 236