Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27027

VS 2010 How to Read ListBox Items from Form2 without having the form open? (Using a Timer)

$
0
0
Hi everyone!

I have created a List for Users that can Control a Media Player. The list is in my Form2 and all the users in the list are
considered as Admins! I am using a Timer to Read the from Listbox in Form2!

The problem is that I MUST open the form2 befor it can read the Items from it!

I tried to use different Methods, Like "Form2.Hide()" and "Form2.Visible = False" But didnt work.
Please notice that the form2 is also being used when I want to add users in it. So it should only be available when I choose to have it open "Form2.Show()". I only want it hidden when there is not need for it, but still be able to read from it. So in a way I need the listbox in form2 to work at all time but invisibly!

Is there any other possible way to Read from the Listbox in form2 without having it open?

Thanks a lot in advance

Viewing all articles
Browse latest Browse all 27027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>