Notion d'héritage help me !!!

topcoder Messages postés 82 Date d'inscription   Statut Membre Dernière intervention   -  
topcoder Messages postés 82 Date d'inscription   Statut Membre Dernière intervention   -
slt tous le monde ,
j utilise le csharp et Je veux accédée a un objet de la form4 via la form1 je ne sais pas comme ça marche en dépit que j’ai utilisé le
principe d’héritage .
Merci d'avance.

1 réponse

  1. topcoder Messages postés 82 Date d'inscription   Statut Membre Dernière intervention   10
     
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Text;
    using System.Windows.Forms;

    namespace modelisation_geometrique
    {
    public partial class Form5 : Form
    {
    public Form5()
    {
    InitializeComponent();
    }

    private void button1_Click(object sender, EventArgs e)
    {
    double temp;
    label7.Text="";
    points a = new points(int.Parse(textBox1.Text), int.Parse(textBox2.Text));
    points b = new points(int.Parse(textBox3.Text), int.Parse(textBox4.Text));
    temp=a.distance_points(a,b);
    this.label7.Text = "" +"="+temp;
    label7.Visible = true;
    }
    }
    }

    MERCI
    0