I have a main form named mainForm with a listview on it, and a toolbar-button
for calling a second form named StickyNotes. On the StickyNotes I have a txtbox
and a close button.
What I would like is when a user clicks on the toolbar-button to open form StickyNotes
and put some text into the textbox and the presses the close-button. A new row must
be inserted into the listview that resides on the mainForm with the text of the textbox
into the column lvcCaption.
As you can see I have done it myself only I don't how to get to the listview on the mainForm
from the StickyNotes form!
How can I do that?
Who knows the answer and is willing to help me?
Greetings, Peter Kiers
private void StickyNotes_Load(object sender, EventArgs e)
txtCaption.Text = "";
lblCreation.Text = (DateTime.Now.ToString());
private void StickyNotes_FormClosed(object sender, FormClosedEventArgs e)
ListViewItem myItem = new ListViewItem(txtCaption.Text, 0);
myItem = lvNotes.Items.Add(myItem); <=============================