Click here to Skip to main content
15,847,427 members
Home / Discussions / C#
   

C#

 
GeneralRe: all computers in the network Pin
leppie1-Feb-03 7:17
leppie1-Feb-03 7:17 
GeneralPersonalizing Custom Controls Pin
Anonymous31-Jan-03 18:24
Anonymous31-Jan-03 18:24 
GeneralRe: Personalizing Custom Controls Pin
andyharman2-Feb-03 1:32
professionalandyharman2-Feb-03 1:32 
GeneralA question of form ;) Pin
antoine@orchus-tech31-Jan-03 17:07
antoine@orchus-tech31-Jan-03 17:07 
GeneralRe: A question of form ;) Pin
jtmtv1831-Jan-03 18:04
jtmtv1831-Jan-03 18:04 
GeneralRe: A question of form ;) Pin
antoine@orchus-tech1-Feb-03 4:36
antoine@orchus-tech1-Feb-03 4:36 
GeneralRe: A question of form ;) Pin
Stephane Rodriguez.1-Feb-03 4:45
Stephane Rodriguez.1-Feb-03 4:45 
GeneralRe: A question of form ;) Pin
Anonymous1-Feb-03 4:49
Anonymous1-Feb-03 4:49 
Here is the code, Jessy, for my main form, the one that was created with the project, and the one that loads first.

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

namespace PersonnaInterfaceSystem
{
///
/// Summary description for frmPISmain.
///

public class frmPISmain : System.Windows.Forms.Form
{
private System.Windows.Forms.PictureBox pictureBox6;
private System.Windows.Forms.PictureBox picLogo;
private System.Windows.Forms.Button btnQuit;
private System.Windows.Forms.PictureBox pictureBox9;
private System.Windows.Forms.PictureBox picContacts;
private System.Windows.Forms.PictureBox picPersonnaliser;
private System.Windows.Forms.PictureBox picCommunauté;
private System.Windows.Forms.PictureBox picCourrier;
private System.Windows.Forms.PictureBox picHoraire;
private System.Windows.Forms.PictureBox picSmithers;
private System.Windows.Forms.PictureBox picErendering;
private System.Windows.Forms.Button btn;
///
/// Required designer variable.
///

private System.ComponentModel.Container components = null;

public frmPISmain()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();

//
// TODO: Add any constructor code after InitializeComponent call
//
}

///
/// Clean up any resources being used.
///

protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}

#region Windows Form Designer generated code
///
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
///

private void InitializeComponent()
{
hiden (too BIG!)
}
#endregion

///
/// The main entry point for the application.
///

[STAThread]
static void Main()
{
Application.Run(new frmPISmain());
}


private void btnQuit_Click(object sender, System.EventArgs e)
{
Application.Exit();
}

private void btn_Click(object sender, System.EventArgs e)
{

frmPISmain.ActiveForm.Hide();
frmPISContact.ActiveForm.Show();

}

}
}



Heres the error I get!:

************************
An unhandled exception of type 'System.NullReferenceException' occurred in PersonnaInterfacceSystem.exe

Additional information: Object reference not set to an instance of an object.
************************

I just added another form with a right click, and then I just gave it some controls and what not. I just want to do the c# equivalent of VB's:

Unload form1
form2.show

hellllp!

Thanks,

Smile | :) Smile | :) ;)

Me again
GeneralRe: A question of form ;) Pin
Stephane Rodriguez.1-Feb-03 5:25
Stephane Rodriguez.1-Feb-03 5:25 
QuestionToolbar buttons position? Pin
Member 14906931-Jan-03 10:24
Member 14906931-Jan-03 10:24 
AnswerRe: Toolbar buttons position? Pin
Furty31-Jan-03 18:21
Furty31-Jan-03 18:21 
GeneralC# need to create control using UserControl Pin
Vikas Aher31-Jan-03 10:16
Vikas Aher31-Jan-03 10:16 
GeneralRe: C# need to create control using UserControl Pin
Erik Funkenbusch31-Jan-03 11:47
Erik Funkenbusch31-Jan-03 11:47 
GeneralFastest Way to open Pin
jtmtv1831-Jan-03 9:49
jtmtv1831-Jan-03 9:49 
GeneralRe: Fastest Way to open Pin
Daniel Turini31-Jan-03 10:04
Daniel Turini31-Jan-03 10:04 
GeneralRe: Fastest Way to open Pin
jtmtv1831-Jan-03 10:12
jtmtv1831-Jan-03 10:12 
GeneralRe: Fastest Way to open Pin
Mark Sanders31-Jan-03 11:36
Mark Sanders31-Jan-03 11:36 
GeneralRe: Fastest Way to open Pin
jtmtv1831-Jan-03 11:56
jtmtv1831-Jan-03 11:56 
GeneralRe: Fastest Way to open Pin
Mark Sanders31-Jan-03 11:59
Mark Sanders31-Jan-03 11:59 
GeneralRe: Fastest Way to open Pin
leppie31-Jan-03 13:10
leppie31-Jan-03 13:10 
GeneralRe: Fastest Way to open Pin
jtmtv1831-Jan-03 14:53
jtmtv1831-Jan-03 14:53 
GeneralRe: Fastest Way to open Pin
leppie31-Jan-03 15:32
leppie31-Jan-03 15:32 
GeneralRe: Fastest Way to open Pin
jtmtv1831-Jan-03 15:40
jtmtv1831-Jan-03 15:40 
GeneralRe: Fastest Way to open Pin
leppie31-Jan-03 23:53
leppie31-Jan-03 23:53 
GeneralDIME and large files Pin
Ingram Leedy31-Jan-03 9:40
Ingram Leedy31-Jan-03 9:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.