WOW !! MUCH LOVE ! SO WORLD PEACE !
Fond bitcoin pour l'amélioration du site: 1memzGeKS7CB3ECNkzSn2qHwxU6NZoJ8o
  Dogecoin (tips/pourboires): DCLoo9Dd4qECqpMLurdgGnaoqbftj16Nvp


Home | Publier un mémoire | Une page au hasard

 > 

Mise en place d'une application informatique pour la gestion des palmarès des étudiants de l'université Saint Laurent de Kananga


par Sébastien BASUA
Université Saint Laurent de Kananga  - Graduat 2021
  

précédent sommaire suivant

Extinction Rebellion

4.2.3. QUELQUES CODES SOURCES

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

using System.Windows.Forms;

namespace sebastien

{

publicpartialclassForm6 : Form

{

publicForm6()

{

InitializeComponent();

}

privatevoid Form6_Load(object sender, EventArgs e)

{

// TODO: cette ligne de code charge les données dans la table 'gest_palDataSet16.t_cours'. Vous pouvez la déplacer ou la supprimer selon vos besoins.

this.t_coursTableAdapter2.Fill(this.gest_palDataSet16.t_cours);

// TODO: cette ligne de code charge les données dans la table 'gest_palDataSet12.t_cours'. Vous pouvez la déplacer ou la supprimer selon vos besoins.

this.t_coursTableAdapter1.Fill(this.gest_palDataSet12.t_cours);

}

privatevoid button3_Click(object sender, EventArgs e)

{

Form Form9 = newForm9();

Form9.Show();

this.Hide();

}

privatevoid button2_Click(object sender, EventArgs e)

{

textBox1.Text = "";

textBox2.Text = "";

textBox3.Text = "";

textBox4.Text = "";

textBox5.Text = "";

textBox6.Text = "";

comboBox1.Text = "";

textBox1.Focus();

}

privatevoid enregistrer()

{

string paulinsoft = @"Provider=Microsoft.ACE.OLEDB.12.0; Data Source=C:\BASE\gest_pal.accdb";

OleDbConnection = newOleDbConnection(paulinsoft);

cmd.Connection = connex; DialogResult R = MessageBox.Show("Voulez-vous vraiment enregistrer ces informations ?", "CONFIRMATION DE L'ENREGISTREMENT", MessageBoxButtons.YesNo, MessageBoxIcon.Information);

if (R = DialogResult.Yes)

{

cmd.CommandText = "insert into t_cours values('" + textBox1.Text + "','" + textBox2.Text + "','" + textBox3.Text + "','" + textBox4.Text + "','" + textBox5.Text + "','" + textBox6.Text +"','" + comboBox1.Text +"')";

connex.Open();

MessageBox.Show("Enregistrer avec succès", "ENREGISTREMENT ", MessageBoxButtons.OK, MessageBoxIcon.Information);

textBox1.Text = "";

textBox2.Text = "";

textBox3.Text = "";

textBox4.Text = "";

textBox5.Text = "";

textBox6.Text = "";

comboBox1.Text = "";

textBox1.Focus();

}

}

privatevoid button1_Click(object sender, EventArgs e)

{

enregistrer_cours();

}

privatevoid groupBox1_Enter(object sender, EventArgs e)

{

}

}

}

précédent sommaire suivant






Extinction Rebellion





Changeons ce systeme injuste, Soyez votre propre syndic





"Et il n'est rien de plus beau que l'instant qui précède le voyage, l'instant ou l'horizon de demain vient nous rendre visite et nous dire ses promesses"   Milan Kundera