I am using a textbox as a user visible log on my form1. The following code works as long as it is used only on form1.cs.
lboxLog.Items.Insert(0,"Log this message");
If it is used on any other form I get the following message
The name 'lboxLog' does not exist in the current context.
I have tried to qualify the lboxLog as frm1.lboxLog but get the same message. Suggestions?!
history84084
0
Newbie Poster
Recommended Answers
Jump to PostPerhaps reading this snippet will help http://www.daniweb.com/code/snippet1008.html
Jump to PostHere is an example of how I do this in one of my applications. I have a "comm" window that talks to network appliances and I log debug output from various facets of the app.
All 7 Replies
ddanbe
2,724
Professional Procrastinator
Featured Poster
sknake
1,622
Senior Poster
Featured Poster
sknake
1,622
Senior Poster
Featured Poster
history84084
0
Newbie Poster
sknake
1,622
Senior Poster
Featured Poster
history84084
0
Newbie Poster
sknake
1,622
Senior Poster
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.