Serialcoder en Français Serialcoder in English
TEL : +33 (0)9 72 13 15 17

Windows Forms FAQ resources

1. Windows Forms Deployment

1.10 How can I programmatically obtain the name of the assembly that the code is executing in ?


The following code snippet demonstrates how you can obtain the name of the assembly that the code is executing in:

[C#]
MessageBox.Show(System.Reflection.Assembly.GetEntryAssembly().GetName().Name);

[VB.NET]
MessageBox.Show(System.Reflection.Assembly.GetEnTryAssembly().GetName().Name)