magos, i tried to do something, did the ad and soyad variables public in the frmOgrenciGiris.cs form.
Code:
private string ad;
public string AD
{
get { return ad; }
}
private string soyad;
public string SOYAD
{
get { return soyad; }
}
Code:
ad = readerSel.GetString(readerSel.GetOrdinal("s_rname"));
soyad = readerSel.GetString(readerSel.GetOrdinal("s_surname"));
lblad.Text = ad;
lblsoyad.Text = soyad;
and i assigned the lblad adn lblsoyad to the ad and soyad
after that i call them in another form
Code:
public partial class frmAna : Form
{
public frmPersonelGiris MainForm;
frmOgrenciGiris MainOgr = new frmOgrenciGiris();
public void frmAna_Load(object sender, EventArgs e)
{
lblAd.Text = MainOgr.AD;
lblSoyad.Text = MainOgr.SOYAD;
}
but lblAd.Text and lblSoyad.Text did not appear in the form
what can i do now?