I' retrieving a color from ColorDialog, and it appears to be in ARGB format. I'm trying to save this in a config file, along with other data, so that I can retrieve later. Can't work out a format to save it in which will convert back into a usable color. ANy ideas?
I have a large CSV file, and I need to enclose every field with double quotes (a requirement for the application importing it). I had thought it would be an easy task, but it has beaten me!
I have tried inserting double quotes each side of the commas, which I though would work, but I either get...
I have successfully(?) installed VB6 on my new Win11 machine, with SP6. Two issues though:
1) Although all the SP6 components are there and working, the splash screen doesn't show SP6, and neither does 'About'.
2) I have installed the MSDN help files, but VB6 doesn't seem to link to them.
Any...
I'm struggling to create workable code to do what appears to be a simple task!
I have a directory A, containing several hundred sub-directories, each one of which contains many individual files.
I want to move ALL the individual files into a single new directory.
Any help appreciated.
I am trying unsuccessfully to use the SmtpClient to send an email. The following code generates an error and fails. Any ideas?
Dim email As New Net.Mail.MailMessage(<Sender>, <Recipient>)
email.Subject = "My Subject"
email.Body = "My Body Text"
Dim MySmtp As New...
OK..I have installed VB6 on Windows8 64-bit, and with a bit of tweaking on the compatibility options it runs fine. However, SP6 refuses to install - it seemingly goes through the process, but then reports that it has NOT correctly installed. Has anyone managed this yet?
In VB2010 I compact a Jet database using JRO.CompactDatabase(........
This all works just fine, and if my database is e.g. 80MB to start with, I typically get a compacted db of around 10MB. All good so far.
But here is a strange thing - if I use WinZip to further compress the original 80MB db...
I have a VB2010/.NET4 program using ADO to connect to a Jet database, both reading and writing to it. It works just fine in the development environment, but when deploying on other machines it errors with the following:
************** Exception Text **************
System.InvalidCastException...
I have several applications targeting the .NET4 framework. All fine, except just one which is driving me crazy! When I deploy it on any PC other my own it throws the error "The type initializer for '<MyModuleName>' threw an exception". Does anyone know anything about this problem?
I'm sure that I'm missing something really obvious here, but I can't see how to put a bookmark in my code in VB2008/VB2010. In VB6 it was easy, but I just can't see how to do it in .NET
My application uses a Jet/Access database to store information. I have no problems with creating, updating, inserting new data etc. However, I do have an issue to which I can not find a successful solution. In code, for example, I update the database and close it. I then immediately open it...
I am successfully sending emails from VB2010, using the default email client, with the following code:
System.Diagnostics.Process.Start("mailto:me@mydomain.com?body=MyText&subject=MySubject")
Is there a way of also including an attachment?
I am writing an application where I need to copy some data files into the user's application folder, which is located in ProgramFiles. I know that data should not be stored here, but this is a third party application and that is where they have put them! I am just adding some extra...
I have discovered a problem with the FolderBrowserDialog. If instead of selecting a folder with a left-click the mouse right-click is used, then a trappable error #99 occurs ("External component has thrown an exception"). Any further interaction with the dialog then throws a system error...
I am trying to trap combinations of the ALT/SHIFT keys in the KeyDown event of a form, using this code:
Private Sub frmMDI_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
If Control.ModifierKeys = Keys.Shift Or...
I can (fairly) easily use the built-in migration wizard to convert my VB6 code to VB2008. However, VB2010 does not appear to want to know about VB6, and will not recognise any project files. I know that this forum strictly does not cover VB2010, but has anyone got experience of this?
A small but niggling situation which I cannot resolve is why the Progress Bar Style 'Blocks' simply does not work. The 'Continuous' and 'Marquee' setting are fine, but whatever I try, the 'Blocks' style simply appears the same as 'Continuous'. Any ideas?
I have a PictureBox control containing a set of graphics which I have generated. I had thought that I could copy the contents to another PictureBox by using code like:
PictureBox2.Image = PictureBox1.Image
but that does not seem to do anything. Any ideas out there?
I am new to ADO.NET, having been using ADO in VB6. Most things seem quite manageable, but I am having problems with two aspects. In my application I need to create a database if it does not exist, and in ADO I did it like this:
Dim cat As New ADOX.Catalog...
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.