dcsimg

Search:

Type: Posts; User: Karl77

Page 1 of 12 1 2 3 4

Search: Search took 0.01 seconds.

  1. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Yes, I knew, I mentioned it only because I didn't want to lose this functionality along with the new 'mode'.



    Works exactly as expected.
    Thanks for you support Krool.
  2. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Hello

    I need this selection rule by mouse or keyboard:

    a)
    single click into cell = single cell selected
    mouse down and drag = select cells in the column (!) only, same for shift+cursor

    b)...
  3. Replies
    4
    Views
    283

    Re: Beep broken on Win 1909?

    Thanks.

    Beep works, but only through Displayport.
    In the past it worked with the standard RealTek device.
    I have to try the sound settings.

    In any case, the problem has nothing to do with...
  4. Replies
    4
    Views
    283

    [RESOLVED] Beep broken on Win 1909?

    I use this function, and it always worked:


    Declare Function Beep Lib "kernel32" (ByVal soundFrequency As Long, ByVal soundDuration As Long) As Long

    Now I found, that it gives no sound on my...
  5. Replies
    34
    Views
    1,192

    Re: Fast replace in a large string

    ROFL
    houndred... stupid me...
  6. Replies
    34
    Views
    1,192

    Re: [RESOLVED] Fast replace in a large string

    This discussion helped me to get the simple idea.

    ALL comments were helpful.
    Also baka's short hints.
    Which I followed partially.

    So thanks to all of you.
  7. Replies
    34
    Views
    1,192

    Re: [RESOLVED] Fast replace in a large string

    I didn't measure exactly, but I think the solution is fast enough.
    Instr is used 3 times.
    The comparision of single characters (as in my snippet) is gone.

    The temp$ could be avoided somehow,...
  8. Replies
    34
    Views
    1,192

    Re: [RESOLVED] Fast replace in a large string

    That is a very good idea.
    Thanks for the hint!
  9. Replies
    34
    Views
    1,192

    Re: Fast replace in a large string

    Solved.
    It is really very simple.
    Fast and easy.
    If someone know significantly faster, tell me.



    m = "123" & vbCrLf & "blablabla\999: time\blablabla" & vbCrLf & "changeme" & vbCrLf & "\end\"...
  10. Replies
    34
    Views
    1,192

    Re: Fast replace in a large string

    I didn't provide example data and no existing code, because I don't want noone to code for me.
    I was looking for a fresh idea.
    And the discussion enlighted me.

    All the byte array stuff is not...
  11. Replies
    34
    Views
    1,192

    Re: Fast replace in a large string

    The approaches are good and easy.
    And my data originally comes from files.

    But the data has to be changed in memory.
    I don't want the file output.

    I'll do some tests using temporary files....
  12. Replies
    34
    Views
    1,192

    [RESOLVED] Fast replace in a large string

    Hi

    I have some large text data in a string.
    The data comes from a file, the line separator is CRLF.
    It hold several houndred lines.
    Let's assume 10MB data.

    From a certain line I need to get...
  13. Replies
    2,830
    Views
    637,110

    Re: CommonControls (Replacement of the MS common controls)

    Not easy to enhance a perfect thing!

    Unsorted and perhaps unrealistic:

    -a- unified tooltip appearance
    -b- full control over the colors in order to get a dark mode
    -c- a menu control that can...
  14. Replies
    2,830
    Views
    637,110

    Re: CommonControls (Replacement of the MS common controls)

    When I WinMerged a working backup-version with failing version, there was no difference in frm/bas files.
  15. Replies
    34
    Views
    1,193

    Re: Double to String performance issue

    Unfortunately, in my case I can't predict how long a string will be.
    But thanks for the info.

    I now write 2 files, 1x strings, 1x Dbl data.

    Works very ok now.
    It is only for temporary data,...
  16. Replies
    2,830
    Views
    637,110

    Re: CommonControls (Replacement of the MS common controls)

    When I began using VBCCR I experienced 'unexplainable' crashes as well.
    But I didn't give up...

    In some scenarios the IDE failed to write the .frx files correctly.
    It took me some time to find...
  17. Replies
    34
    Views
    1,193

    Re: Double to String performance issue

    It is fast only when the UDT holds one datatype only (Dbl in this case).
    When there are strings in the UDT, the performance breaks down totally.

    But doesn't matter in my case.
  18. Replies
    34
    Views
    1,193

    Re: Double to String performance issue

    I didn't know that.



    Yes, that's ultra fast, exactly as wanted.
    Fine.

    Solved.
    Thanks to all of you!
  19. Replies
    34
    Views
    1,193

    Re: Double to String performance issue

    Join is a good idea.

    Tested it, and the result is similar to the CStr method.
    Seems Join does a type conversion internally...

    So Join is also not good.
  20. Replies
    34
    Views
    1,193

    Re: Double to String performance issue

    I did further tests.
    VarBstrFromR8 ist the fastest.
    Thanks for the hint.

    Still not very fast.
    And the string concatenation is also not fast.

    I have another idea:
    I could copy all my data to...
  21. Replies
    34
    Views
    1,193

    Re: Double to String performance issue

    Not so bad.
    See attached.
    171803

    Based on Method 0, I get the fastest result with VarBstrFromR8.

    But still not super duper.
  22. Replies
    34
    Views
    1,193

    [RESOLVED] Double to String performance issue

    Hi all

    I have a large UDT array.
    It holds Double values, and I need the values as strings.
    Along with a delimiter etc.

    This is far to slow as it is now.

    I tested 3 different methods to get...
  23. Replies
    2,830
    Views
    637,110

    Re: CommonControls (Replacement of the MS common controls)

    Perfect, thank you.
    I implemented it in the UC directly.
  24. Replies
    2,830
    Views
    637,110

    Re: CommonControls (Replacement of the MS common controls)

    That's now logical to me, because the list gets populated before the UC can read the property.
    And after I set the ExcludeList property there is not function to recreate the list.
    So no need to...
  25. Replies
    2,830
    Views
    637,110

    Re: CommonControls (Replacement of the MS common controls)

    FONTCOMBO QUESTION2

    In the EnumFontFunction I need to exclude determined fonts from populating the list.
    I added a ExcludeList property to the control.
    Works fine if I set the ExcludeList at...
  26. Replies
    2,830
    Views
    637,110

    Re: CommonControls (Replacement of the MS common controls)

    FONTCOMBO QUESTION

    I'm in the middle of investigating the FontCombo control (struggling with the "@" fonts).


    Private Function EnumFontFunction

    is called twice.
    I wonder if this is right...
  27. Replies
    2,830
    Views
    637,110

    Re: CommonControls (Replacement of the MS common controls)

    If your user is patient and willing to help you (and all of us), he could unregister it and see what happens.
  28. Replies
    2,830
    Views
    637,110

    Re: Windows 10 Run-time-error -2147221164 (80040154) Class not registered

    When I began using VBCCR, I also used the side-by-side approach.
    In here it turned out that it was not reliable.
    Of course I thought (and think) this was caused by my own errors.

    In order to...
  29. Replies
    2,830
    Views
    637,110

    Re: Windows 10 Run-time-error -2147221164 (80040154) Class not registered

    Can someone tell me the advantages to not register the OCX?
  30. Re: How to write this C# line in VB6?

    Thanks to all of you!
    So simple...



    Aha! Makes it harder to read, how practical :(
  31. [RESOLVED] How to write this C# line in VB6?

    Hi all

    I don't understand a certain line in this C# source:


    for(int iCase=0; iCase<8; ++iCase)
    {
    t1 = ((iCase &1) == 0) ? 1 : -1;
    t2...
  32. Replies
    2,830
    Views
    637,110

    Re: Run-time-error ī429ī ActiveX component canīt create object

    I remember a similar problem.
    No special reason found, but the solution:

    Some of my form had an icon associated in the IDE.
    On my test-PCs all worked fine, on some but not all users PCs not....
  33. Thread: Forum for jobs

    by Karl77
    Replies
    3
    Views
    2,204

    Forum for jobs

    Hi all

    I know there is a forum for jobs.
    "Just VB jobs" leads to an unreachable company.
    So I try here...

    I have a small job to do.
    It is about translating some C# algorithms to VB6.
    If...
  34. Replies
    2,830
    Views
    637,110

    Re: RichTextBox: missing flag at the Find function

    http://www.vbforums.com/showthread.php?848839-VBFlexGrid-Control-(Replacement-of-the-MSFlexGrid-control)

    EDIT:
    Oops, TreeGrid <> Flexgrid
    Don't know what you mean by TreeGrid.
  35. Replies
    2,830
    Views
    637,110

    Re: CommonControls (Replacement of the MS common controls)

    I could not.
    Works flawless.

    Thanks to Mith's question, wqweto's hint, and Krool's implementation.
  36. Replies
    2,830
    Views
    637,110

    Re: CommonControls (Replacement of the MS common controls)

    Very interesting.
    Do you have a small working example?

    EDIT:
    Just saw Krool's answer.
    So an example for me is not needed.
  37. Replies
    2,830
    Views
    637,110

    Re: TabStrip background color

    There is no such property.
    I asked for this some time ago as well.

    The COMCTL32 doesn't offer a possibility.
    And all other means require a major effort to be reliable.
  38. Replies
    2,830
    Views
    637,110

    Re: ListBowW MultiColumn Colum Width is wrong

    Mith, I would check 225% too.
    I had some issues with that setting.
    Just a thought.
  39. Replies
    2,830
    Views
    637,110

    Re: CommonControls (Replacement of the MS common controls)

    Semke:


    Oh well, now I must show my ugly code...
    It is far easier to load the images from internal resources.

    I think it is better to search here in the forum for an explainable solution.
    My...
  40. Replies
    2,830
    Views
    637,110

    Re: CommonControls (Replacement of the MS common controls)

    Can't we just copy/paste the whole control that holds the images?

    EDIT:
    I load the images from a res file at runtime anyway.
    It is more convenient than to handle the images in the imagelist...
Results 1 to 40 of 470
Page 1 of 12 1 2 3 4



Featured


Click Here to Expand Forum to Full Width