Results for "Author: clint lafever"
Small program made to remember all those who lost their lives on Sept. 11, 2001. For all those who have never taken the time to look at the complete list of names of those who died on that day, this program will show you the magnitude of people killed on that day. I got the list of names from http://www.washingtonpost.com/wp-adv/marketing/911/front.html and apologize in advance if anybody out there finds that a name is missing. God Bless America.
This is very beginner stuff. Today I needed some graph paper but could not find any in the office so I very quickly just slapped this together to make some. There really is nothing fancy in here other than some sample code of how to use the Line method which is very VERY basic. Not really expecting any votes but just thought I would share it in case anybody else out there needs some graph paper or wants to use this for something more advanced. KEYWORDS: LINE METHOD, GRAPH PAPER. ADDED NOTES: Since I have had a comment about it, this code also does include a class module that can be reused as is in any other application that will allow the developer to call the common dialog control WITHOUT having to have a reference to the control or have to have a form for it. The class module will just use what ever version is available on the system thus you do not have to include the common dialog in an install. Just thought I would add that since some may not download this because they do not care about graph paper.
I am a guy who still loves the tradition of putting easter eggs in programs. I know some think they are a waste of code but hey, they are a fun way of letting a developer personalize his work. The form in this demo is just a fun example of one that I added to one of my projects. I just thought I would share something simple like this. Maybe it will give some others some insiration to make other egg type forms. I always likes to keep it simple myself. If too much is done in an egg, you may bring bugs or extra undue size to your product. This demo will also show how to play a WAV in a LOOP from the resource file (even though there are tons of examples of that here). KEYWORDS: EASTER EGG WAVE RESOURCE LOADRESDATA RES SOUND WAV
A user in a newsgroup was asking how they can get the effect of fading out a control on a form. They knew how to fade a form (as I think we all do by all the transparent demo projects on this site). The poster however just wanted to fade out a control on a given form and have it fade away to nothing. So, I put this project together real quick as a starting point for him/her to see one way it could be done. I will tell you now, it is really just fancy API work to move the control off the form to another and fading that new form but it gives the effect the poster was asking for. Just thought I would share for everyone else here and to give him/her a link of where to come and see the code. KEYWORDS: TRANSPARENT, FADE, SETWINDOWLONG, SETLAYEREDWINDOWATTRIBUTES
This code will not change the world, nor will it impress many. Just made it for fun real quick. Uses an old class module I have for doing screen captures and also demostrates how to play a WAV file from the custom resource section of a resource file. Just wanted something to have handy to break the screen if/when I get mad at some code. KEYWORDS: CAPTURE, WAV, JOKE, FUN, LOADRESDATA, RESOURCE.
My wife asked me if I could make her a simple calendar maker real quick. She really just wanted blank calendars to let the children, at the school she helps out at, to color in. So I made this for her (with the ability to add images instead of being blank). It was written pretty quick and only tested on my home PC since she was going to be using it there, so there may be bugs. I just thought I would share some of my code once again here since this is not a product I will be taking much further. Some ideas to add if others wanted to is better scaling of the image in the top half, a database (or data file) of holidays to add to the calendar when it is rendered, color and font options. If anyone does add more to it, please share back on PSC. KEYWORDS: LINE, CALENDAR, PRINTER, COMMON DIALOG
Using a very basic method of moving forms around, this code will create a shadow effect to any window that currently has focus. Browser windows, Message Boxes, everything. The method is very basic. A loop just runs getting the hWnd of the window that has focus, if it is not maximized or minimized and is visible, it puts shadow forms to the right and bottom of that window and using some generic (over used) transparent code, those shadow forms are made transparent. See the screen shot of how Notepad now has a shadow on it. The shadow follows the form and for the most part, is not a bad effect. Yes more coding needs to be done for special cases and to stop some flicker now and then depending on how busy the machine is. Also the ability to through it down to the system tray (I have gotten into a habit of using a control (OCX) I made for doing that so I did not add that code here since I knew I was posting this). Anyhow, have fun, play with it if you like and make it better. If you do, I would love to see it get posted. Perhaps giving options for shadow size and color (hint).
This is my first time posting to the ASP section here at PSC. I just wrote this for a requirement on one of my projects and thought I would share. I did look and see there are already other Encryption posts, but hey, thought one more would be ok. Very simple and short code to encrypt/decrypt a string. Main requirement for this was we just wanted it so a person would not see a records SSN value in the URL. It is a closed Intranet site but we just wanted to be kind and not just have SSN numbers up on screens and printed pages. Hope it helps somebody. This is actually just some VB code I had from long long ago and just ported over to ASP for the first time. Was happy to see it worked.