Ay: Kasım 2020

Umut Yazılım - Logo Ürünlerinde ve Yazılımda 20 yıllık tecrübe..

Devexpress radiobox seçilen

string secilen = radioyillar.Properties.Items[radioyillar.SelectedIndex].Description;

Devexpress kontrolleri boşaltma

foreach (Control control in this.Controls[0].Controls){if ((devXtextControl = control as TextEdit) != null){// do something with devXtextControlMessagebox.Show(devXtextControl.Name);}}

Dosya okuma

SqlCommand cmd = new SqlCommand();SqlDataAdapter da = new SqlDataAdapter(cmd);cmd.Connection = Mainform.baglan;

Form 2 den form 1 refresh

Kullaniciler f1 = (Kullaniciler)Application.OpenForms[“Kullaniciler”];f1.DataGetir(); // form 1 deki methodthis.Close();

Form 2 den form 1 textbox data aktarma

KullaniciEkle kekle = (KullaniciEkle)Application.OpenForms[“KullaniciEkle”];kekle.txtdepartman.Text = gridView1.GetFocusedRowCellValue(“DEPARTMAN”).ToString();kekle.lbldepid.Text = gridView1.GetFocusedRowCellValue(“ID”).ToString();

dataGridView_CellClick kullanımı

private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e){if (e.RowIndex >= 0){DataGridViewRow row = this.dataGridView1.Rows[e.RowIndex];textbox1.Text = row.Cells[“col_1”].Value.ToString();textbox2.Text = row.Cells[“col_2”].Value.ToString();textbox3.Text = row.Cells[“col_3”].Value.ToString();textbox4.Text = row.Cells[“col_4”].Value.ToString();textbox5.Text = row.Cells[“col_5”].Value.ToString();textbox6.Text = row.Cells[“col_6”].Value.ToString();textbox7.Text = row.Cells[“col_7”].Value.ToString();}}