Calling Public Function form other form
Posted on 2006-11-29
I am having two forms say FormA and FormB, FormA is having Listview and a Public Function say LoadData, to fill ListView with data, I called this function from Form_Load_Event of FormA which load the ListView with data without problem but if I call this Function form FormB it does not do any thing.
I call this function from FormB in following manner:
Private Sub btnOk_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOk.Click
Dim FrmC as New FormA