1 Replies - 325 Views - Last Post: 02 March 2013 - 07:04 AM Rate Topic: -----

#1 Jb3  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 02-March 13

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

Posted 02 March 2013 - 04:27 AM

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();
        }
    }
}




Is This A Good Question/Topic? 0
  • +

Replies To: When opening a form via button it shows a new empty form

#2 tlhIn`toq  Icon User is offline

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5517
  • View blog
  • Posts: 11,826
  • Joined: 02-June 10

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

Posted 02 March 2013 - 07:04 AM

Based on this code, your optionsbox has nothing in it.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1