Search:

Type: Posts; User: Arnoutdv

Page 1 of 13 1 2 3 4

Search: Search took 0.16 seconds.

  1. Re: Enhancing a VB6 App with Interactive Particle Effects Using RichClient6 & WebView

    Better explain why you want an animation which is playing in a browser to be shown as the background of your form
  2. Replies
    25
    Views
    1,070

    Re: [ON PAUSE] - MS FlexGrid edit..

    If both tables contain the same IDs then in theory you can do 2 queries and then fill the first column of the grid with the content of the first query and when finished fill column 2 with the content...
  3. Re: If LOF = Finshed input into box, then exit sub, if LOF not Finished then goto lin

    Almost everything is wrong in the UserControl_Initialize..
    But because of your On Error Resume Next it's all ignored



    Private Sub UserControl_Initialize()
    '------------ Remove this line to...
  4. Re: [RESOLVED] Strange behavior of a "TIMER" control

    Thanks for reporting back!
  5. Replies
    9
    Views
    452

    Re: get date created of file on web

    Then you need to write some code to parse the returned date string, that’s what programming is about
  6. Re: Strange behavior of a "TIMER" control

    I assume all Timers you used are based on the same Timer control?
    Then I would say it's something in your code.
  7. Re: Strange behavior of a "TIMER" control

    I've never seen the described behavior.
    I only set the Interval once (in the properties of the IDE) and do Enable/Disable the Timer in code
  8. Replies
    14
    Views
    643

    Re: sequential file save read option button

    Very confusing to read, with all those blank lines...

    1st
    You have a Loop Until Eof()


    Do While Not (EOF(hFile))
    Line Input #hFile, tempopt
    ' some other code
    Loop
  9. Replies
    14
    Views
    643

    Re: sequential file save read option button

    It's a control array, the correct syntax for this is:


    For idx = optHardDrive.LBound to optHardDrive.UBound
  10. Re: If LOF = Finshed input into box, then exit sub, if LOF not Finished then goto lin

    Looks okay to me.
    But I don't see how this is related to your File IO question..
    Can you explain?
  11. Re: If LOF = Finshed input into box, then exit sub, if LOF not Finished then goto lin

    I don't understand what you mean.
    English is not my native language and maybe not yours either, so please rephrase your reply.
  12. Re: If LOF = Finshed input into box, then exit sub, if LOF not Finished then goto lin

    No need to set the PlayState for every file IO statement
    Just set once before and after the the file IO.


    Dim fID As Integer
    Dim sLine As String
    Dim lLineCnt As Long

    fID = FreeFile
  13. Re: If LOF = Finshed input into box, then exit sub, if LOF not Finished then goto lin

    Dim fID As Integer
    Dim sLine As String
    Dim lLineCnt As Long

    fID = FreeFile

    ' The beginning, opening the file
    Open "c:\myfile.txt" For Input As fID

    ' Check if we reached the...
  14. Re: If LOF = Finshed input into box, then exit sub, if LOF not Finished then goto lin

    Sounds like a basic File IO loop?


    Dim fID As Integer
    Dim sLine As String

    fID = FreeFile
    Open "c:\myfile.txt" For Input As fID
    Do Until EOF(fID)
    ' No need for goto 1, do...
  15. Replies
    14
    Views
    643

    Re: sequential file save read option button

    Something like this??


    Select Case txtCostHarddrive.Text
    Case "26.78": Index = 0
    Case "36.81": Index = 1
    Case "42.56": Index = 2
    Case "53.31": Index = 3...
  16. Re: Enhancing a VB6 App with Interactive Particle Effects Using RichClient6 & WebView

    It seems you are copying a screengrab from window A (WebViewer??) to window B (a cairo VB6 surface).
    This takes time a hardly can be done realtime and when using PNG compression it takes even more...
  17. Replies
    7
    Views
    412

    VS 2019 Re: Displaying HTML in Rich Text Box

    https://www.nuget.org/packages/sautinsoft.htmltortf
  18. Replies
    8
    Views
    527

    Re: what is the MS Paint HSV?

    https://en.wikipedia.org/wiki/HSL_and_HSV
    “V is the value or brightness”
  19. Replies
    24
    Views
    785

    Re: Hitting GDI Count

    @Elroy post #9 contains a sample project with the results Mike sees
    Increasing GDI count when refreshing the Picture object of a PictureBox control.
  20. Replies
    8
    Views
    438

    Re: Ms FlexGrid header alignment only

    If you check the help (f1) you can see that Textmatrix is just for setting/getting a string from cell, nothing else.

    Check my mini tutorial with a more or less generic method for manipulating cell...
  21. Replies
    8
    Views
    438

    Re: Ms FlexGrid header alignment only

    To use CellAlignment you first have to activate the correct row and column using the .Col and .Row properties
  22. Replies
    24
    Views
    785

    Re: Hitting GDI Count

    No, because it's about the GDI handles.
    You need to "have" them before you can release them

    /* edit: have you played with AutoRedraw property?
  23. Replies
    24
    Views
    785

    Re: Hitting GDI Count

    For posting pictures in a post use "Go Advanced" -> "Manage Attachments"
    Also mark a piece of text in your posting as a code block using the "#" in the toolbar
  24. Replies
    24
    Views
    785

    Re: Hitting GDI Count

    What if you destroy the picture object first before assigning a new object?


    For x = 1 To 100
    Set arrow.Picture = Nothing
    arrow.Picture =...
  25. Replies
    24
    Views
    785

    Re: Hitting GDI Count

    The last loop is pointless because you are destroying the same object over and over.

    Are you sure there is not additional code in the first loop causing the GDI leak?
    Because also in the first...
  26. Re: $30,000 Porsche Xiaomi electric car,do you like it?

    The roads are very narrow??
    We have separate roads for bicycles and we have even more roads which are only allowed for cars (and trucks), those highways are not narrow. In larger cities the bike is...
  27. Re: Printing a Large Image from Combined PNG Files: Ensuring Correct Width Settings

    The VB "trick" would be, not merging the PNG to a single PNG, but printing the individual PNG files one by one.
  28. Re: Printing a Large Image from Combined PNG Files: Ensuring Correct Width Settings

    I don't think this anything to do with VB6, but is more a generic printer (driver) question/problem.
    Secondly you posted in the Codebank instead of a the normal VB6 forum.

    Question: Why do you...
  29. Replies
    12
    Views
    695

    Re: Can't debug drag and drop

    Maybe because the IDE is running elevated and the Explorer is not
    For testing drag and drop from the explorer I always run an elevated explorer
  30. Replies
    16
    Views
    938

    Re: [RESOLVED] Time and Date from memory

    The Date datatype is just a double.
    The integer part is the date since 30 December 1899 (date = 0)
    The fractional part is the number of seconds divided by 86400
    No needs for roundtrips :)
  31. Replies
    22
    Views
    1,054

    VS 2019 Re: Process faster in nested for loops

    Then a 1 million dollar question still needs to be answered, what needs to be done when 2 records/items are the same?
  32. Replies
    22
    Views
    1,054

    VS 2019 Re: Process faster in nested for loops

    Does VB.Net also has the concept of UDT or Structs?
    Or is an UDT a lightweight class in .Net?
  33. Re: VSFlexGrid only picture in column and not text.

    Is there a specific reason for having the grid bound to a dataset?
    In other words can it be disconnected?
  34. Replies
    201
    Views
    37,526

    Re: NewTab: tab control for VB6

    Convert your form to a user control.
    If you insist in having a form in a form then use the SetParent API, but you can get strange behavior
  35. Re: VSFlexGrid only picture in column and not text.

    And what if you set .TextMatrix to ""


    With grid
    .Redraw = flexRDNone
    For f = 1 To .Rows - 1
    If .ValueMatrix(f, 2) = 0 Then
    .Cell(flexcpPicture,...
  36. Replies
    22
    Views
    1,054

    VS 2019 Re: Process faster in nested for loops

    You want to merge to 2 arrays?
    What would the outcome look like?
  37. Replies
    22
    Views
    1,054

    VS 2019 Re: Process faster in nested for loops

    You can reduce it to a single loop if you sort the data while keeping the indices of the items.
    Then you need a single loop in which you just compare the current item with the next item.

    An...
  38. Replies
    22
    Views
    1,054

    VS 2019 Re: Process faster in nested for loops

    Maybe a silly question, but why do you have 2 arrays if the contain the same data?
    And what needs to be done when there more than 1 instances of a value in the data?
  39. Replies
    7
    Views
    2,931

    Re: Aligning text in a msflexgrid

    Check this codebank sample, you can call this method to change the appearance for a range of cells:
    https://www.vbforums.com/showthread.php?901180-MSFlexGrid-The-power-of-the-FillStyle-property
  40. Replies
    95
    Views
    3,926

    Re: new project - DB help needed please

    You refer to a field in sSql1 which you don’t use (yet)
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width