Search Results - VBForums

Search:

Type: Posts; User: Peter Swinkels

Page 1 of 8 1 2 3 4

Search: Search took 0.01 seconds; generated 12 minute(s) ago.

  1. Re: How to read previous line from a txt file

    What exactly are you trying to accomplish? Do you have any code to show? Any way, the simplest way to do what you're asking for would be to store the last line read from the file in another variable...
  2. Re: Need code optimization tips for a content aware image resizing program

    Thanks for the replies, I will see what I can do with the suggestions given.
  3. Need code optimization tips for a content aware image resizing program

    Hi,

    I am writing a program that uses content aware resizing (http://en.wikipedia.org/wiki/Seam_carving) to resize an image. As I understand it, this type of resizing essentially comes down to...
  4. Re: Microsoft SQL Server error: "Login failed for user"

    Thank you, techgnome, that did the trick. I used "Provider=SQLNCLI11;Server=***\SQLEXPRESS;Database=TestDatabase;Trusted_Connection=yes;" and it works now.
  5. [RESOLVED] Microsoft SQL Server error: "Login failed for user"

    Hi,

    Wanting to learn a bit more about Microsoft SQL Server I set up a test database using this page to help me along. However, when I try to connect to my database (which is located on the same...
  6. Re: Using ADO to retrieve multiple recordsets while executing a query only once

    Okay, I'm going to forget about NextRecordset, for now at least. I did learn a few interesting things from this though. Which was my main motivation any way. Thanks for all the help.

    EDIT:

    I...
  7. Re: Using ADO to retrieve multiple recordsets while executing a query only once

    @TysonLPrince: Yes, I did realize that I had to change the server in the connection string in the example you gave me. Like I asked in my previous post: "What should I specify for a database on the...
  8. Re: Using ADO to retrieve multiple recordsets while executing a query only once

    @TysonLPrince: Thanks for the code. I tried it, and it just freezes when I run it. Microsoft Visual doesn't respond to anything any more. Nothing to add, it just freezes... I suppose I should change...
  9. Re: Using ADO to retrieve multiple recordsets while executing a query only once

    Alright, I am now using Microsoft Access 2007 and I've tried:
    1. Multiple SQL statements in a single query. Result: "Characters found after end of SQL statement" error.
    2. Connecting two SQL...
  10. Re: Using ADO to retrieve multiple recordsets while executing a query only once

    I switched to Microsoft Access from Excel now. The only thing I'm dead set on is to get those multiple recordsets in one execution. It must be possible otherwise there would be no "NextRecordset"...
  11. Re: Using ADO to retrieve multiple recordsets while executing a query only once

    @TysonLPrince: I should have been clearer: by "didn't work" I meant that I had already tried it and got a ""Characters found after end of SQL statement." error. I did mention this in my first post. I...
  12. Re: Using ADO to retrieve multiple recordsets while executing a query only once

    I tried that, putting multiple "SELECT" statements in one query. It didn't work.

    I've looked at the sample provided on the Microsoft page and I noticed that:
    1. I don't know how I am supposed to...
  13. Re: Using ADO to retrieve multiple recordsets while executing a query only once

    Thanks for the suggestion, I tried it, but it doesn't do what I would like. At least, when I use the following query: "SELECT English FROM [Sheet1$] UNION SELECT Dutch FROM [Sheet1$];" I get the...
  14. [RESOLVED] Using ADO to retrieve multiple recordsets while executing a query only once

    Hi,

    I'm trying to write a query that returns multiple records in one execution. However, when I try to use multiple SQL statements in a single query I get the following error: "Characters found...
  15. Replies
    4
    Views
    246

    VS 2013 Re: How to use this function.

    I'm not sure whether I can help you any further. Perhaps this page can help: http://msdn.microsoft.com/en-us/library/system.directoryservices.directorysearcher.filter%28v=vs.110%29.aspx
  16. VS 2012 Re: How to Synchronize Listbox and Trackbar?

    As far as I know moving the slider on the listbox's scrollbar doesn't change the selection. It simply changes which items in the list are visible.
  17. VS 2012 Re: How to Synchronize Listbox and Trackbar?

    I took a look and I can't find an event that is fired when the user merely scrolls through the list using the scroll bar without changing the selection. Could you try to explain what you're trying to...
  18. Replies
    4
    Views
    246

    VS 2013 Re: How to use this function.

    Does this do what you want?


    Option Compare Binary
    Option Explicit On
    Option Infer Off
    Option Strict On

    Imports System
    Imports System.Collections.Generic
  19. VS 2010 Re: Reading text from textbox

    Hi, I had been looking at your post for a few minutes before noticing you had resolved your problem. You should mark your post as resolved when you found the answer to your question. Any way, you...
  20. Replies
    2
    Views
    250

    Re: Compile Error

    Well, it appears you are trying to refer to a control called OptionsList on your userform. Do you have a control with that name? Perhaps you made a typo? Also, please enclose your code in code tags...
  21. Replies
    7
    Views
    395

    Re: Hello VB6 programmers!

    Hi,

    Here are some remarks:
    1. This forum is for sharing code, not for asking questions.
    2. Use code tags to enclose your code. It makes it easier to read.
    3. I really wouldn't use the GoTo...
  22. Replies
    1
    Views
    147

    Re: Send data to RFID using MsComm

    http://www.codemag.com/Article/0611061
  23. Re: Data environment and Data report

    I assume you are not just opening the file in MSAccess but are trying to connect to it from another file? Are you using Microsoft ADO? Could you post the code you're using for the connection here?
  24. Re: How can I control pop up menu In program another

    What are you trying to accomplish? What do you want to get the other program with a popup menu to do?

    Have you looked here already?...
  25. Replies
    2
    Views
    193

    VS 2013 Re: Why is this leakey??

    After some searching on the internet, it appears that the only ways around this issue are to use the webbrowser control in an external application that is launched when the webbrowser is required or...
  26. VS 2010 Re: Transparent GIF Animated Picture

    Since you haven't provided any code, I can only make this suggestion:

    Have you tried using the System.Drawing.Bitmap.MakeTransparent([System.Drawing.Color]) method?


    Option Compare Binary...
  27. Replies
    2
    Views
    153

    Re: New to VB, need direction!

    After a quick search for "Laplace transform":

    http://www.vbforums.com/showthread.php?666351-Laplace-transform-question-urgently-need-help!...
  28. Replies
    1
    Views
    159

    VS 2010 Re: Index Out of Range

    Your ImageSwitch array contains only two elements and since all arrays in vb.net are base zero, you should be using indexes 0 and 1.



    Public Class Mario
    Dim ImageSwitch() As Integer = {0, 0}...
  29. Replies
    1
    Views
    441

    Connect Four/Four in a Row game

    Here's a simple Connect Four game written in Microsoft Visual Basic 6.0. The game has the following options:

    -Set who plays first. (red or yellow)
    -Whether one of the players is the computer, and...
  30. BF Interpreter.NET - an interpreter for a minimalist programming language

    BF Interpreter.NET is an interpreter for a minimalist programming language called Brain***** designed by Urban Müller. It only has eight different commands. The interpreter is a console program that...
  31. Re: Installing VB 6.0 in Windows 7 error message

    You might also want to try running Setup with various compatibility options enabled such enabling the compatibility mode for Windows XP. Also, after having installed vb6, I've noticed that disabling...
  32. BF Interpreter - an interpreter for a minimalist programming language

    Attached to this thread is an interpreter for a minimalist programming language called Brain***** designed by Urban Müller. It only has eight different commands. The interpreter I made for it can...
  33. Replies
    16
    Views
    470

    VS 2013 Re: Help me with this code.

    Hi, here are some tips that can help you improve your code:
    1. Your seconds are going too fast because you probably have your timer's interval set too low. Is it set to 1000?
    2. The...
  34. Re: Shooting picture box 'bullet' using keyboard keys?

    Hi, first of all you should place your code inside code tags. Secondly, without the complete form and its controls, it's not going to be easy to help you. Perhaps you can post the entire project here?
  35. Replies
    8
    Views
    284

    Re: Count Vowels Code not working

    Yes, and you've the same problem with the "u" in some words. I don't know how to solve this issue with languages that use inconsistent spelling such as English. Perhaps you could do something with...
  36. Replies
    8
    Views
    284

    Re: Count Vowels Code not working

    Try this:


    Option Compare Binary
    Option Explicit On
    Option Infer Off
    Option Strict On

    Imports System
    Imports System.Globalization
  37. Replies
    2
    Views
    250

    Re: Get machine IP Address from VB6.0

    After doing a quick search on the internet I found this:

    1. Networking information such as your computer's address can be found in the Windows registry under the following key:...
  38. Replies
    5
    Views
    318

    Re: audio compression

    I found something you might be able to use:
    https://gfiber.googlesource.com/vendor/opensource/ffmpeg/+/f8a31e2113abc9dc830e93afa8a3d279fe464e7a/libavcodec/truespeech.c
    It's written in C/C++ though....
  39. Replies
    4
    Views
    160

    Re: problem loading picture

    The CStr() function also doesn't leave a space.
  40. Replies
    4
    Views
    366

    Re: Convert word to pdf

    Hi, I copied your code, changed and cleaned it a little. It works now in my case. Here it is:



    Option Compare Binary
    Option Explicit On
    Option Infer Off
    Option Strict On

    Imports...
Results 1 to 40 of 298
Page 1 of 8 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.