-
WSBriana
AskWoody LoungerActually, I’ve done this, but I can’t find the details at the moment. If you do an internet search, using ‘readyState’ and ‘WSH’ as keywords, you should find some good examples of reading a web page through scripting.
-
WSBriana
AskWoody LoungerActually, I’ve done this, but I can’t find the details at the moment. If you do an internet search, using ‘readyState’ and ‘WSH’ as keywords, you should find some good examples of reading a web page through scripting.
-
WSBriana
AskWoody LoungerSure – here’s a piece of VB6 code I whipped together.
Option Explicit
‘Declare a “Dummy” date – as bait for would-be hackers
Dim pDummyDate As StringPrivate Sub Form_Load()
‘Now, set our dummy date.
pDummyDate = “01/01/2004”
Call Check_It
End
End SubPrivate Sub Check_It()
Dim i As Integer
Dim CkSum As Long‘In this routine, we add up the character values for the string, and compare
‘it against the checksum from the original ’01/01/2004’.
‘If it has changed, we know that someone has used a hex editor to try
‘to change the date embedded in our code.For i = 1 To Len(pDummyDate)
CkSum = CkSum + Asc(Mid(pDummyDate, i, 1))
Next‘Now, check to see if the checksums match. If they don’t, we
‘create a bogus error.
If CkSum 486 Then i = i / 0
End Sub———————————————
Of course, it’s very simple, but it would work as I mentioned. You could have other
pieces of ‘trap’ code sprinkled throughout the code. Internet addresses, for example, could
also be used, so that a hacker couldn’t modify a hard-coded address. -
WSBriana
AskWoody LoungerSure – here’s a piece of VB6 code I whipped together.
Option Explicit
‘Declare a “Dummy” date – as bait for would-be hackers
Dim pDummyDate As StringPrivate Sub Form_Load()
‘Now, set our dummy date.
pDummyDate = “01/01/2004”
Call Check_It
End
End SubPrivate Sub Check_It()
Dim i As Integer
Dim CkSum As Long‘In this routine, we add up the character values for the string, and compare
‘it against the checksum from the original ’01/01/2004’.
‘If it has changed, we know that someone has used a hex editor to try
‘to change the date embedded in our code.For i = 1 To Len(pDummyDate)
CkSum = CkSum + Asc(Mid(pDummyDate, i, 1))
Next‘Now, check to see if the checksums match. If they don’t, we
‘create a bogus error.
If CkSum 486 Then i = i / 0
End Sub———————————————
Of course, it’s very simple, but it would work as I mentioned. You could have other
pieces of ‘trap’ code sprinkled throughout the code. Internet addresses, for example, could
also be used, so that a hacker couldn’t modify a hard-coded address. -
WSBriana
AskWoody LoungerIt’s possible to have files that don’t show up at all in Windows XP. I remember reading somewhere that it was a combination of certain file attributes – sorry, can’t cite the source.
Try opening a DOS Prompt box, then do this:
CD WindowsSystem32
attrib pstorec.exeSee if the file is actually there.
Brian
-
WSBriana
AskWoody LoungerIt’s possible to have files that don’t show up at all in Windows XP. I remember reading somewhere that it was a combination of certain file attributes – sorry, can’t cite the source.
Try opening a DOS Prompt box, then do this:
CD WindowsSystem32
attrib pstorec.exeSee if the file is actually there.
Brian
-
WSBriana
AskWoody LoungerSeptember 6, 2004 at 3:28 pm in reply to: Beginning VBA question – Creating Forms (Access 2000) #873703Dave:
Yes, it’s a simple form. I found some VBA code that will do text searching and wanted to create a small db to hold some notes. The form has one text field, one listbox and two command buttons. The first text field is the search string, the listbox will be populated by the first section of each record found. The first command button will start the search, the second one clears everything. Double-clicking a listbox entry displays the whole record.
I’ve used Access for several years, so I’m familiar with a lot of the VBA language. I agree with you – discovery is the best teacher (in my case) and I just need a minor shove in the proper direction.
I’ve discovered a problem that may explain why I’m being hampered. The Controls Wizard is greyed out – no way to turn it on. Any ideas?
-
WSBriana
AskWoody LoungerSeptember 6, 2004 at 3:28 pm in reply to: Beginning VBA question – Creating Forms (Access 2000) #873704Dave:
Yes, it’s a simple form. I found some VBA code that will do text searching and wanted to create a small db to hold some notes. The form has one text field, one listbox and two command buttons. The first text field is the search string, the listbox will be populated by the first section of each record found. The first command button will start the search, the second one clears everything. Double-clicking a listbox entry displays the whole record.
I’ve used Access for several years, so I’m familiar with a lot of the VBA language. I agree with you – discovery is the best teacher (in my case) and I just need a minor shove in the proper direction.
I’ve discovered a problem that may explain why I’m being hampered. The Controls Wizard is greyed out – no way to turn it on. Any ideas?
-
WSBriana
AskWoody LoungerI had a rather nasty malware that neither AdAware or Spybot Search and Destroy could find. They turned out to be Browser Helper Objects. I downloaded BHODemon from Majorgeeks.com. It found the two BHO offenders and let me nullify them. I also had Spybot’s Resident Shield turned on, so it warned me when the BHO’s were trying to write themselves back into my registry with a different name (seems to be a trick they’ve learned recently). I also ran MSCONFIG to find and deactivate any other startup programs that weren’t recognizable.
One reboot – and I’m spyware free (for now)…
-
WSBriana
AskWoody LoungerI had a rather nasty malware that neither AdAware or Spybot Search and Destroy could find. They turned out to be Browser Helper Objects. I downloaded BHODemon from Majorgeeks.com. It found the two BHO offenders and let me nullify them. I also had Spybot’s Resident Shield turned on, so it warned me when the BHO’s were trying to write themselves back into my registry with a different name (seems to be a trick they’ve learned recently). I also ran MSCONFIG to find and deactivate any other startup programs that weren’t recognizable.
One reboot – and I’m spyware free (for now)…
-
WSBriana
AskWoody LoungerI’ve done similar routines in some of my programs. You might want to also add a couple of ‘traps’ to your code, as well. Put a clear-text field in that has a date in it. When the program runs, have it compare the checksum of the date to see if it has been changed. If it has, pop up a warning messages, stating that the program has been tampered with – then shut down.
If you REALLY want to be nasty, have it write a value to a data file that is a ‘tamper lock’. The file would have been created when the program was running correctly, so restoring the program from a backup won’t help. They could only get it running by wiping out the data and starting fresh, or restoring from a backup – prior to the tampering. It’s not foolproof, but you just want to prevent the casual hacker. Making things too complicated can sometimes come back to bite you – hard!
Brian
-
WSBriana
AskWoody LoungerI’ve done similar routines in some of my programs. You might want to also add a couple of ‘traps’ to your code, as well. Put a clear-text field in that has a date in it. When the program runs, have it compare the checksum of the date to see if it has been changed. If it has, pop up a warning messages, stating that the program has been tampered with – then shut down.
If you REALLY want to be nasty, have it write a value to a data file that is a ‘tamper lock’. The file would have been created when the program was running correctly, so restoring the program from a backup won’t help. They could only get it running by wiping out the data and starting fresh, or restoring from a backup – prior to the tampering. It’s not foolproof, but you just want to prevent the casual hacker. Making things too complicated can sometimes come back to bite you – hard!
Brian
-
WSBriana
AskWoody LoungerThat’s what I expected to hear. Thanks for the quick reply.
Brian
-
WSBriana
AskWoody LoungerMarch 24, 2003 at 7:34 pm in reply to: Emulating vbModule behaviour & Microsoft RichText (Ac 2K/Off 2K) #663515The RichTextBox control can be tricky. I’ve used it, but I always have to experiment with it.
What you are looking for is not easily done, at least, for a RichtextBox. If you are using a Listbox or Listform, then you can create a sub-menu and use the control’s ShortcutMenuBar property.
It seems like I have seen a right-click menu for a RichTextBox – somewhere – but I can’t find it right now. Do you have to use a RichTextBox control?
Brian
-
WSBriana
AskWoody LoungerHans:
I wasn’t actually trying to make them ‘loose’ option buttons. I had tried the Control Wizard, but I missed the part about using -1 and 0, so I could never make it work. That was perfect! Thank you!
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Windows 11 Insider Preview Build 22631.5261 (23H2) released to Release Preview
by
joep517
17 minutes ago -
Problem opening image attachments
by
RobertG
1 hour, 51 minutes ago -
advice for setting up a new windows computer
by
routtco1001
16 hours, 37 minutes ago -
It’s Identity Theft Day!
by
Susan Bradley
32 minutes ago -
Android 15 require minimum 32GB of storage
by
Alex5723
21 hours, 26 minutes ago -
Mac Mini 2018, iPhone 6s 2015 Are Now Vintage
by
Alex5723
21 hours, 36 minutes ago -
Hertz says hackers stole customer credit card and driver’s license data
by
Alex5723
22 hours, 6 minutes ago -
Firefox became sluggish
by
Rick Corbett
19 hours ago -
Windows 10 Build 19045.5794 (22H2) to Release Preview Channel
by
joep517
1 day, 2 hours ago -
Windows 11 Insider Preview Build 22635.5235 (23H2) released to BETA
by
joep517
1 day, 2 hours ago -
A Funny Thing Happened on the Way to the Forum
by
bbearren
22 hours, 4 minutes ago -
Download speeds only 0.3Mbps after 24H2 upgrade on WiFi and Ethernet
by
John
23 hours, 28 minutes ago -
T-Mobile 5G Wireless Internet
by
WSmmi16
25 minutes ago -
Clock missing above calendar in Windows 10
by
WSCape Sand
1 hour, 37 minutes ago -
Formula to Calculate Q1, Q2, Q3, or Q4 of the Year?
by
WSJon5
1 day, 17 hours ago -
The time has come for AI-generated art
by
Catherine Barrett
21 hours, 23 minutes ago -
Hackers are using two-factor authentication to infect you
by
B. Livingston
1 day, 7 hours ago -
23 and you
by
Max Stul Oppenheimer
1 day, 14 hours ago -
April’s deluge of patches
by
Susan Bradley
2 hours, 38 minutes ago -
Windows 11 Windows Updater question
by
Tex265
25 minutes ago -
Key, Key, my kingdom for a Key!
by
RetiredGeek
2 days, 23 hours ago -
Registry Patches for Windows 10
by
Drcard:))
3 days, 3 hours ago -
Cannot get line length to NOT wrap in Outlining in Word 365
by
CWBillow
2 days, 10 hours ago -
DDU (Display Driver Uninstaller) updates
by
Alex5723
1 day, 19 hours ago -
Align objects on a OneNote page
by
CWBillow
3 days, 9 hours ago -
OneNote Send To button?
by
CWBillow
3 days, 9 hours ago -
WU help needed with “Some settings are managed by your organization”
by
Peobody
3 days, 18 hours ago -
No Newsletters since 27 January
by
rog7
1 day, 23 hours ago -
Linux Mint Debian Edition 7 gets OEM support, death of Ubuntu-based Mint ?
by
Alex5723
2 days, 18 hours ago -
Windows Update “Areca Technology Corporation – System – 6.20.0.41”
by
Bruce
2 days, 17 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.