bool flag=false; public void Somthing() { ///some code... /// flag=true; } protected void panel_paint(PainteventArgs e) { if(flag==true) //draw some text }
private void frmMain_Load(object sender, EventArgs e) { usercontrol obj=new usercontrol(); obj.Somthing(); }
Something()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)