I have been using vb.net from a long time, but never had this issue. For some reason Intellisense is not detecting MsgBox(). When I hover over the highlighted red line it says "'MsgBox' is not declared. It may be inaccessible due to its protection level" and in the potential fixes it tries to create a new function named MsgBox(). Below is the code:
Imports System
Imports System.Data.SqlClient
Imports System.Runtime.InteropServices
Imports System.Web.Configuration
Imports Microsoft.Office.Interop.Outlook
Public Class ConferenceRooms
Inherits System.Web.UI.Page
Dim SQLConnection As New
SqlConnection(ConfigurationManager.ConnectionStrings("MyDB").ConnectionString)
Dim SQLcommand As New SqlCommand
Dim SQLAdapter As SqlDataAdapter
Dim SQLDataTable As DataTable
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
'MsgBox(LBTest.Attributes("title"))
'Dim lb As Label = CType(Me.Controls("HR Conference Room"), Label)
If Not IsPostBack Then
Dim Query1 As String
Query1 = "Select Location_ID from LCSConference_Locations where vacant = 1"
RunQuery(Query1)
Dim OrganizerEmail As String = OrgEmail.Value
Dim Agenda As String = MeetAgenda.Value
Dim Location As String = MeetLocation.Value
MsgBox("Hello")
End If
End Sub