Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7021693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:29:03+00:00 2026-05-27T23:29:03+00:00

So i have created Windows Form Application and made a library added a reference

  • 0

So i have created Windows Form Application and made a library added a reference so that i can use classes from library.

Now i have in a method that is in a class that is in that library it needs to change a pic in PictureBox so how do i get access to a pictureBox that is on form(Form1).

And also it would be nice that the method is able to get in what kind of item he is, for example in picturebox1 or picturebox2 so that it changes the pictureBox that it is called from.

But mainly how to access that pictureBox.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T23:29:04+00:00Added an answer on May 27, 2026 at 11:29 pm

    You can’t make the class library refer to the application, as otherwise you’d have a cyclic dependency. It’s hard to say exactly what you should do, but generally speaking class libraries shouldn’t be interested in changing aspects of a user interface directly – that’s normally a more application-specific requirement.

    It’s possible that what you really want is an event – the class library would publish an event, and the application would subscribe to it. The class library would then fire the event at the appropriate time, leaving the application code to handle the event by changing the picture.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For my C# Windows Form Application, I have created a flowlayoutpanel that contains several
I have created a windows form application: A presentation library with several windows forms
I have a c# executable file (created from a windows form application) and I
I have a C# form application...i created a Dll...now i want to launch that
We have created a C# windows form application that uses an ActiveX control to
Im using c# .net windows application form. I have created many databases with many
Im using c# .net windows form application. I have many databases created using sql
I have created a fairly substantial Java GUI application with many form windows where
I have created two forms in my Windows Application. One Form acts as a
I have created a Windows Forms application in .NET 2 using C# that runs

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.