I want to create a public procedure that I can call from anywhere in my program that will cause a textbox or label backcolor to flash black and white. I got the code for the flashing from VBWorld, but I don't know how to modify the code so that I can tell the procedure in one instance to make a particular textbox backcolor flash and then later instance make another textbox or label backcolor flash.

It seems that the easiest way is for the flashing procedure to work is to make X flash, where X is a variable for a textbox backcolor or label backcolor. For example, X might be Form1.Text1.Backcolor and then later it might be assigned to be Form2.Label1.Backcolor.

More accurately, perhaps, how do I create a variable to represent textboxes and labels and their backcolors?

Thanks