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?
How do I get a form I have added to my project to show?
Create an instance of the class and call ShowDialog()
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.
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
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?
ok...so, take this "super-hypothetical never would happen in real life situation" where a provider of an external web service requires an authentication token to invoke any of the methods contained in their provided services. ...And say again in this "super-hypothetical never would happen in real life situation" that they didn't provide a dev account to your project group, so each time you want to test your code against the service, you have to use the release account and are eating up these precious tokens that your company is paying out the wazoo for....as such, the project controller doesn't want to pay for another account to use as a dev account, but at the same time doesn't want to eat up tokens before the thing ever goes live(which means -no unit testing at all...basically develop it black-box and then hope when you flip the switch nothing screws up...not gonna happen)
...With me here? Now, take again in this "super-hypothetical never would happen in real life situation" where the provider of this external service has live demos with input textboxes on a web form interface that provide full functionality of the service. Is there any way in this "super-hypothetical never would happen in real life situation" that a wrapper around this demo could be created so that a program could send it's data through the pre-defined web interface and consume the data that is returned?
...And just to clarify, the app that I'm talking about to wrap around the web service client is not desired for production(would probably get in big trouble for that). I'm just needing some way of testing my logic and there's currently no way of doing so but since the provider has a permanently authenticated thread on the server, I thought it would be nice to create a demo that could demonstrate functionality by funneling through their pre-existing client.
Try using a webbrowser control in your app. Through it you'll have acces to the html document loaded and you'll also be able to interact programatically with the controls or even the script functions within the page. I did something some time ago.
LOL - it's not for homework. (After 12 years of college/grad school primarily in the 90s, those days are long gone.) I am learning C# here at work and want to use it for my first software project. I'm self-taught.
Thanks for your answers,
Last Visit: 31-Dec-99 18:00 Last Update: 24-Sep-23 16:34