hi

I’m new in c sharp so I think I’ll use this forum many times in future

My question is about when the main form is loading I want to check if a file exist, if the file not exist I want that second form ( another form) will load and the first form (main form) will hide. How should I solve this?
file checking is ok used file.exist .... but I can’t hide the main form.

allready used mainform.hide();
mainform.visible=false;
activeform.hide();

it's all doesn't work

Thanks by advance