Urgent - visual studio c#

Fermé
houdhoud39 Messages postés 1 Date d'inscription samedi 9 août 2008 Statut Membre Dernière intervention 30 novembre 2011 - Modifié par houdhoud39 le 30/11/2011 à 22:52
Bonjour,
j'ai un prb mon pgm ne s'éxécute pas
voici le code de l'interface graphique se connecter
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;
using RDV;
using ServeurRDV;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Activation;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Tcp;

namespace Secrétariat
{
public partial class Form1 : Form
{
interStr str = null;
public Form1()
{


TcpChannel canel = new TcpChannel();
ChannelServices.RegisterChannel(canel, false);
interStr intr = Activator.CreateInstance(typeof(implémentation), null, new Object[] { new UrlAttribute("Tcp://localhost:1234") }) as interStr;

//RemotingConfiguration.RegisterActivatedClientType(typeof(implémentation), "tcp://localhost:1234");
//implémentation str = new implémentation();

//RemotingConfiguration.RegisterActivatedClientType(typeof(implémentation), "tcp://localhost:1234");
//implémentation g = new implémentation();
interStr str = Activator.GetObject(typeof(implémentation), "tcp://localhost:1234") as interStr;




InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)
{

string a = textBox1.Text;
string b = textBox2.Text;

implémentation g = new implémentation();

bool v = g.authentifier(a,b);

if (v==true)
{
menu f = new menu();
// f.ShowDialog();
// this.Hide();

}
else
{

MessageBox.Show(
"le mot de passe ou le nom d'utilisateur est incorrect",
textBox1.Text.Trim(), MessageBoxButtons.OK,
MessageBoxIcon.Error);
}
}

private void Form1_Load(object sender, EventArgs e)
{

}
}
}
////////////////////////////////////////////////////////////////////////////////////
pouvez vous m'aider a trouver l'erreur ?!!


A voir également: