Click here to Skip to main content
16,021,125 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am adding images at runtime. if the picturebox contains images the other control on form are enable if there is no image in picturebox the controls are disable so how can i find that picturebox control is initialized with image.
Posted
Updated 20-Nov-12 18:19pm
v3

1 solution

C#
if (pictureBox1.Contains("YourImage"))
            {
                // load the other control (i.e TextBox1.enable=true)
            }
 else
            {
                //TextBox1.enable=false;
            }
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900