I would like you to tell me how to perform a modal in Windows Form because my application is taking too long and you show me the message loading ... . I do not know if it can be done, when it ends the message should disappear.
I would like you to tell me how to perform a modal in Windows Form because my application is taking too long and you show me the message loading ... . I do not know if it can be done, when it ends the message should disappear.
A serious solution is to insert a Panel, make it invisible (False Visible Property), put the Caption property to "Loading ..." and where you will perform the task that is supposed to take a while, before executing it put in a panel aligned to the entire window and simply when you finish you delete it from your form or you put invisible again and problem solved. Always remember that if possible, give the user the possibility to cancel the operation in progress.
I do not develop in vb.net, but in Delphi for example it would be something like this, after adding a panel to the form and assigning it as panelMsg name:
panelMsg.Caption := "Cargando...";
panelMsg.Align := alAllClient;
panelMsg.SentToFront;
panelMsg.Visible := True;
Once you finish the task, you reverse the steps to hide the panel.
panelMsg.Visible := False;
panelMsg.SentToBack;
Keep in mind that these codes that I put are for you to take the idea simply of how you should do it on vb.net.