Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

C# in continuous loop. Please HELP.

$
0
0

I clicked on debug and my login form came up like normal but once i signed in my main menu form was coninuosly coming up in many windows, uncontrollably until it stopped after a repetition on many forms coming up of the same copy.

my main menu code:

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

namespace EDvide
{
    public partial class btnWebsites : Form
    {
        public btnWebsites()
        {
            InitializeComponent();
        }

        private void btnSignout_Click(object sender, EventArgs e)
        {
            Form1 newform = new Form1();
            newform.Show();
            this.Hide();
        }

        private void btnAccount_Click(object sender, EventArgs e)
        {
            Account newform = new Account();
            newform.Show();
            this.Hide();
        }

        private void button3_Click(object sender, EventArgs e)
        {
            btnwebsite newform = new btnwebsite();
            newform.Show();
            this.Hide();

        }

        private void btnAbout_Click(object sender, EventArgs e)
        {
            About newform = new About();
            newform.Show();
            this.Hide();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            Form2 newform = new Form2();
            newform.Show();
            this.Show();
        }
    }
}

PLEASE HElP


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>