I am working on a C# Windows Form project and I need to access the controls on a form from a separate class within the project. can anyone help me with this?
davieJohnson 6 Newbie Poster
Recommended Answers
Jump to PostYou could pass the controls you want to access to this class?
Jump to PostI did a simple example with 2 forms. Both have textBoxes, and when clicking the button on form2, text transfers to from textBox on form2 to textBox on form1.
//form1: public partial class Form1 : Form { public Form1() { InitializeComponent(); StartMethod(); } private void StartMethod() { …
All 5 Replies
sachintha81 17 Junior Poster in Training
everhett.raman 0 Newbie Poster
Mitja Bonca 557 Nearly a Posting Maven
davieJohnson 6 Newbie Poster
Mitja Bonca 557 Nearly a Posting Maven
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.