This may sound easy to you guys but this is bugging me off. How to test my Form on Visual Studio. This may not sound on the C# corner but I love posting here, also I'm working on C# (a little) right now. I don't want to build anything, just want to test the Form's View. Anyone?
Thanks in advance.
Last edited by nebulom; Sep 23rd, 2005 at 09:06 PM.
What exactly do you mean? You can create a form in the designer without adding any other code. Then when you run the project your form will be displayed but none of the controls will actually do anything.
I'm designing a form and I want to test the UI output. I don't want to build for now. Just want to test the form's view. Something Netbeans has for Java.
I don't know if this clears things up. Sorry for the misleading btw, and thank you.
Am I missing something? How can you see what a finished form looks like without putting some controls on it and looking at it? If you're talking about the fact that the VS.NET design window doesn't support visual styles then you are out of luck with 2003 and will have to wait until 2005.
I can see the designer mode. It's just that it's too big and I want to see a sample output. Form Test or something. Just to show the form on a "not on Visual Studio". Something like it runs but just for testing. No compiling or whatsoever. I hope this clears thing up.
Please see the attached image. It doesn't involve compiling or building. Just testing on what's the output form I designed on editor's designer mode.
I dont hink there is a way to do that in VS 2003. If you hit the "play" button your code gets Compiled and then your form shows. I dont think there is any other way to do that! Remember, your C# code needs to get Translated into the IL for the .NET Framework to work with it.
Keep Smiling - even if its hard
Frankie Says Relax, wossname Says Yeah!
wossname:--Currently I'm wearing a gimp suit and a parachute. C# - Base64Blog
In VS you design your form in the IDE. When you click "Start", VS compile your code and while still at the IDE, will bring up your form as it would when you run your final product (Actually, in fact it does run a compiled exe, but you can still debug your code)
I suggest you play around a bit with VS, to understand it's basic functionality, because, from your question, you don't know the IDE yet (like I don't know netbeans)
No. I mean I'm comparing Netbeans (which is freeware) with Visual Studio (for people who can afford). But of course, we can pirate things. Just don't tell the mods.
Btw, I don't think it's in the VS feature (I could be wrong) but as I said I'm quite oriented with VS and I didn't see this feature. Even tried creating Custom Templates for New Items, etc but none of something like this (Form testing).
You might want to pop this question over to the Java section. I'm sure there's a lot of ppl that use Java stuff and MS stuff, and can give you a fair opinion on comparing the technologies
If you only use the form designer, and doesn't write any code your self to design the form. Then what you see in the form designer is what you get.
In VS, the IDE adds code for you to style the form. You are NOT supposed to mess with this stuff. If you add stuff your self, then you will break it, and what you see in the form designer is no longer what you get.
Like on this picture. The form on the left is what it looks like when I style it in the IDE. The one to the right is the same for when you are running the app. As you can see, they look the same, it is only the text inside the widgets that is different.
Hey Note, you've tested Netbeans right? Try Frame Test, that's what I'm finding if that feature is in Visual Studio. I don't need to run coz my form is not necessarily the start up and I may not know where to show the form (might be the code is from Japan and I may not understand the code). I just wanted to test the Form; that's it. I may not be comfortable building it right now.
I don't have netbeans on this machine. But what do you mean by "testing" the form? To see what it looks like, or to see if it is possible to run? I can't remember how Netbeans does it's gui at all. If it is anything like QT, then it is the exactly opposite of VS, hence not the same futures at all.