ok i made a Browser in FORM1 and i made a button that will open FORM2 (Form2 = Options)

so in the Form2 i made a button to change the font of the Browser:

FontDialog fontDialog = new FontDialog(); 
            if ( fontDialog.ShowDialog() != DialogResult.Cancel )
                {
                    textBox1.Font = fontDialog.Font;
                }

and i want that the font dialog will mean to the TextBox1 in Form1 not in Form2

how can i do that??


thanks

You need to obtain a reference to form 1 within form 2. Check out my new tutorial to see how you can create the reference and then use it to access controls on another form.

thanks :)

its not works for me :\

someone?

help!!! plssssss

What isnt working..post what you have and explain what it ISNT doing. We can't guess for you

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.