Search Results - VBForums

Search:

Type: Posts; User: Peter Swinkels

Page 1 of 7 1 2 3 4

Search: Search took 0.03 seconds.

  1. 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?...
  2. Replies
    2
    Views
    116

    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...
  3. 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...
  4. Replies
    2
    Views
    115

    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!...
  5. Replies
    1
    Views
    102

    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}...
  6. Replies
    1
    Views
    115

    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...
  7. 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...
  8. 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...
  9. 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...
  10. Replies
    16
    Views
    335

    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...
  11. 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?
  12. Replies
    8
    Views
    195

    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...
  13. Replies
    8
    Views
    195

    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
  14. Replies
    2
    Views
    122

    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:...
  15. Replies
    5
    Views
    195

    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....
  16. Replies
    4
    Views
    116

    Re: problem loading picture

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

    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...
  18. Replies
    3
    Views
    208

    Re: Find String inside of a Byte array

    Try this:


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

    Imports System
    Imports System.Text
  19. Re: Problem with getting raw image bytes from WIA

    Why not use the GetDIBits API function?



    Option Explicit

    Private Type BITMAPINFOHEADER
    bmSize As Long
    bmWidth As Long
    bmHeight As Long
  20. Re: Another Serial Question. String or Byte

    I've taken a quick look at your code and I'm afraid that I can't really help you with anything specifically related to serial ports. However I can give you some general advice on programming: I...
  21. Replies
    4
    Views
    194

    Re: How are windows created

    Take a look here: http://www.vbforums.com/showthread.php?699019-Creating-a-window-by-using-the-API
  22. VS 2010 Re: How to Setup Startup Form in a VB.NET DLL Object

    You can't set the startup object for a DLL. Any initialisation needs to be done in "sub new":



    Class Class1
    Sub New()
    REM Put your initialization code here.
    End Sub
    End Class
  23. Re: Another Serial Question. String or Byte

    Do you have any code that you could post here? That would make helping you easier.
  24. Re: Is vb the right application for what I am trying to do?

    Here is a simple console program that can convert bitmaps to jpg files and also resize them:



    'This module's imports and settings.
    Option Compare Binary
    Option Explicit On
    Option Infer Off...
  25. Replies
    3
    Views
    180

    Re: MDI Form border problem

    Is the window you're trying to modify part of your own application or another program? If it's part of your own program I don't really understand why you would want to change its properties using the...
  26. Re: Run time error 94 "Invalid use of Null"

    You could try using the IsNull() function to check whether a variable is a null or not. You might want to look at the code attached to this thread:...
  27. Re: VB3 program saved in binary need to convert to text problem

    I should be able to get my copy of Visual Basic 3.0 running under Windows 3.11 in DOSBox. If you mail me the files or post them here I can try converting them.

    EDIT:
    Windows 3.11 and Visual Basic...
  28. Replies
    9
    Views
    308

    Re: Cant figure out the right code

    First of all: this belongs in the vb.net forum. What kind of files do you want to protect? Windows provides way to determine which users can access certain files and folders. Microsoft Office and...
  29. Re: Is there maximum length of input to an InputBox?

    I did some testing, it appears to be that the maximum input length for the InputBox function is 254 characters.

    Test code:


    MsgBox Len(InputBox("Input:", , String(1024, "*")))


    The code...
  30. Re: Unicode and the registry; so many extra chars

    From the MSDN on the RegQueryValueEx function:
  31. Re: Pick a number between 20 and 60????

    To avoid an exception when the user doesn't enter an integer, you could try this code:



    Dim Success As Boolean = Integer.TryParse(Console.ReadLine(), Number)


    The "Success" variable will...
  32. Re: Motion Detector.NET - detects movement inside a webcam's field of view.

    Okay, I made some changes to the code. Thanks for the comments. If you find anything else...
  33. Re: Motion Detector.NET - detects movement inside a webcam's field of view.

    Hi, thanks for commenting on my program. To answer your questions:

    1. CInt(0) - I always explicitly convert literal numerals to the required data type when doing API calls. A bit redundant...
  34. Re: Unicode and the registry; so many extra chars

    Ok. As you can see in my second to last post, I corrected these things.
  35. Re: Unicode and the registry; so many extra chars

    What do you mean? The data returned by the RegQueryValueExW function is converted only once. The first StrConv function call is to pass the value's name as unicode.

    EDIT 1:
    I took another look at...
  36. Re: Unicode and the registry; so many extra chars

    Try this code:



    Option Explicit

    Private Const ERROR_SUCCESS As Long = 0&
    Private Const KEY_ALL_ACCESS As Long = &HF003F
    Private Const MAX_REG_VALUE_DATA As Long = &HFFFFF
    Private Const...
  37. Re: Please help me help someone else

    You could try using a password on the .zip file (or any other archive type that supports it.) to bypass a virus scanner. I had to do that on occasion when I had to send some one a binary file. Just...
  38. Re: ADODB and SQL queries with parameters question

    It works now, thank you very much.
  39. Re: ADODB and SQL queries with parameters question

    Ok, thanks for the reply. I decided to forget about the second parameter. I now use the CreateParameter function. It still doesn't work though:



    Option Explicit

    Public Sub...
  40. Re: ADODB and SQL queries with parameters question

    I didn't add parameters? Then what is the Execute method's second parameter for? The documentation states that you can pass a variant array of parameters with it.



    Set CommandResult =...
Results 1 to 40 of 279
Page 1 of 7 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.