Jump to content

C# Formlar Arası Nesneleri Kontrol Etmek


lamont
 Share

Recommended Posts

Form1 frm = new Form1(); ifadesi çalışmakta olan Form1' için yeni bir instance oluşturur. çalışmakta olan Form1'e erişmez. Dolayısı ile de Form1'in kontrollerine de erişemezsiniz. Çalışmakta olan Form1'e erişebilmek için  hafızadaki adresini Form2'ye referans etmelisiniz.  Aşağıdaki tanımlamalar sorununuzu çözecektir.

 

1.) 

 

RVLXQo.png

2.)

5kr4Dj.png

 

3.)

aDJj8Q.png

Link to comment
Share on other sites

artal Bunu Denedim form1 deki picturebox barkod resmi var bunu form2 de yazdır butonu ile  yazıcıdan çıktı almak istiyorum veya olmazsa form1 deki picturebox form2 deki picturebox kopyalasın yazıcıdan çıktı alacam

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...