locked
Imports and Namespace Statement Missing RRS feed

  • Question

  • Hi All

    When I create a new project in .NET I would have normally seen all the automatic Imports statement going right at the top of my new project i.e. Imports System.Linq etc... followed by the Namespace of my project.

    But when I now create a new project I dont see these statements any more but instead just says

    Public Class Form1
    
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    
        End Sub
    
    End Class

    How I can I have and see these statements every time I create a new project?

    Thanks

    Tuesday, April 22, 2014 8:54 AM

Answers

  • Hi, there are implicit Imports statements in VB.net project and the implicit Imports will not be shown in code file, You can define implicit Imports statements by using the References Page, see below:

    • Proposed as answer by Paul Ishak Tuesday, April 22, 2014 12:35 PM
    • Marked as answer by Carl Cai Monday, April 28, 2014 9:54 AM
    Tuesday, April 22, 2014 10:43 AM