Hi, I have a class called PatientInfo that works fine. Right now, I'm trying to make a change in another class called Report to validate some objects from the class PatientInfo. Here is my code -
Code:
Imports System.Windows.Forms Imports Bryanlgh.Echo.Views Namespace Bryanlgh.Core.Tasks Public Class Report Inherits System.Windows.Forms.UserControl Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If cboPcpMd.Text = "" Then MessageBox.Show("Please enter a Primary Care Physician!") End If If cboPhysicianPerforming.Text = "" Then MessageBox.Show("Please enter an Attending Physician!") End If End Sub End Class
The controls cboPcpMd & cboPhysicianPerforming are from the class PatientInfo with a Namespace of Bryanlgh.Echo.Views. So in this other class Report, I added the code Imports Bryanlgh.Echo.Views but when I compile I get 3 messages - 1. Namespace or type specified in the 'Imports Bryanlgh.Echo.Views' doesnt contain any public member. 2. Name 'cboPcpMd is not declared. 3. Name 'cboPhysicianPerforming' is not declared Any help will be greatly appreciated. Thanks. Victor