Note that there are some explanatory texts on larger screens.

plurals
  1. POC# how to pass value from form to form through datagridview?
    text
    copied!<p>i have form, it goes like this</p> <p><img src="https://i.stack.imgur.com/dgjpZ.png" alt="picture 1"></p> <p>that <code>nomor tabungan</code> is auto generate<br> the problem is, i want to get <code>nomor nasabah</code> value from different form, through the datagridview. take a look at the following picture</p> <p><img src="https://i.stack.imgur.com/hozLM.png" alt="enter image description here"></p> <p>there's a button <code>ambil</code> to retrieve the <code>nomor nasabah</code> value, and pass them to <code>nomor nasabah</code> textbox.text</p> <p>i have successfully to get the <code>nomor_nasabah</code> value from datagridview. it is shown like the following picture <img src="https://i.stack.imgur.com/5PUIk.png" alt="enter image description here"></p> <p>how do i pass the value to the <code>tambah tabungan</code> . <code>nomor nasabah</code> textbox.text ? i have set the textbox modifier into <code>public</code> so when i click the <code>ambil</code> button, the textbox is filled with the retrieved value automatically.</p> <p>how do i do that ?</p> <p>i did the following code, and idk why it doesn't work</p> <p>here is the <code>ambil</code> button code</p> <pre><code>private void button2_Click(object sender, EventArgs e) { Tabungan.Tambah tambahtabungan = new Tabungan.Tambah(); //nomornya is the retrieved value tambahtabungan.textBox2.Text = nomornya; } </code></pre> <p>here is the <code>cari</code> button code, to show <code>getCustomer</code> form</p> <pre><code> private void button2_Click(object sender, EventArgs e) { if (getcustomer == null || getcustomer.IsDisposed) { getcustomer = new getNasabah(); getcustomer.Show(); } } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload