Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

When opening a form via button it shows a new empty form

$
0
0
Hi, im working on a launcher for my game, and when i run it i hit the options button, i opens a form, but it opens the new empty form. Now my question is why i am getting a completely empty form?

This is the code im using to open the form.

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 LesterLauncher
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void panel1_Paint(object sender, PaintEventArgs e)
        {

        }

        private void optionsbtn_Click(object sender, EventArgs e)
        {
            new optionsbox().Show();
        }
    }
}



Viewing all articles
Browse latest Browse all 51036

Trending Articles



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