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?!

8 Years
Discussion Span
Last Post by sknake

I appreciate everyone's assistance, but I don't know enough to apply your suggestions to my case. Is it NOT possible to fill a combobox text property from a differenc form?


I can't seem to spell today. I am using a listbox as a log not a textbox. Again, is it NOT possible to fill a listbox.text property from a form other than the one the listbox was created?


Seriously.. delete the delete textbox, add a listbox, and change one line of code. Its not that hard.

Here is the attachment since you are having difficulties modifying either set of code examples provided. You're welcome.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.