Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6675177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:49:18+00:00 2026-05-26T03:49:18+00:00

Just a quick one really, I’ve tried googling and searching through the visual studio

  • 0

Just a quick one really, I’ve tried googling and searching through the visual studio tools but I seem to be having no luck, so I know I’ll get a quick answer on here!

I’ve been developing in vb.net for a while using visual studio and just moved back to c# and I’m irritated by a few things that I’m sure just need a check box ticking or unticking somewhere.

Firstly, when I created an event in C# I have to write out the event and then add it to the markup code, in vb I used to be able to select the control from the top left drop down (when in code behind) and then select the event from the top right dropdown, this would automatically create the event for me and attach it to the control. I can’t find the setting for this to be turned on!

Secondly, when I create classes in a sub folder, the namespace for that class is given the folder name as a sub namespace. I just want it to use the namespace of the project by default, it’s just getting a bit annoying!

E.G.

MyProject has MyProject namespace

MyProject –> MyFolder –> MyClass has the name space MyProject.MyFolder ….

Sorry for the outrageously basic question.

Regards

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T03:49:18+00:00Added an answer on May 26, 2026 at 3:49 am

    1) C# and VB handle event handler subscriptions quite differently so there is no direct equivilent of this in C#. You can do this by switching to the events tab of the properties window, and double clicking on the event you want to handle (in design view). From code view, simply type “myControl.EventIWantToHandle +=” and then double hit tab, which will generate the event handler method for you. The best place to do this is most likely in the constructor, right below the InitializeComponent call.

    2) Highlight the folder in solution explorer, and in the properties window set the ‘NamespaceProvider’ property to false*

    *It’s actually a Best Practice™ for the folder stucture to match the namespace stucture – C# is helping you out by doing this (I’m a little surprised that VB doesn’t)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just a quick one really, I'm just looking for a bit of clarification. I'm
Just a quick one: what are peoples thoughts on using Action delegates for public
Just a quick one, Is there anyway to shorthand this? It's basically determining the
Sorry about the title but I can't really think of a quick way of
Quick question. I have been Googling this all morning, but it's either not there,
Just a quick question really. I am re-writing a site and I am converting
I'm working through examples in the book 'Visual Quick Start, Objective-C' by Holzner. I
just a quick question: I am a CS undergrad and have only had experience
just a quick question, if I have a matrix has n rows and m
Just a quick database design question: Do you ALWAYS use an ID field in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.