Forms
-
Good People, How do I get a form I have added to my project to show? I want it to show in response to a user's button click. Also, how do I design a form that looks like, for example, the "Exception Assistant" dialog? It doesn't have that heavy blue border/header at the top. Is there some criteria or selection that should be checked or must I code it? Thank you, BP
-
Good People, How do I get a form I have added to my project to show? I want it to show in response to a user's button click. Also, how do I design a form that looks like, for example, the "Exception Assistant" dialog? It doesn't have that heavy blue border/header at the top. Is there some criteria or selection that should be checked or must I code it? Thank you, BP
BlitzPackage wrote:
How do I get a form I have added to my project to show?
Create an instance of the class and call ShowDialog()
BlitzPackage wrote:
I want it to show in response to a user's button click.
Then you need a click event. Double click on the button in the designer and you'll get one.
BlitzPackage wrote:
It doesn't have that heavy blue border/header at the top.
Change that property in the form designer. I forget it's name, although I always change it ( the default is resizable form and I never want that ) The default also puts an item in the taskbar, I never want that, either. The default is stupid.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog
-
BlitzPackage wrote:
How do I get a form I have added to my project to show?
Create an instance of the class and call ShowDialog()
BlitzPackage wrote:
I want it to show in response to a user's button click.
Then you need a click event. Double click on the button in the designer and you'll get one.
BlitzPackage wrote:
It doesn't have that heavy blue border/header at the top.
Change that property in the form designer. I forget it's name, although I always change it ( the default is resizable form and I never want that ) The default also puts an item in the taskbar, I never want that, either. The default is stupid.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog
Thanks Christian, You'll never believe the error tht kept me from showing the form - I did not create an instance of the class and was trying to call show on the type - LOL! At any rate, I'm still searching for the feature that will remove the blue border at the top. Thanks again, BP
-
Thanks Christian, You'll never believe the error tht kept me from showing the form - I did not create an instance of the class and was trying to call show on the type - LOL! At any rate, I'm still searching for the feature that will remove the blue border at the top. Thanks again, BP
-
You can remove the blue border at the top by selecting None for FormBorderStyle in the visual designer. If you don't like the way that looks, there are several other choices.
Thanks, One last quick question: Can I create a customer interface using Visual Studio (C#) 2005? In other words, supposed I wanted my application to have a mac style look and feel or other different skin theme, can I use what ships with Visual Studio to do that? Thanks again, BP
-
Thanks, One last quick question: Can I create a customer interface using Visual Studio (C#) 2005? In other words, supposed I wanted my application to have a mac style look and feel or other different skin theme, can I use what ships with Visual Studio to do that? Thanks again, BP
Kind of. ToolStrips, MenuStrips, ContextMenuStrips all have a Renderer property, that controls the look and feel. I recommend the free Krypton Toolkit[^], makes your forms, buttons, menus, everything look beautiful. :)
Tech, life, family, faith: Give me a visit. I'm currently blogging about: Check out this cutie The apostle Paul, modernly speaking: Epistles of Paul Judah Himango