form and dll question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am getting the following error when I try to reference a object on a form from inside a dll

I am using the immediate window to generate this error
'racmain.txtsqlquery.text' is not declared or the module containing it is not loaded in the debugging session

When I run the program normally I get the following error
Object doesn't support this property or method:'racMain.txtsqlquery
I don't know why it says 'racmain.txtsqlquery' instead of 'racmain.txtsqlquery.text'. I have fully qualified it

How do I make the dll recognize or see the form?
 
Look in your Windows Form Designer generated code region... its declared
Friend there..


mike said:
the object is a text box on the form. if you have to explicitly make it
public, then how do you do that to a text box?
 
i changed the Friend Class RACMain to Public Class RACMain but that didn't help
the only code in the "Windows Form Designer generated code " was
#Region "Windows Form Designer generated code
Public Sub New(
MyBase.New(
If m_vb6FormDefInstance Is Nothing The
If m_InitializingDefInstance The
m_vb6FormDefInstance = M
Els
Tr
'For the start-up form, the first instance created is the default instance
If System.Reflection.Assembly.GetExecutingAssembly.EntryPoint.DeclaringType Is Me.GetType The
m_vb6FormDefInstance = M
End I
Catc
End Tr
End I
End I
'This call is required by the Windows Form Designer
InitializeComponent(
End Sub
 
Back
Top