Results 1 to 21 of 21

Thread: Testing Form

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2005
    Location
    Cebu
    Posts
    607

    Resolved Testing Form

    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.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Testing Form

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Re: Testing Form

    Yes nebulom, jmcilhinney is right.

    Please give a detailed explanation of your question.
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2005
    Location
    Cebu
    Posts
    607

    Re: Testing Form

    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.

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Testing Form

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  6. #6
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Re: Testing Form

    I must be brain-dead (understandable, seeing it's Friday), because I just don't get it.
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2005
    Location
    Cebu
    Posts
    607

    Re: Testing Form

    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.
    Attached Images Attached Images  

  8. #8
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Re: Testing Form

    uuuuh...seems like you just drag the form smaller, or set it's size in code (from what I see on your netbean example, that seems to be it)
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

  9. #9

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2005
    Location
    Cebu
    Posts
    607

    Re: Testing Form

    Didn't you see the Text? I designed the frame and test it. No compiling or whatsoever. Ever wonder if this is in Visual Studio?

  10. #10
    Hyperactive Member Sgt-Peppa's Avatar
    Join Date
    Mar 2003
    Location
    Munich - Germany
    Posts
    476

    Re: Testing Form

    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# - Base64 Blog

  11. #11
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Re: Testing Form

    I'm really sorry if I get you wrong here, but....

    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)
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

  12. #12
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Re: Testing Form

    Peppa is right.

    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)
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

  13. #13

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2005
    Location
    Cebu
    Posts
    607

    Re: Testing Form

    Well, I'm quite oriented about VS (a little, I mean just a little). I'm just finding a feature that is in a free ware on Visual Studio.

  14. #14
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Re: Testing Form

    freeware? there's freestuff in VS? Great, so no one can say all my stuff is stolen!
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

  15. #15

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2005
    Location
    Cebu
    Posts
    607

    Re: Testing Form

    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).

  16. #16
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Re: Testing Form

    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
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

  17. #17
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Testing Form

    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.






    Did that answer your question?
    - ØØ -

  18. #18

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2005
    Location
    Cebu
    Posts
    607

    Re: Testing Form

    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.

  19. #19
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Testing Form

    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.


    - ØØ -

  20. #20
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Testing Form

    Quote Originally Posted by nebulom
    But of course, we can pirate things. Just don't tell the mods.
    They don't have to tell the mods. You just did.

  21. #21

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2005
    Location
    Cebu
    Posts
    607

    Re: Testing Form

    Hehe. Anyway, I guess, VS doesn't have the Test Form option. I guess Peppa answered it all. Thanks guys.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width