Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Main Program/ReadEvents/Modal Forms
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00889395
Message ID:
00889409
Vues:
16
This message has been marked as a message which has helped to the initial question of the thread.
In dotnet, you don't design the form as modal, you specifiy that by how you call it. You can set all the forms properties to make it act like you expect a modal form to act (like always on top, no icon in the status bar...)
When you call it, you use the ShowDialog() method instead of Show()

c# example, vb.net should be similar
using(MyForm frm = new MyForm())
{
	DialogResult rslt = frm.ShowDialog(this);
	if (rslt != DialogResult.Cancel)
	{
		string val = frm.Text;
		//Do something
	}
}
>So far in all my playing, I have just created winforms and ran them. Now I'm trying to understand how to put together a series of forms like I do in vfp where I have a main.prg that I call a form (Model login form) and if returns .t. or false, if True, I do my main form and then a read events. Looking at the winforms, I don't see Model nor have I see an equivilent of read events. If someone can show me a link or 2 or 3 lines how you setup something like that I'd appreciate it, thanks for all your help.
Bill Mittenzwey
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform