R
Rob Stevens
I am having a bit of a problem accessing some information in a different
namespace,
hopefully someone can point out what I am doing wrong.
I have a dll file that I dont want to use in my program, I just want to use
the functions
in my program. But after placing the class into my program, I can't seem to
get the
funcs to compile.
//------------------------------------------------------------------------------
namespace TextBox_Editor
{
public partial class frmMain : Form
{
public frmMain()
{
InitializeComponent();
}
// I want to access 'Settings' from below here in the main
// scope but the error states it does not kow what it is.
private void frmMain_Load(object sender, EventArgs e)
{
TextBox1.Settings.Keywords.Add("function");
}
namespace Highlighter
{
public class MyTextBox : System.Windows.Forms.TextBox
{
private mySettings m_settings = new mySettings();
private string strtrLine = "";
public SyntaxSettings Settings
{
get { return m_settings; }
}
}
}
}
}
What do I need to do here to get this to work?
TIA
namespace,
hopefully someone can point out what I am doing wrong.
I have a dll file that I dont want to use in my program, I just want to use
the functions
in my program. But after placing the class into my program, I can't seem to
get the
funcs to compile.
//------------------------------------------------------------------------------
namespace TextBox_Editor
{
public partial class frmMain : Form
{
public frmMain()
{
InitializeComponent();
}
// I want to access 'Settings' from below here in the main
// scope but the error states it does not kow what it is.
private void frmMain_Load(object sender, EventArgs e)
{
TextBox1.Settings.Keywords.Add("function");
}
namespace Highlighter
{
public class MyTextBox : System.Windows.Forms.TextBox
{
private mySettings m_settings = new mySettings();
private string strtrLine = "";
public SyntaxSettings Settings
{
get { return m_settings; }
}
}
}
}
}
What do I need to do here to get this to work?
TIA