Results 1 to 2 of 2

Thread: [2.0] Please help me with some confusing things..

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    May 2002
    Posts
    1,602

    [2.0] Please help me with some confusing things..

    Hi!

    I have been programming vb.net for 4 years now, but recently I changed work, and on my new work we use c# instead. I have two questions that I haven't been able to find answer for.

    If I program an asp.net project, and enter code view for a Webform, on the top I have two dropdowns. One with a class and one with methods.
    In vb.net, in the left dropdown I could see ALL classes on my webpage, like buttons gridviews etc etc etc, and on the right I could see all the events for this class. And when I needed an event handler for say button1.click I selected class button1 and the event click( and then I got the eventhandler in code. IN c# i can only find the class for the page itself.. not the objects on the page. Why?

    And another question, how do I in the dev studio make it possible to see ALL files in the solution explorer. I want to see the partial class that dev studio generates when I drag/drop an item to my webform. In vb.net I had a button called "show hidden files". I cant find that button....

    kind regards
    Henrik

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

    Re: [2.0] Please help me with some confusing things..

    1. That's never been available in C#. You use the Properties window to create or select event handlers, which has also now been added to VB. Just press the Events or Properties buttons to switch between the two views.

    2. I can't speak for Web apps but in WinForms apps the C# IDE does have a Show All Files button, just like VB. Having said that, the designer code files are displayed in C# regardless.
    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

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