Search:
Type: Posts; User: Elroy
Search:
Search took 0.67 seconds; generated 11 minute(s) ago.
-
Whenever my mind starts thinking like that, I remind myself that VB6 is single-threaded.
Regarding updating labels, they're not going to get updated until you return control to Windows, and then...
-
I'm having trouble understanding the OP's question as well.
Do you wish to:
Learn how to use the ListView?
Learn how to write a degree symbol?
Learn how to parse some floating-point number...
-
Yeah, I'm running VB6 compiled programs on several Win11 boxes, and I'm not seeing this problem.
-
I've been thinking about this some more. It's clear that, in post #10, TomCatChina is talking about when our program is terminating (that he never gets a Form_Terminate event).
In a standard VB6...
-
I used two forms so I wouldn't have to deal with the whole program terminating.
And one more time, if we set all references to our form to Nothing, the Form_Terminate event will be raised. I'm...
-
Ok, I created a project with two forms (Form1 & Form2):
Form1 is the startup, and it also has two buttons on it.
Here's the code in Form1:
Option Explicit
Private Sub Command1_Click()
-
Not exactly sure what you did. But, in VB6, you have to uninstantiate the code/COM portion of a form to get the Form_Terminate event to raise.
With a typical Form1 (just using the auto-declared...
-
Can you please take this to another thread, as it's not applicable to my OP.
-
Yeah, I was thinking I might test that. Good to know. I think I'll leave the instructions as they are though. :)
-
Is sckServer_DataArrival an event? If so, you're possibly recursing that event with the DoEvents in there. Event-driven programs don't need DoEvents, as the OS (i.e., Windows) will raise the event...
-
I didn't download-and-examine, but this might be the one I once played around with. It might serve for some ideas on which to expand.
-
Two things come to mind.
1) It sure sounds like custom User Controls (UCs) will be your friend to get this all done. Also, just FYI, UCs have options on whether they're windowless and/or whether...
-
Yeah, I thought about writing an AddIn. Basically, it'd do the following, if I did it:
Add an entry to the IDE's "File" menu that said "Compile to Standard DLL".
When clicked, check that the...
-
To my way of thinking, there are two issues, with a third consideration.
Does it have a hWnd?
Does it have a DC?
Is it a single control or multiple controls? If multiple, the above two...
-
You need to be aware that GDI and GdiPlus are two VERY different things.
-
You could shell to specific areas, using command line arguments. For instance, the following goes straight to the power options:
Option Explicit
Private Sub Form_Load()
Shell...
-
Personally, anytime I start thinking about checkboxes in listboxes, my thoughts turn to the ListView control, as seen here.
-
Yeah, I've never used the GdipCreateBitmapFromResource. But, for me, this is two separate issues.
Loading an image from resources and getting it into a StdPicture object.
Knowing enough...
-
Ok, here's new UC that uses the txt_Change event for validating. That should catch everything. :p
Option Explicit '
'
Event Change()
'
Private mdMin As Double
Private mdMax As Double
-
Yeah, you're correct. It would probably take work in the txt_Change event (and possibly txt_KeyDown). The easiest way might be to just always save the last txt.Text value in a module String, check...
-
Let me say from the outset that it's The Trick who sorted the magic of doing this, and who seems to know all the compiled VB6 headers better than the back of his hand. He's done some work that...
-
hahaha, nahhh, it should be fairly straightforward for starman to further tweak that txt_KeyPress event if he wants it to work differently.
I'm going to make a CodeBank post now, using The Trick's...
-
I'll bow out after this, but, to my eyes, that's exactly what a custom UC could provide with a fairly minimal amount of work. And, we wouldn't need to play any tricks with converting Longs to...
-
Dear Trick,
I've been studying your standard DLL creation code seen here, and find it very fascinating.
I've refactored it to simplify it to a strictly VB6 situation.
With your permission,...
-
IDK, I've created so many custom UCs that it comes pretty easy to me these days. It seems that, for someone who wants to be a serious VB6 programmer, it's worth learning how to do this.
And...
-
I'm not sure I'm the one who's up for messing with the AddIn, and creating standard DLLs with VB6, but a small sample of your DLL source code, and a small test program that calls it would help to...
-
It would have been nice if some of these things were a Variant, but such is not the case.
-
If you're sticking two values into the Tag property, I don't understand why you wouldn't just stick them both in there, as it's a string regardless of how you handle it.
Option Explicit
...
-
That's because, by default, VB6 converts all "Declare ..." API call Strings to ANSI when the call is made, and converts them back to Unicode upon return (if they're ByRef).
To prevent that, you...
-
It sounds to me like it all needs to be stuffed into a custom User Control module. That's precisely what they're for, creating a control that appears in our ToolBox that's based on other controls...
-
Not to my knowledge. Except for maybe a "coolness" factor. :)
-
Well, yeah, it's checking the value of the object pointer "under the hood" without actually passing the object as an argument to get it done. But, my point was that it's just checking whether 32-bit...
-
Hmmm, I guess I still don't understand, "With" may create a couple more lines of code (With... & End With), but it actually reduces overhead, and almost certainly results in less and faster machine...
-
I must admit, the one thing I do like about AI is that I can ask "dumb" questions, and not worry how it makes my ego feel. :lol:
-
To do that, you'll need to rename your actual class to "SQL" rather than "cSQL", and then set the PredeclaredId to True.
When you use that PredeclaredId, the object name and the class name become...
-
(assuming we have the cSQL PredeclaredId set to True)
Debug.Print cSQL.Method1
Debug.Print cSQL.Method2
Debug.Print cSQL.Method3
versus
-
Just checking if ObjPtr(TheObject) = 0, so not very much overhead. But yeah, using "With" blocks is always a good idea.
-
Yes, a class that I know I only want a single instantiation of, and want it to be globally available (almost like an extension to the language), the "PredeclaredId = True" trick is very useful.
...
-
Yes, I agree that Collections and Dictionaries each have their strengths and weaknesses.
However, to get back to the general point of your OP, I must admit that my position regarding simplistic or...
-
I'm very sure. Here's the structure for each item in a collection. You can see the pParentItem, pRightBranch, & pLeftBranch that's typical of any binary tree. You can also see the addition of...
|
Click Here to Expand Forum to Full Width
|