Search Results - VBForums

Search:

Type: Posts; User: paulg4ije

Page 1 of 10 1 2 3 4

Search: Search took 0.02 seconds.

  1. Thread: json error

    by paulg4ije
    Replies
    7
    Views
    79

    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....
  2. 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...
  3. 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:
    ...
  4. 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 ...
  5. 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:
  6. Replies
    5
    Views
    140

    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...
  7. 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.
  8. Replies
    5
    Views
    240

    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
  9. Replies
    13
    Views
    236

    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))
  10. 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...
  11. 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 ...
  12. Replies
    7
    Views
    221

    Re: Confused with Process.Start

    Glad you found it. :wave:
  13. Replies
    7
    Views
    221

    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)
  14. 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...
  15. 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).
  16. 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,...
  17. 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...
  18. 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...
  19. 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...
  20. Replies
    1
    Views
    395

    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);...
  21. Replies
    1
    Views
    395

    [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...
  22. VS 2010 Re: Get Date from string containing short month and year

    Oh man! Rookie error ... many thanks :o
  23. 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....
  24. Replies
    2
    Views
    164

    Re: Deleting records from Access database

    Duh! Yes, that makes sense. Thanks :o
  25. Replies
    2
    Views
    164

    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"...
  26. VS 2010 Re: Get name of image clicked in WebBrowser control

    That seems to work nicely! Many thanks indeed.
  27. 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...
  28. 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

    ...
  29. 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...
  30. 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...
  31. 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
    ...
  32. 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...
  33. 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...
  34. 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...
  35. VS 2010 Re: Open multiple files without starting multiple instances (Application.CommandLineA

    All OK now - rookie error! I forgot to prefix my method with the name of the form :o

    Many thanks to you both.
  36. VS 2010 Re: Open multiple files without starting multiple instances (Application.CommandLineA

    Many thanks for that. I had never noticed the "Single Instance" option. Very handy! I am getting an error when trying to handle the MyApplication_StartupNextInstance event, but I need to look that up...
  37. VS 2010 [RESOLVED] Open multiple files without starting multiple instances (Application.CommandLineArgs)

    I have a program that handles a particular (custom) filetype and I can start my program by double-clicking on an associated file. I use My.Application.CommandLineArgs to get the name of the file that...
  38. Re: First PHP code - help creating mutiple image pages

    I think I'm nearly there Justin. The crucial changes are:


    $i = $currentpage>1 ? ($currentpage-1) * $pageitemcount : 0;
    $ilimit = $i + 25;
    for($i;$i < $ilimit; $i++){

    I'm not getting the...
  39. Re: First PHP code - help creating mutiple image pages

    Still not quite working - first page OK but others are blank. If I echo $i and $pageitemcount just before for($i;$i < $pageitemcount; $i++){ I get 0 and 25 on the first page then 49 and 25 on page 2....
  40. Re: First PHP code - help creating mutiple image pages

    Thanks Justin. I'll check that 'multipart/form-data' bit tonight - I'm at work at the moment, on-site with a customer, watching 10GB of photos copy very slowly on to a memory stick ...

    I worked...
Results 1 to 40 of 380
Page 1 of 10 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.