{"id":1678,"date":"2023-03-27T20:56:51","date_gmt":"2023-03-27T17:56:51","guid":{"rendered":"https:\/\/www.aydiner.gen.tr\/?p=1678"},"modified":"2023-03-27T21:00:13","modified_gmt":"2023-03-27T18:00:13","slug":"formlar-arasi-gecis-ve-formlar-arasi-veri-tasima-islemleri-nasil-yapilir-terimi-kaldir-form-formterimi-kaldir-c-form-islemleri-c-form-islemleriterimi-kaldir-c-form-islemleri-veri-aktarma-c-form","status":"publish","type":"post","link":"https:\/\/www.aydiner.gen.tr\/index.php\/2023\/03\/27\/formlar-arasi-gecis-ve-formlar-arasi-veri-tasima-islemleri-nasil-yapilir-terimi-kaldir-form-formterimi-kaldir-c-form-islemleri-c-form-islemleriterimi-kaldir-c-form-islemleri-veri-aktarma-c-form\/","title":{"rendered":"Formlar Aras\u0131 Ge\u00e7i\u015f ve Formlar Aras\u0131 Veri Ta\u015f\u0131ma \u0130\u015flemleri Nas\u0131l Yap\u0131l\u0131r?"},"content":{"rendered":"<p>C# da\u00a0 formlar aras\u0131 ge\u00e7i\u015f ve veri ta\u015f\u0131ma i\u015flemleri nas\u0131l yap\u0131l\u0131r? Bir form a\u00e7\u0131ld\u0131\u011f\u0131nda projemde yer alan di\u011fer formlar\u0131 nas\u0131l a\u00e7ar\u0131m?<\/p>\n<p><a href=\"https:\/\/www.aydiner.gen.tr\/wp-content\/uploads\/2023\/03\/form1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1679\" src=\"https:\/\/www.aydiner.gen.tr\/wp-content\/uploads\/2023\/03\/form1-300x183.jpg\" alt=\"\" width=\"300\" height=\"183\" srcset=\"https:\/\/www.aydiner.gen.tr\/wp-content\/uploads\/2023\/03\/form1-300x183.jpg 300w, https:\/\/www.aydiner.gen.tr\/wp-content\/uploads\/2023\/03\/form1.jpg 386w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><a href=\"https:\/\/www.aydiner.gen.tr\/wp-content\/uploads\/2023\/03\/form2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1680\" src=\"https:\/\/www.aydiner.gen.tr\/wp-content\/uploads\/2023\/03\/form2.jpg\" alt=\"\" width=\"200\" height=\"181\" \/><\/a><\/p>\n<p>2 Adet Form projeye eklenir ve yukar\u0131daki gibi tasarlan\u0131r.<\/p>\n<p>Yukar\u0131da Tasarlanan\u00a0 Form da txtSayi TextBox a girilen say\u0131lar\u0131 EKLE butonuna bas\u0131ld\u0131\u011f\u0131nda bir diziye kay\u0131t ediyoruz. Bunun i\u00e7in dizi tan\u0131mlama y\u00f6ntemlerinden ArrayList i kullanaca\u011f\u0131z.<\/p>\n<p>\u0130lk olarak projeye :<\/p>\n<p><strong>using System.Collections;\/\/<\/strong> namespace eklenir.<\/p>\n<p><strong> ArrayList liste = new ArrayList();<\/strong> \/\/\u00a0 Dizi Global olarak tan\u0131mlan\u0131r.<\/p>\n<p>EKLE Butonu Click olay\u0131na:<\/p>\n<p><strong> liste.Add(txtSayi.Text); \/\/ <\/strong>Butona her bas\u0131ld\u0131\u011f\u0131nda TextBox daki say\u0131 diziye aktar\u0131l\u0131r.<\/p>\n<p>Form2 Butonunun Click olay\u0131na:<\/p>\n<p><strong> Form2 frm = new Form2();\u00a0 \u00a0 \u00a0\/\/ <\/strong>Form2 s\u0131n\u0131f\u0131ndan frm nesnesi \u00fcretilir.<\/p>\n<p><strong> foreach(string sayi in liste) \/\/<\/strong> D\u00f6ng\u00fc ile form2 de olu\u015fturulmu\u015f listbox a veri aktar\u0131l\u0131r.<br \/>\n<strong>{<\/strong><br \/>\n<strong>frm.listBox1.Items.Add(sayi);<\/strong><br \/>\n<strong>}<\/strong><\/p>\n<p><strong>frm.Show();<\/strong><\/p>\n<p>*** <strong><span style=\"color: #ff0000;\">Form2 de kullan\u0131lan listbox \u00f6zellikler paneli Modifiers:Public olarak tan\u0131mlanmal\u0131d\u0131r. Aksi takdirde form1 de form2 de kulland\u0131\u011f\u0131m\u0131z listbox a ula\u015famay\u0131z. !!!<\/span><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Form \u0130\u015flemleri formlar  aras\u0131 ge\u00e7i\u015f ve formlar aras\u0131 veri ta\u015f\u0131ma i\u015flemleri nas\u0131l yap\u0131l\u0131r ?<\/p>\n","protected":false},"author":1,"featured_media":1679,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[130,131,132,129,133],"class_list":["post-1678","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-programlama","tag-c-form-islemleri","tag-c-form-islemleri-veri-aktarma","tag-c-formlar-arasi-gecis-veri-aktarma","tag-form","tag-formlar-arasi-gecis-ve-formlar-arasi-veri-tasima-islemleri-nasil-yapilir"],"_links":{"self":[{"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/posts\/1678","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/comments?post=1678"}],"version-history":[{"count":0,"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/posts\/1678\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/media\/1679"}],"wp:attachment":[{"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/media?parent=1678"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/categories?post=1678"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aydiner.gen.tr\/index.php\/wp-json\/wp\/v2\/tags?post=1678"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}