Search Results - VBForums

Search:

Type: Posts; User: 7edm

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    296

    Re: Private vs. Public User Control?

    Yes, I figured that out, and unless (as you say) you don't need the form, Parent.Controls is better imo as you can dimension the iterate variable As Control, which doesn't work with ParentControls in...
  2. Replies
    10
    Views
    296

    Re: Private vs. Public User Control?

    Just want to improve on the information here for the topic. While ParentControls is a property available to the UC it doesn't seems to work as expected at design-time or by use of 'For Each ctrl In...
  3. Replies
    10
    Views
    296

    Re: Private vs. Public User Control?

    Ok thanks for letting me know, I though it would be possible but don't want to start adding subclassing before I got the basics working as it will be much harder to debug then.
  4. Replies
    10
    Views
    296

    Re: Private vs. Public User Control?

    jiize you are right, I never reflected on that as the docs kept talking about the extender all the time... I sure will take that shortcut instead - Thanks!
  5. Replies
    10
    Views
    296

    Re: Private vs. Public User Control?

    Yes that defeats my intent :-( So there is no way to detect if the form is resizing or has resized during design-time, not even using subclassing?
  6. Replies
    10
    Views
    296

    Private vs. Public User Control?

    Ok not sure if the title is the most descriptive one, but I have this problem. In a User Control (UC) I have the following

    'UC Declaration section
    Private WithEvents mFrm As Form
    ...
    Private...
  7. Replies
    27
    Views
    997

    Re: Persisting data in vb6 classes/objects

    Blimey! Pure obstruction of curiosity on my behalf and I pledge myself guilty of laziness. And thanks for that code.


    Ok, maybe should have had figured that your stuff is optimized in both...
  8. Replies
    27
    Views
    997

    Re: Persisting data in vb6 classes/objects

    Yes I know that, BUT, afaik it doesn't work if you want to get the Key values instead of the collections content items. Also, if you iterate through a coll to remove items based on the key value, I...
  9. Replies
    27
    Views
    997

    Re: Persisting data in vb6 classes/objects

    Great Olaf! Or should I say "Olaf the Great" ;-) I think this now have fully solved the challenge for this part of my control, although there are other challenges still. The code above gives a great...
  10. Replies
    27
    Views
    997

    Re: Persisting data in vb6 classes/objects

    Ok maybe the dime has sunken in now and I think I have come up with a solution, with this code

    Set mAnchors = New_c.JSONObject

    For Each ctrl In Extender.Parent.Controls

    If...
  11. Replies
    27
    Views
    997

    Re: Persisting data in vb6 classes/objects

    Hmm that wasn't clear to me, is this documented somewhere?



    Not sure I understand, but the use case is this:
    clsAnchorSpec is a normal data class with 4 properties Left, Top, Right and Bottom...
  12. Replies
    27
    Views
    997

    Re: Persisting data in vb6 classes/objects

    I hope OP doesn't mind I continue to develop this topic even... @Olaf, I am having problems with cCollection and JSonObject. In my resizing UserControl I have this code:


    'Declaration section...
  13. Replies
    19
    Views
    393

    Re: How to (best) detect siting of a control?

    Ahh, good point regarding the windowless controls, didn't really think of that. Looks like I have to get back to the drawing board again... Hmm, I think I abstained from installing spy++ due to...
  14. Replies
    19
    Views
    393

    Re: How to (best) detect siting of a control?

    Maybe it's because English isn't my native language and I explain myself poorly, but... No, only design time as for configuration. I don't really have in mind to deal with dynamically added controls...
  15. Replies
    19
    Views
    393

    Re: How to (best) detect siting of a control?

    No, it's a resizer control, but maybe what I am trying to do is so outside the box that it's not possible...
  16. Replies
    19
    Views
    393

    Re: How to (best) detect siting of a control?

    I think you are missing the point, the values stored in the collection are configuration values concerning a controls anchor preferences at resizing. This is read in at a default, like anchor left...
  17. Replies
    19
    Views
    393

    Re: How to (best) detect siting of a control?

    Maybe I still haven't made this absolutely clear, the control is a resizer control, but this part isn't about the actual resizing but the configuration of the resizing that will take place as at run...
  18. Replies
    19
    Views
    393

    Re: How to (best) detect siting of a control?

    Not entirely correct, UserControl code executes both at run-time and design-time, but I wasn't clear of that either before I started to dive in to this.
  19. Replies
    19
    Views
    393

    Re: How to (best) detect siting of a control?

    As for sited, only InitProperties, but that just concerns my UserControl, it's the other controls of the form I'm after. ReadProperties fires every time an instance of the UserControl is created,...
  20. Replies
    19
    Views
    393

    Re: How to (best) detect siting of a control?

    You are correct, although I thought it was understood by "sited on the form" - but - a control can of course be dynamically sited during run-time as well. Thanks for pointing it out, will try to be...
  21. Replies
    19
    Views
    393

    Re: How to (best) detect siting of a control?

    No, I want to detect at design-time when a control is sited (i.e. placed) on or unsited from the form, so I can add it to or remove it from a collection that stores anchor values for all resizeable...
  22. Replies
    19
    Views
    393

    How to (best) detect siting of a control?

    I am working on a resizer control and one of the problems I am facing is how to detect when a control is sited on the form? One way to do this is obviously to use a timer and continusly check the...
  23. Replies
    27
    Views
    997

    Re: Persisting data in vb6 classes/objects

    Oh, just a question regarding the the .Prop method of the cCollection, is it equal in function to .Add and/or is it only for use when in JSON mode? Otherwise, can it be used to update an object slot...
  24. Replies
    27
    Views
    997

    Re: Persisting data in vb6 classes/objects

    Thanks for that example Olaf,

    that code describes the process greatly and will help a lot even if the values I want to save isn't control coordinates but anchor information for each control. These...
  25. Replies
    27
    Views
    997

    Re: Persisting data in vb6 classes/objects

    Hi Olaf,

    I was thinking that technique could also be used to serialize and persist object related values that only change during design time and stays unchanged during runtime but is loaded into a...
  26. Replies
    8
    Views
    478

    Re: Install VB6 in Win 8.1 ,Is possible ?

    @gibra: Needed this to get my VB6 into my new NB, signed up so I could download 4.0 of your tool but got a zip package that was broken and when I trid to download from same url again I just get a...
  27. Replies
    24
    Views
    1,194

    Re: Very strange Overflow error

    That's not the case here, but thanks for your contribution to the discussion.
  28. Replies
    24
    Views
    1,194

    Re: Very strange Overflow error

    Yes, SP6 all the way.
  29. Replies
    24
    Views
    1,194

    Re: Very strange Overflow error

    No such checks. The arrays involved in the surrounding code are all statically dimensioned, although some are multi dimensioned. I believe we can guess until we are blue without finding out what it...
  30. Replies
    24
    Views
    1,194

    Re: Very strange Overflow error

    Yes you are right. Unfortunately that's not really feasible, at least not now, as this is a small part of a bigegr whole and I would have to spend a lot of time separating it all out. I may...
  31. Replies
    24
    Views
    1,194

    Re: Very strange Overflow error

    Interesting, it prints 5 but most of all - it doesn't generate any error any longer!
  32. Replies
    24
    Views
    1,194

    Re: Very strange Overflow error

    @Schmidt: Olaf, you give many good advices as usual and indeed most of them have already been done or are ongoing. This project has a history of over 30 years originally taking off in 1982 on a...
  33. Replies
    24
    Views
    1,194

    Re: Very strange Overflow error

    I do, UniSuitePro unicode controls (definitely a candidate), Some API's, another dll called "Time2Win.dll" which may also be a candidate as the programmer seem to have disappeared, Olaf's...
  34. Replies
    24
    Views
    1,194

    Re: Very strange Overflow error

    Yes, just did that and surprise surprise, or not really, it works w/o problem. Of course it does as there really isn't anything wrong with the function as far as I can see. A sucker really.
  35. Replies
    24
    Views
    1,194

    Re: Very strange Overflow error

    Here are some statistics about the project, which is pretty big as you can see. I said about 65 000 lines above, as that's what I thought it was but after a closer look that's something of an...
  36. Replies
    24
    Views
    1,194

    Re: Very strange Overflow error

    Thanks for replying.

    Public P As Double


    Yes, of course. All variables are declared/dimensioned, no Variants.

    I know what an Overflow error is and what causes it. This one just doesn't seem...
  37. Replies
    24
    Views
    1,194

    Very strange Overflow error

    So this is very strange or can anyone explain to me why I get an Error 6:Overflow at line 100 in this code?

    Public Function CalculateT(ByVal IsGregorianCal As Long) As Double
    'On Error Resume...
  38. Replies
    34
    Views
    3,853

    Re: DoEvents and Performance

    I didn't intended to comment further on this thread (which if I was moderator would have considered to lock at this point as there is nothing more to prove) and to take a stand pro/against the ban I...
  39. Replies
    34
    Views
    3,853

    Re: DoEvents and Performance

    I sure hope you did that ban short and sweet because VF doesn't want to loose such a resource as Olaf. Yes, he has a somewhat "edgy" language and having German roots myself, and being a vbRichClient...
  40. Replies
    17
    Views
    3,338

    Re: [vbRichClient] How To...

    Just noticed Olaf got Banned (as an outcome of this thread: http://www.vbforums.com/showthread.php?739047-DoEvents-and-Performance), so let's hope we will come back once the ban is lifted. Otherwise,...
Results 1 to 40 of 63
Page 1 of 2 1 2



Featured


Click Here to Expand Forum to Full Width