i have form1 - Form2 and Form3

Form1 appears and i have to pick a color and click the button to go to the form2, then in form2 it shows the color and in form3 too

which is the best way to do this ? My.forms.Form2.SomeCodeHere or just Form2.SomeCodeHere

Why not just put the code in the btn_click event. That seems the logical place, when you pick a color and click the button (Form1), that will fire the onclick event and there you set the background color of both Form2 and Form3.

JR

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.