Search Results - VBForums

Search:

Type: Posts; User: paulg4ije

Page 1 of 10 1 2 3 4

Search: Search took 0.02 seconds.

  1. VS 2010 Re: [RESOLVED] Writing to parallel port - Windows 7 64-bit

    Indeed; old and popular - just like me :D
  2. VS 2010 Re: Writing to parallel port - Windows 7 64-bit

    I have only used the 64-bit version so I don't think I can be of any help. If I needed to use 32-bit I would just look at the documentation on the highrez.co.uk website.

    Good luck with your...
  3. Replies
    6
    Views
    162

    VS 2010 Re: Comparison Problem

    A couple of quick thoughts: You declare TheHour and TheMinute as integers then format them as strings. Also you use & when you should use AND. Try:


    If (TheHour = My.Settings.BedHr AND TheMinute...
  4. Replies
    6
    Views
    210

    Re: first value of a combobox "-----------"

    So disconnect your data source. As the error message says, you can't choose your own list items if the control is bound to a datasource.
  5. Replies
    11
    Views
    375

    Re: Webbrowser problem again?

    Add a counter to the DocumentCompleted sub (just for debugging purposes - it doesn't solve your problem) and comment out the submit/click line. You might be surprised how many times that event is...
  6. Replies
    7
    Views
    233

    Re: Very simple beginner problem.

    Changing CInt to Val will work.
  7. Thread: json error

    by paulg4ije
    Replies
    7
    Views
    217

    VS 2013 Re: json error

    I know nothing about JSON, but some of your code looks a bit odd to me. Why do you Dim js and then not use it? Shouldn't jsonfile have a type, such as string? What about tester - again no type....
  8. VS 2013 Re: Barcode scanner (LS2208) read barcode

    I don't understand why you would want to do your own thing with the serial port when you already have the data you need in a text box? Hide the text box if you don't want the user to see it, then use...
  9. VS 2013 Re: Get X, Y of 1 pixel of a color in a image?

    If by "scanning" you mean looping through X and Y coordinates, I think that's what you will have to do. This makes it quite a bit faster though:
    ...
  10. VS 2010 Re: Simple Image Gallery in VB 2010

    Just add an instance of the control on Form 1. Try this:



    Public Class Form1

    Dim AuthorCodeImageGalleryVB1 as new AuthorCodeImageGalleryVB

    ' Rest of Form1 code starts here ...
  11. VS 2008 Re: dgv cell if is = with my.date.now.toshort then the text in that row to be RED

    You're welcome :wave:
  12. Replies
    5
    Views
    295

    Re: picture box / graphics help

    I load bitmaps from file using filestream. Not saying it's better or more efficient than other methods but it works for me:


    ' Open image using FileStream so file is not locked and can be saved...
  13. VS 2008 Re: dgv cell if is = with my.date.now.toshort then the text in that row to be RED

    Shouldn't that be ToShortDateString rather than ToShortTimeString? The syntax for coloring the rows looks OK.
  14. Replies
    5
    Views
    406

    VS 2013 Re: LockBits And Image comparison?

    Fastpix by boops boops is a good place to start for fast pixel manipulation:

    http://www.vbforums.com/showthread.php?586709-FastPix-Rapid-Pixel-Processing-for-Dummies-and-Dudes
  15. Replies
    13
    Views
    430

    VS 2010 Re: Incrementing variable usage

    You can't do it quite like that. Use an array instead:

    Dim v(3) as integer

    For i as integer = 1 to 3
    v(i)=i
    Next i

    MsgBox(v(1))
    MsgBox(v(2))
  16. Re: save/edit button not updating access database

    I'm no expert - in fact I really struggle with DB stuff - but I suspect you might need a CommandBuilder.

    This working code connects an Access database to a DataGridView. It might give you some...
  17. VS 2008 Re: how do run a (webpage) from inside my (vb.net) program

    How about including a browser in your program based on the web browser control?

    EDIT: I see you're already using a web browser control. Forget I said anything ...
  18. Replies
    7
    Views
    356

    Re: Confused with Process.Start

    Glad you found it. :wave:
  19. Replies
    7
    Views
    356

    Re: Confused with Process.Start

    I think you must have an error somewhere, as this works for me:


    Dim sApp As String = "notepad.exe"
    Process.Start(sApp)
  20. VS 2012 Re: Searching for a specific file and save the path

    You probably need a recursive search. I hate recursion; my brain is too small to follow the logic but it's often a necessary evil ;-)

    Try this:

    http://support.microsoft.com/kb/306666

    It's a...
  21. VS 2010 Re: Store gray values of image in an 2D array

    If you use a set of fully-saturated colour bars as your test image (try Google images), you should create an 8-step greyscale, from full white (255) to full black (0).
  22. VS 2010 Re: Store gray values of image in an 2D array

    I don't think it applies in your case, but I know when I've done color to gray conversions I have had to clip the values at 255. In you code, it's hard to see how clr.R could ever be more than 255,...
  23. VS 2010 Re: Disable navigation in WebBrowser but still detect mouse click

    Sorry for the delay - internet problems here ...

    Strange but WebBrowser1.AllowNavigation = False doesn't seem to disable navigation at all. I don't think I changed anything but now I do get the...
  24. VS 2010 Disable navigation in WebBrowser but still detect mouse click

    I have the following code which retrieves the name of images from a web page when they are clicked:

    Private Sub WebBrowser1_DocumentCompleted(sender As System.Object, e As...
  25. VS 2012 Re: Multiple Forms Issue - Remaining on one form

    You might like to trying using frmPrint.Showdialog() to make the form "modal" - the user must deal with the options on frmPrint and cannot click on anything else whilst it is visible. When the form...
  26. Replies
    1
    Views
    549

    Re: Resize an image using GD

    I think I've got there:


    <?php
    $source = imagecreatefromjpeg("image.jpg");
    $zoomed = imagecreatetruecolor(640,512);
    imagecopyresized($zoomed,$source,0,0,0,0,640,512,320,256);...
  27. Replies
    1
    Views
    549

    [RESOLVED] Resize an image using GD

    I'm trying to use the PHP GD library to zoom an image to double it's original size. Images are always 320 x 256 and I want to display them at 640 x 512. I want to do it with PHP to get around...
  28. VS 2010 Re: Get Date from string containing short month and year

    Oh man! Rookie error ... many thanks :o
  29. VS 2010 [RESOLVED] Get Date from string containing short month and year

    I have a string containing a short date and a year, e.g. dec2013. The format is always fixed but the month is always lower case. I need to convert this to a date so I can loop through some months....
  30. Replies
    2
    Views
    197

    Re: Deleting records from Access database

    Duh! Yes, that makes sense. Thanks :o
  31. Replies
    2
    Views
    197

    Deleting records from Access database

    Is this code 100% reliable or are there circumstances under which it could fail? I seem to have an obscure bug where very occasionally records that match the SQL are not being deleted. Is "MoveNext"...
  32. VS 2010 Re: Get name of image clicked in WebBrowser control

    That seems to work nicely! Many thanks indeed.
  33. VS 2010 [RESOLVED] Get name of image clicked in WebBrowser control

    Is it possible to retrieve the name of an image (on a web page) that is LEFT-clicked in a WebBrowser control? The image is not a link - although I could change that if it would help. Obviously a...
  34. Re: Remove background except black color

    Something like this:


    Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
    PictureBox1.Image = Image.FromFile("c:\test.png")
    End Sub

    ...
  35. VS 2010 Re: Can't update picturebox image from a module

    Just in case anyone is interested, I fixed the problem: I was creating an instance of the form but then referencing it by the original name, rather than the name of the instance. Still making rookie...
  36. VS 2010 Re: Can't update picturebox image from a module

    Really? How strange ... I'd better go back and do some more tests. I am doing lots of things with the bitmap and picturebox inside the form, but the code was getting big and I thought I might make it...
  37. VS 2010 [RESOLVED] Can't update picturebox image from a module

    I have form with a picturebox on it. I have a global bitmap variable. If I draw something on the bitmap, like this:

    ' GbmRX is a global bitmap variable
    ' pbRx1 is a picturebox control on frmRX
    ...
  38. VS 2010 Re: Program hangs when debugging with no error messages

    I know, but how can you create an infinite loop by just calling a sub, which doesn't even get started? A breakpoint on the first line of the sub is never reached.

    It seems to be an issue with the...
  39. VS 2010 Re: Program hangs when debugging with no error messages

    Just tried running the .exe from the debug folder. Now I do get an error message; seems I've been caught out (again) by a "Mixed Mode Assembly" issue. The usual fix in App.Config doesn't seem to be...
  40. VS 2010 Program hangs when debugging with no error messages

    I have a program that using DirectX.DirectSound that generates various audio tones by filling a buffer with data, including all the required header bytes for a WAV format file. I've used this...
Results 1 to 40 of 386
Page 1 of 10 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.