Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: sacsac
  • Content: Threads
  • Order by date
  1. sacsac

    Color Dialog

    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?
  2. sacsac

    Commas in CSV fle

    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...
  3. sacsac

    Installing on Win11

    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...
  4. sacsac

    Combining sub-directories

    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.
  5. sacsac

    SmtpClient

    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...
  6. sacsac

    VB6 SP6 on WIndows 8 64-bit

    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?
  7. sacsac

    Compacting a Jet Database

    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...
  8. sacsac

    ADODB.Connection

    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...
  9. sacsac

    The type initializer for &lt;module name&gt; threw an exception

    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?
  10. sacsac

    Code bookmarks

    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
  11. sacsac

    Jet Database updating

    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...
  12. sacsac

    Sending emails with attachment

    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?
  13. sacsac

    Writing to Program Files folders

    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...
  14. sacsac

    FolderBrowserDialog

    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...
  15. sacsac

    2-digit date settings

    How can I retrieve the system Region & Language settings which define the year span used for 2-digit years. (e.g. 1932 to 2031) ?
  16. sacsac

    Trapping Modifier Keys

    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...
  17. sacsac

    VB migration to 2008 .. and beyond

    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?
  18. sacsac

    Progress Bar

    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?
  19. sacsac

    Copy Picture Box

    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?
  20. sacsac

    Database creation and table creation in ADO.NET

    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...

Part and Inventory Search

Back
Top