Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 2,799
» Latest member: Jerrygef
» Forum threads: 856
» Forum posts: 3,643
Full Statistics
|
Online Users |
There are currently 3 online users. » 1 Member(s) | 1 Guest(s) Google, MorrissgoX
|
Latest Threads |
Looking for Adventure? Fi...
Forum: Random Discussion
Last Post: iHOMEz
11-16-2024, 09:18 PM
» Replies: 0
» Views: 453
|
Prettys Womans in your to...
Forum: Random Discussion
Last Post: iHOMEz
10-30-2024, 07:45 AM
» Replies: 0
» Views: 733
|
Prettys Womans in your ci...
Forum: Random Discussion
Last Post: iHOMEz
10-26-2024, 10:50 AM
» Replies: 0
» Views: 764
|
Beautiful Womans from you...
Forum: Random Discussion
Last Post: iHOMEz
10-19-2024, 02:48 PM
» Replies: 0
» Views: 860
|
Prettys Womans in your ci...
Forum: Random Discussion
Last Post: iHOMEz
10-06-2024, 05:00 PM
» Replies: 0
» Views: 1,028
|
Womans from your city - V...
Forum: Random Discussion
Last Post: iHOMEz
07-28-2024, 10:26 AM
» Replies: 0
» Views: 1,406
|
Supreme Сasual Dating - A...
Forum: Random Discussion
Last Post: iHOMEz
06-14-2024, 11:28 AM
» Replies: 0
» Views: 1,828
|
Beautiful Womans in your ...
Forum: VB.NET
Last Post: iHOMEz
06-09-2024, 09:23 PM
» Replies: 0
» Views: 1,633
|
Hangman in Rust
Forum: Other
Last Post: brandonio21
02-04-2018, 11:14 AM
» Replies: 2
» Views: 20,631
|
How to: Search files from...
Forum: VB.NET
Last Post: brandonio21
11-25-2017, 12:55 PM
» Replies: 1
» Views: 15,938
|
|
|
How to: Search files from a certain directory with Progressbar + Backgroundworker |
Posted by: ryanshane91 - 10-31-2017, 07:25 AM - Forum: VB.NET
- Replies (1)
|
|
Hello Everyone, Admin. I'm new to this Forum and i want to ask how to search files from a certain directory with progressbar & background worker?Â
Code: (from the Admin-(Brandonio)) :
----------------------------------------------------------------------------------------------------------
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    BackgroundWorker1.RunWorkerAsync()
  End Sub
  Private Sub BackgroundWorker1_DoWork(ByVal sender As System.Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles BackgroundWorker1.DoWork
    Dim directory = "Path"
    Dim files() As System.IO.FileInfo
    Dim dirinfo As New System.IO.DirectoryInfo(directory)
    files = dirinfo.GetFiles("*", IO.SearchOption.AllDirectories)
    For Each file In files
      ListBox1.Items.Add(file)
    Next
  End Sub
----------------------------------------------------------------------------------------------------------
But whenever i click the button, i get an error saying :Â Cross-thread operation not valid: Control 'ListBox1' accessed from a thread other than the thread it was created on.
----------------------------------------------------------------------------------------------------------
I'm new in VB.NET and i'm making an application that cleans up the Temporary folder.
Thank you. and uh, i like this forum.
|
|
|
Database error anyone help? |
Posted by: sc2142 - 01-24-2017, 03:54 PM - Forum: VB.NET
- Replies (2)
|
|
Im trying to connect my vb.NET Application to my database witch is on my website. Im getting this error:Â
"An unhandled exception of type 'MySql.Data.MySqlClient.MySqlException' occurred in MySql.Data.dllÂ
Additional information: Unable to connect to any of the specified MySQL hosts."Â
The error is being called on "sconnection.open()"Â
Ive searched google and i cant find whats wrong. My site is through Hosting24. Code: http://pastebin.com/Gd4JCakQ
|
|
|
|