Search:

Type: Posts; User: krtxmrtz

Page 1 of 13 1 2 3 4

Search: Search took 1.40 seconds.

  1. Replies
    4
    Views
    700

    Re: Rectangular shape substitute

    I see.

    Well, I've found an alternative possibility which allows to even control the degree of opacity:

    https://www.codeguru.com/csharp/.net/net_general/creating-a-.net-transparent-panel.html
    ...
  2. Replies
    4
    Views
    700

    Re: Rectangular shape substitute

    Thanks but it still won't work, the panel is not shown as if it were in a layer behind the image.

    Initially the picturebox is empty and has the panel on it that I've added at design time.

    Then...
  3. Replies
    4
    Views
    700

    Rectangular shape substitute

    I'm upgrading an old application from vb6 to vb.net and I need a replacement for a rectangular shape control. This shape lay on top of a picturebox and worked like Photoshop's rectangle on the...
  4. Replies
    7
    Views
    1,982

    Re: Image to array

    I got it to work in no time. Very easy to use and fast as lightning!
  5. Replies
    7
    Views
    1,982

    Re: Image to array

    Thanks for the suggestion but my knowledge of C# is still inaproppriate to say the least.
  6. Replies
    7
    Views
    1,982

    Re: Image to array

    Thanks, this looks very much like what I was after, I'm going to start playing around with it.
  7. Replies
    7
    Views
    1,982

    Image to array

    I want to copy the image in a picturebox to a 1D array of integers where each elment would be a pixel colour.

    I'm wondering whether it's best to use .Net methods which partly I have yet to learn...
  8. Replies
    4
    Views
    769

    Re: Find out if a pixel belongs to a region

    Thank you for your suggestions.

    In the meantime I have Googled and found some interesting stuff on binary image analysis that I'm going to study in the next few days. If I can find no answers then...
  9. Replies
    4
    Views
    769

    Re: Find out if a pixel belongs to a region

    This is an old VB6 project I'm working on again. A few months ago I got started in VB.Net but have not yet migrated this project.

    I have a 1D array of integers (values 0 or 255) representing the...
  10. Replies
    4
    Views
    769

    Find out if a pixel belongs to a region

    I have a black and white image such as the attached one and I want to calculate the area and center of mass of the inner (hole) region.

    The problem I'm facing is for a spcific white pixel how to...
  11. Replies
    9
    Views
    1,406

    Re: Image processing (math) question

    Interesting book but I don't see how this chapter is going to help me.

    The question is, given an image like either of the above, how can I detect whether it has an inner group of white pixels? It...
  12. Replies
    9
    Views
    1,406

    Re: Image processing (math) question

    Well, I think I could examine the pixels in a row to the right and left.

    But now a related question that seems to be more difficult.

    The image could be like the one above or like this one:
    ...
  13. Replies
    9
    Views
    1,406

    Image processing (math) question

    Given a binary image such as the attached figure, how can I split the white pixels into 2 subsets, the inner and the outer ones? In other words, how do I determine if a white pixel is entirely...
  14. Re: Problem storing a picturebox content to an array

    Thank you guys!
  15. [RESOLVED] Problem storing a picturebox content to an array

    I have 2 picture boxes,

    Picture1 is visible
    Picture2 is invisible

    I load a picture to Picture2 from a jpg file:

    Picture2.Picture = LoadPicture(SomeFile)

    and then I copy a small area...
  16. Replies
    3
    Views
    629

    Read and display >32K data

    A textbox with the multiline property set to True can hold up to about 32k data. If I want to read a >32K text file and show the data, what control should I use?
  17. Re: Trubleshooting MSCOMCTL.OCX problems

    This is a transcription of the instructions for step 2 above:

    32 Bit Windows

    1. Unregister the new OCX file. Open an instance of the Windows Command Prompt, paste the following command, and...
  18. [RESOLVED] Trubleshooting MSCOMCTL.OCX problems

    In this post

    http://www.vbforums.com/showthread.php?804093-Object-Library-not-registered

    I described the recent problem I had with mscomctl.ocx.

    As a matter of fact I made a search of the...
  19. Replies
    7
    Views
    2,361

    Re: Object Library not registered

    I've finally solved the issue but I'm going to post the details in a new thread.
  20. Replies
    7
    Views
    2,361

    Re: Object Library not registered

    Well, I've tried every suggestion in this thread as well as those linked to, to absolute no avail.

    I thought there might be some conflict with Visual Studio 2013 that I downloaded from Microsoft...
  21. Thread: Printer scale

    by krtxmrtz
    Replies
    3
    Views
    964

    Re: Printer scale

    bump
  22. Replies
    1
    Views
    735

    Listview data alignment

    In a listview, how do I set a different data alignment from that of the column headers? I want to center the column header text but then left align the data below.
  23. Thread: Printer scale

    by krtxmrtz
    Replies
    3
    Views
    964

    Re: Printer scale

    The reported problem occurred when running the application from the IDE. However, the compiled application works correctly.

    Still puzzled.
  24. Thread: Printer scale

    by krtxmrtz
    Replies
    3
    Views
    964

    Printer scale

    I'm defining a printer user scale to print a graph.

    I want the upper left corner of the paper to be (0,120) and the lower right corner (100,-40) so I use this statement:

    Printer.Scale...
  25. Replies
    7
    Views
    2,361

    Re: Object Library not registered

    Well, I don't understand why it happens but every time I run a fresh installation of VB6 on different computers I run into trouble. Sometimes I can fix it after a few tries but this time, on the...
  26. Replies
    7
    Views
    2,361

    Object Library not registered

    I'm getting this error:

    130057

    even after I register mscomctl.ocx with regsvr32.

    I'm running Windows 7 32 bit.
  27. Replies
    3
    Views
    759

    Get image from database

    In a MS Access database I have a table field for images which I input as attachments. Now, how do I retrieve them with VB code and display them on a picturebox? I connect using ADO.
  28. Replies
    7
    Views
    4,236

    Re: [ALMOST resolved] USB ports enable/disable by code

    You're right! Thanks.
  29. Replies
    7
    Views
    4,236

    Re: USB ports enable/disable by code

    I've just realized the value must be REG_DWORD rather than REG_SZ and for this reason the USB port wasn't actually enabled when the value was set to 3.
    How do I build the strKey value in this case?...
  30. Replies
    7
    Views
    4,236

    Re: USB ports enable/disable by code

    Thank you.

    I've finally successfully used the code from post #8 in

    http://www.vbforums.com/showthread.php?618594-RESOLVED-Creating-Updating-and-Deleting-Registry-Key
  31. Replies
    7
    Views
    4,236

    Re: USB ports enable/disable by code

    All right, I assume I must use:

    SaveSetting appname, section, key, setting

    but I'm not sure I can identify the parameters.

    Probably key is "start" and value is 3 but how about appname and...
  32. Replies
    7
    Views
    4,236

    [RESOLVED] USB ports enable/disable by code

    In this registry key

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\USBSTOR

    I want to modify by code the value of Start to 3 or 4 to enable/disable the USB ports.

    However, my googling...
  33. Replies
    9
    Views
    2,917

    Re: ADO reference

    Thank you, now it works and I've also switched to 2.8 instead of 6.x as you suggest.
  34. Replies
    9
    Views
    2,917

    [RESOLVED] ADO reference

    I'm using ADO to connect to an Access 2000 data base by setting a reference to 'Microsoft ActiveX Objects 6.1 Library'. Now my database has been updated to Access 2013. What reference do I have to...
  35. Replies
    2
    Views
    1,611

    Re: Flip image in SetDIBitsToDevice

    So I had that same trouble a few years ago... Thanks for reminding me.

    But setting the negative sign to .biHeight didn't work.

    However this worked for me: right after SetDIBitsToDevice I...
  36. Replies
    2
    Views
    1,611

    [RESOLVED] Flip image in SetDIBitsToDevice

    In the SetDIBitsToDevice API function,

    Declare Function SetDIBitsToDevice Lib "gdi32" (ByVal hdc As Long, ByVal XDest As Long, ByVal yDest As Long, ByVal dx As Long, ByVal dy As Long, ByVal XSrc...
  37. Replies
    6
    Views
    1,335

    Re: Clipping a shape in a printout

    Since in the printer the size must be different I tried Stretchblt but it didn't look nice.
  38. Replies
    6
    Views
    1,335

    Re: Clipping a shape in a printout

    This looks good, thank you!
  39. Replies
    6
    Views
    1,335

    [RESOLVED] Clipping a shape in a printout

    In a form I have a picturebox which contains a circular shape placed at a position resulting from some calculation, usually at or near the center, but sometimes it comes out too offset from the...
  40. Re: Printer.Font.Underline not working

    Moreover:

    The code works on a different computer where that pdf converter' version is different.
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width