|
|
| _/ Enable Application Framework, where'd it go? |
|
| Author |
Message |
Michael_P2234

|
Posted: Visual C# IDE, _/ Enable Application Framework, where'd it go? |
Top |
Why is enable application framework under project properties available in VB, but not C# or am I missing something
Visual C#14
|
| |
|
| |
 |
Peter Ritchie

|
Posted: Visual C# IDE, _/ Enable Application Framework, where'd it go? |
Top |
Visual C# doesn't have the Windows Application Framework--that's a Visual Basic thing. The Windows Application Framework gives you things like the My class's Settings configuration, automatic enabling of visual styles, single instance application, splash screen, etc...
What part of the Windows Application Framework would you like to have in your C# application
|
| |
|
| |
 |
Michael_P2234

|
Posted: Visual C# IDE, _/ Enable Application Framework, where'd it go? |
Top |
Actually, I was hoping to disable it. I don't want my application to have that WinXP look for my menu strip. I don't like how it has all that open space for a picture because it doesn't look professional and I don't want to draw any images for the menu strip either.
|
| |
|
| |
 |
Peter Ritchie

|
Posted: Visual C# IDE, _/ Enable Application Framework, where'd it go? |
Top |
Just remove the call to Application.EnableVisualStyles() in your Main method.
|
| |
|
| |
 |
Matthew Watson

|
Posted: Visual C# IDE, _/ Enable Application Framework, where'd it go? |
Top |
There's another way.
Suppose that you have a MenuStrip in your form with a menu item (of type ToolStripMenuItem) called 'menuToolStripMenuItem'.
To turn off the image border for that menu, do this in the form's constructor immediately after the call to InitializeComponent():
((ToolStripDropDownMenu)menuToolStripMenuItem.DropDown).ShowImageMargin = false;
|
| |
|
| |
 |
| |
|