In case someone else needs the code, here it is (as used in the SharpDevelop IDE instead of MS Visual Studio):
Public Sub New()
' The Me.InitializeComponent call is required for Windows Forms designer support.
Me.InitializeComponent()
Dim w1252 As Encoding = Encoding.GetEncoding(1252)...
Hello
I googled for this and tried a few things, but I'm still stuck at something so simple.
I simply need to let the user copy some UTF-8 text into the clipboard, convert it to Windows-1252, and paste the output back into the clipboard.
It looks like I need to use the System.Text.Encoding...
Hello
I need to write a simple FTP client so that users can upload files to our server with no hassle.
I'm using the VB 2010 Express IDE: Is there a good FTP control that you would recommend, either free or affordable?
Ideally, it should be able to resume uploading in case the connection was...
Hello
I can't figure out why the regex object fails to find a pattern in a web page, although it's pretty simple and a test shows that the pattern is OK. Could it be that I misunderstood how VB's regex object works?
Here's the HTML input:
<table cellspacing="0" cellpadding="0" id="oft">...
Thanks John, problem solved.
Here's the code:
Private Sub BackgroundWorker1_DoWork(ByVal sender As System.Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles BackgroundWorker1.DoWork
'Lengthy process here
e.Result = "Blah"
End Sub
Private Sub...
Hello
In a Windows Form, I need to delegate a lengthy action to a BackgroundWorker so that the main application doesn't freeze.
However, the code in the BackgroundWorker must send data back to the main application. This code from MSDN doesn't include how to do this:
Private Sub...
Hello
I need to write an application that will download a few web pages. The action is launched by clicking on Button1.
To avoid freezing the UI, I use a Background Worker.
To prevent the user from clicking the button again while the pages are being downloaded, I'd like to disable the button...
Their wiki says that the "bundle" version contains System.Data.SQLite.dll, a single, mixed-mode assembly (SQLite + .Net wrapper), and should only be used "to support legacy applications by having it installed in the Global Assembly Cache (GAC)."
I don't understand what it means. Does someone...
After installing "Visual Studio Express 2012 for Windows Desktop", I downloaded and ran "Setups for 32-bit Windows (.Net Framework 4.5) bundle 1.0.84.0".
I left the default option checked "Generate native images for the assemblies and install the images in the native image cache", and didn't...
Hello
I'd like to install the SQLite Ado .Net package, but am confused between...
Setups
Precompiled binaries
Precompiled static
... and whether to use the bundle/no bundle option.
The FAQ recommends always using the Precompiled binaries for both development and user hosts.
I understand...
Thanks for the tips. I'll write the output into an SQLite database, so I can sort the results and write them into a single HTML file once all the threads are done.
Hello
I need to write a small application to download web pages. I only need basic features, so I guess the WebClient object is good enough.
To avoid freezing the UI, I was thinking of using WebClient.DownloadStringAsync(), but dowloading must occur in the right order, while...
Hello
This is probably an easy issue for experts but Google didn't help.
I need to read a text file that contains addresses formatted thusly:
Address1
Address1
Address1
Address2
Address2
Address2
etc.
... and write them into this:
Address1, Address1, Address1
Address2, Address2, Address2...
Problem identified: There was a hidden LF character in the title, which is what was causing the error when creating the file.
Next, I need to find a way to convert a UTF8 filename into its user-friendly ANSI alternative.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.