15,896,444 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Zack Mcintosh (Top 11 by date)
Zack Mcintosh
28-Sep-12 16:45pm
View
Never mind I reloaded the project and it fixed it
Zack Mcintosh
9-Sep-12 22:45pm
View
I got it thanks to slight help from you. It works with String.IsNullOrWhiteSpace
If String.IsNullOrWhiteSpace(item) Then
Else
ListBox1.Items.Add(item)
End If
Zack Mcintosh
7-Sep-12 1:18am
View
Just to fill you in so you can help even more. This is to work with a program called DropBox. It creates it's directory in the user's folder that installs it. I want to make a program that will look for, find, and load the file in the user's folder. Not just my folder though but on someone else's computer as well so it has to find the current user or whatever to be able to load the .txt files into a textbox so I can edit them straigt from a program instead of having to keep opening them. Would I be able to place the program in that folder and have it return the directory of that folder with the code above? That makes since to me at least.
Zack Mcintosh
6-Sep-12 15:46pm
View
Also how would you go about finding current user directory?
Zack Mcintosh
29-Aug-12 13:55pm
View
The guy is still getting the same problem.
Zack Mcintosh
28-Aug-12 18:38pm
View
what settings file?
Zack Mcintosh
28-Aug-12 16:14pm
View
Thank you for being so polite about this. The only thing this program has to do with reading any file on form load is reading s few files that are online so everyone has access to them. The only other thing I can think of is with newer versions of my program with the auto updater. I have it to delete and download the updater everytime the program opens the 'Check For Updates' form so I can make sure everyone has the latest version of the updater incase I find any bugs in it or make any changes. The code for deleting the old updater is in a try statement so I don't see how it would cause the program to not load if it can't find the file and I know everyone has the updater because it is installed into the directory with the program when someone installs it.
Zack Mcintosh
28-Aug-12 15:53pm
View
[code]
Try
Dim instance As WebClient = New WebClient
Dim address As String = "https://dl.dropbox.com/u/76035776/xPro/xProNews/XboxNews.txt"
Dim returnValue As String
returnValue = instance.DownloadString(address)
KryptonTextBox1.Text = returnValue
Catch ex As Exception
End Try
Try
Dim instance As WebClient = New WebClient
Dim address As String = "https://dl.dropbox.com/u/76035776/xPro/xProNews/Battlefield.txt"
Dim returnValue As String
returnValue = instance.DownloadString(address)
KryptonTextBox2.Text = returnValue
Catch ex As Exception
End Try
Try
Dim instance As WebClient = New WebClient
Dim address As String = "https://dl.dropbox.com/u/76035776/xPro/xProNews/Minecraft.txt"
Dim returnValue As String
returnValue = instance.DownloadString(address)
KryptonTextBox3.Text = returnValue
Catch ex As Exception
End Try
Try
Dim instance As WebClient = New WebClient
Dim address As String = "https://dl.dropbox.com/u/76035776/xPro/xProNews/Other%20Games.txt"
Dim returnValue As String
returnValue = instance.DownloadString(address)
KryptonTextBox4.Text = returnValue
Catch ex As Exception
End Try
If Not File.Exists("C:\xPro\xProUpdater.exe") Then
Try
link = "https://dl.dropbox.com/u/76035776/xPro/xProUpdater.exe"
Dim wr As WebRequest
wr = WebRequest.Create(link)
Dim webr As WebResponse = wr.GetResponse
Dim wc As New WebClient
wc.DownloadFile(link, "C:\xPro\xProUpdater.exe")
Catch ex As Exception
End Try
Else
'Do Nothing
End If
If My.Settings.AutoUpdate = Nothing Then
My.Settings.AutoUpdate = "On"
End If
If My.Settings.AutoUpdate = "On" Then
AutoupdateToolStripMenuItem.Text = "Autoupdate: On"
Try
KryptonLabel3.Text = Me.ProductVersion
Dim instance As WebClient = New WebClient
Dim address As String = "https://dl.dropbox.com/u/76035776/xPro/Version.txt"
Dim returnValue As String
returnValue = instance.DownloadString(address)
KryptonLabel4.Text = returnValue
If KryptonLabel3.Text >= KryptonLabel4.Text Then
Else
CheckUpdate.Show()
End If
Me.Refresh()
Catch ex As Exception
MessageBox.Show("Error: Failed to check latest version.")
End Try
ElseIf My.Settings.AutoUpdate = "Off" Then
AutoupdateToolStripMenuItem.Text = "Autoupdate: Off"
End If
Me.Show()
Timer1.Start()
NotifyIcon1.Text = "xPro " + Me.ProductVersion
If My.Settings.SearchEngine = Nothing Then
My.Settings.SearchEngine = "Google"
End If
Try
KryptonManager1.GlobalPaletteMode = My.Settings.Theme
Catch ex As Exception
KryptonManager1.GlobalPaletteMode = ComponentFactory.Krypton.Toolkit.PaletteModeManager.Office2007Black
End Try
KryptonComboBox1.Text = My.Settings.SearchEngine
[/code]
That is the load code for the main form
Zack Mcintosh
28-Aug-12 15:41pm
View
Thanks for the advice. I guess I shoould have mentioned that I am not the one getting the error. I have no problems running my program but when someone else downloads it to use it they have this problem. I figured the System.IO was the part of the error details that was causing it but I am not sure what is doing it in my program. I will just have too try and find it I guess. I do Debug it before I publish it every time.
Zack Mcintosh
28-Aug-12 15:20pm
View
There is a lot of coding to this program. I can't post it all on here. People stated that they can't really help me without seeing the code so that is all I can do.
Zack Mcintosh
28-Aug-12 14:42pm
View
https://dl.dropbox.com/u/76035776/xPro/xProSource.zip
You can download the source of my program there. I hope that helps.
Show More