Results 1 to 13 of 13

Thread: Just thought I'd show off my prog :-)

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    May 2006
    Location
    Location, location!
    Posts
    2,673

    Just thought I'd show off my prog :-)

    Basically it is simple "operating system" emulation...windows are done using frames, and they can be resized, dragged/moved, minimised and closed...for the filesize, I think it's pretty good. The actual VB code is about 15k...and 12k of that is in the form.

    Thanks to BushMobile, brucevde and WestConn1 for their help with certain aspects of this...I'm still new to certain parts of VB :-)

    Feel free to use the code within your own programs, it's basically out there already but I just put it all together into this...the program (as a whole) is copyrighted to me, but as long as you don't just steal the whole thing and pretend it's yours I don't mind :-)

    There *ARE* bugs in the code (try resizing a window to nothing), but this is only an early preview and about 2 or 3 days lazy work :-)
    Attached Files Attached Files
    Last edited by smUX; Aug 5th, 2006 at 03:31 PM.
    Well, everyone else has been doing it :-)
    Loading a file into memory QUICKLY - Using SendKeys - HyperLabel - A highly customisable label replacement - Using resource files/DLLs with VB - Adding GZip to your projects
    Expect more to come in future
    If I have helped you, RATE ME! :-)

    I love helping noobs with their VB problems (probably because, as an amateur programmer, I am only slightly better at VB than them :-)) but if you SERIOUSLY want to get help for free from a community such as VBForums, you have to first have a grounding (basic knowledge) in VB6, otherwise you're way too much work to help...You've got to give a little if you want to get help from us, in other words!

    And we DON'T do your homework. If your tutor doesn't teach you enough to help you make the project without his or her help, FIND A BETTER TUTOR or try reading books on programming! We are happy to help with minor things regarding the project, but you have to understand the rest of it if you want our help to be useful.

  2. #2
    Lively Member d00by's Avatar
    Join Date
    Jul 2006
    Posts
    102

    Re: Just thought I'd show off my prog :-)

    can u post screens for those of us who just want to look, not touch?

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    May 2006
    Location
    Location, location!
    Posts
    2,673

    Re: Just thought I'd show off my prog :-)

    Quote Originally Posted by d00by
    can u post screens for those of us who just want to look, not touch?


    Of course, most of the fun of the program is actually running it...it's what you can do with the windows (like resize, minimise, drag etc)...just seeing it isn't enough :-)
    Well, everyone else has been doing it :-)
    Loading a file into memory QUICKLY - Using SendKeys - HyperLabel - A highly customisable label replacement - Using resource files/DLLs with VB - Adding GZip to your projects
    Expect more to come in future
    If I have helped you, RATE ME! :-)

    I love helping noobs with their VB problems (probably because, as an amateur programmer, I am only slightly better at VB than them :-)) but if you SERIOUSLY want to get help for free from a community such as VBForums, you have to first have a grounding (basic knowledge) in VB6, otherwise you're way too much work to help...You've got to give a little if you want to get help from us, in other words!

    And we DON'T do your homework. If your tutor doesn't teach you enough to help you make the project without his or her help, FIND A BETTER TUTOR or try reading books on programming! We are happy to help with minor things regarding the project, but you have to understand the rest of it if you want our help to be useful.

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Just thought I'd show off my prog :-)

    I removed the executable from your zip.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  5. #5
    PoorPoster iPrank's Avatar
    Join Date
    Oct 2005
    Location
    In a black hole
    Posts
    2,729

    Re: Just thought I'd show off my prog :-)

    Looks good.
    If you don't mind, I have a few suggesations.

    1.) Option Explicit missing.
    I know you don't like to use it, but many of us don't like to see a code without these 2 words.

    2.) Don't use End. Before terminating your app, always close all open objects and forms.

    3.) While dragging the label, the frame flickers. See if something similar to this gives you any idea.
    Usefull VBF Threads/Posts I Found . My flickr page .
    "I love being married. It's so great to find that one special person you want to annoy for the rest of your life." - Rita Rudner


  6. #6

    Thread Starter
    PowerPoster
    Join Date
    May 2006
    Location
    Location, location!
    Posts
    2,673

    Re: Just thought I'd show off my prog :-)

    1) Yeah, I forgot what the code was as I never used it...I *wanted* to add it...I'll edit and re-upload (without EXE as you don't like them, RobDog :-))

    2) Should be simple enough to use the "for each" to unload everything loaded before unloading the form

    3) I don't really understand the code you linked to...don't know what it does or anything...so I'll leave it for now :-)
    Well, everyone else has been doing it :-)
    Loading a file into memory QUICKLY - Using SendKeys - HyperLabel - A highly customisable label replacement - Using resource files/DLLs with VB - Adding GZip to your projects
    Expect more to come in future
    If I have helped you, RATE ME! :-)

    I love helping noobs with their VB problems (probably because, as an amateur programmer, I am only slightly better at VB than them :-)) but if you SERIOUSLY want to get help for free from a community such as VBForums, you have to first have a grounding (basic knowledge) in VB6, otherwise you're way too much work to help...You've got to give a little if you want to get help from us, in other words!

    And we DON'T do your homework. If your tutor doesn't teach you enough to help you make the project without his or her help, FIND A BETTER TUTOR or try reading books on programming! We are happy to help with minor things regarding the project, but you have to understand the rest of it if you want our help to be useful.

  7. #7

    Thread Starter
    PowerPoster
    Join Date
    May 2006
    Location
    Location, location!
    Posts
    2,673

    Re: Just thought I'd show off my prog :-)

    Added the Option Explicit (although I didn't need to make any changes once I added that line...which totally baffles me...normally I need to add tons of dims :-))...also modified the close so that it now unloads all the loaded elements (on loading them, I add "gen" to the tag for the item so I know it was generated after runtime, and I just unload everything that has gen as the tag) and I have also made one other change...

    ...now clicking the menu either shows or brings the window to the front...before it would show or hide the window...this is more realistic :-)

    My next step will be to add in lots of comments in the code so people know what it is doing
    Well, everyone else has been doing it :-)
    Loading a file into memory QUICKLY - Using SendKeys - HyperLabel - A highly customisable label replacement - Using resource files/DLLs with VB - Adding GZip to your projects
    Expect more to come in future
    If I have helped you, RATE ME! :-)

    I love helping noobs with their VB problems (probably because, as an amateur programmer, I am only slightly better at VB than them :-)) but if you SERIOUSLY want to get help for free from a community such as VBForums, you have to first have a grounding (basic knowledge) in VB6, otherwise you're way too much work to help...You've got to give a little if you want to get help from us, in other words!

    And we DON'T do your homework. If your tutor doesn't teach you enough to help you make the project without his or her help, FIND A BETTER TUTOR or try reading books on programming! We are happy to help with minor things regarding the project, but you have to understand the rest of it if you want our help to be useful.

  8. #8
    PoorPoster iPrank's Avatar
    Join Date
    Oct 2005
    Location
    In a black hole
    Posts
    2,729

    Re: Just thought I'd show off my prog :-)

    1.) Your Form is still missing Option Explicit. Add it and press Ctrl+F5 (start with full compile).
    (To autometically add Option Explicit when you open a new code window, go to,
    Tools>Options menu, and check "Require variable declaration" checkbox.)

    2.) For this app, this will be enough,
    VB Code:
    1. Private Sub cmdExit_Click()
    2.     Unload Me
    3. End Sub
    Usefull VBF Threads/Posts I Found . My flickr page .
    "I love being married. It's so great to find that one special person you want to annoy for the rest of your life." - Rita Rudner


  9. #9

    Thread Starter
    PowerPoster
    Join Date
    May 2006
    Location
    Location, location!
    Posts
    2,673

    Re: Just thought I'd show off my prog :-)

    Quote Originally Posted by iPrank
    1.) Your Form is still missing Option Explicit. Add it and press Ctrl+F5 (start with full compile).
    I added it to the module...I thought that made it global...but I'll do that now and make the changes and upload again (and delete the previous uploads)

    Quote Originally Posted by iPrank
    2.) For this app, this will be enough,
    VB Code:
    1. Private Sub cmdExit_Click()
    2.     Unload Me
    3. End Sub
    YOU said "Before terminating your app, always close all open objects and forms." :-P

    I'll leave it in there for now...it might be important later on if I add extra stuff later on (which I plan to...this is the building blocks for a game I plan to make :-))

    EDIT: I have removed all attachments and re-uploaded it to the *first* original post...so go there to get it...option explicit is in there and I've left the full unload code in there as it's cleaner IMO :-)
    Last edited by smUX; Aug 5th, 2006 at 03:33 PM.
    Well, everyone else has been doing it :-)
    Loading a file into memory QUICKLY - Using SendKeys - HyperLabel - A highly customisable label replacement - Using resource files/DLLs with VB - Adding GZip to your projects
    Expect more to come in future
    If I have helped you, RATE ME! :-)

    I love helping noobs with their VB problems (probably because, as an amateur programmer, I am only slightly better at VB than them :-)) but if you SERIOUSLY want to get help for free from a community such as VBForums, you have to first have a grounding (basic knowledge) in VB6, otherwise you're way too much work to help...You've got to give a little if you want to get help from us, in other words!

    And we DON'T do your homework. If your tutor doesn't teach you enough to help you make the project without his or her help, FIND A BETTER TUTOR or try reading books on programming! We are happy to help with minor things regarding the project, but you have to understand the rest of it if you want our help to be useful.

  10. #10
    PoorPoster iPrank's Avatar
    Join Date
    Oct 2005
    Location
    In a black hole
    Posts
    2,729

    Re: Just thought I'd show off my prog :-)

    Quote Originally Posted by smUX
    YOU said "Before terminating your app, always close all open objects and forms." :-P
    Objects = any database connections/Class objects/object created by CreateObject() etc.
    Forms = Forms

    I didn't say "Controls".
    All controls autometically get unloaded when their container unloads.
    Usefull VBF Threads/Posts I Found . My flickr page .
    "I love being married. It's so great to find that one special person you want to annoy for the rest of your life." - Rita Rudner


  11. #11

    Thread Starter
    PowerPoster
    Join Date
    May 2006
    Location
    Location, location!
    Posts
    2,673

    Re: Just thought I'd show off my prog :-)

    True...I think of a control as an object though...guess it will be better without the unload bit then...reduces the filesize a little too, so I am happy.

    Not bothering to upload it all again though...not yet...I'll comment the code a little first and upload an updated version tomorrow perhaps :-)
    Well, everyone else has been doing it :-)
    Loading a file into memory QUICKLY - Using SendKeys - HyperLabel - A highly customisable label replacement - Using resource files/DLLs with VB - Adding GZip to your projects
    Expect more to come in future
    If I have helped you, RATE ME! :-)

    I love helping noobs with their VB problems (probably because, as an amateur programmer, I am only slightly better at VB than them :-)) but if you SERIOUSLY want to get help for free from a community such as VBForums, you have to first have a grounding (basic knowledge) in VB6, otherwise you're way too much work to help...You've got to give a little if you want to get help from us, in other words!

    And we DON'T do your homework. If your tutor doesn't teach you enough to help you make the project without his or her help, FIND A BETTER TUTOR or try reading books on programming! We are happy to help with minor things regarding the project, but you have to understand the rest of it if you want our help to be useful.

  12. #12
    PoorPoster iPrank's Avatar
    Join Date
    Oct 2005
    Location
    In a black hole
    Posts
    2,729

    Re: Just thought I'd show off my prog :-)

    You have declared all variables as Single. But there is no need to. This only makes your app slower. Make them Long.
    Usefull VBF Threads/Posts I Found . My flickr page .
    "I love being married. It's so great to find that one special person you want to annoy for the rest of your life." - Rita Rudner


  13. #13

    Thread Starter
    PowerPoster
    Join Date
    May 2006
    Location
    Location, location!
    Posts
    2,673

    Re: Just thought I'd show off my prog :-)

    Made the changes (not uploading yet...tomorrow when I've commented) and I am also going to try putting the drag bar outside the frame to stop it from flickering...it should be simple enough to make the changes
    Well, everyone else has been doing it :-)
    Loading a file into memory QUICKLY - Using SendKeys - HyperLabel - A highly customisable label replacement - Using resource files/DLLs with VB - Adding GZip to your projects
    Expect more to come in future
    If I have helped you, RATE ME! :-)

    I love helping noobs with their VB problems (probably because, as an amateur programmer, I am only slightly better at VB than them :-)) but if you SERIOUSLY want to get help for free from a community such as VBForums, you have to first have a grounding (basic knowledge) in VB6, otherwise you're way too much work to help...You've got to give a little if you want to get help from us, in other words!

    And we DON'T do your homework. If your tutor doesn't teach you enough to help you make the project without his or her help, FIND A BETTER TUTOR or try reading books on programming! We are happy to help with minor things regarding the project, but you have to understand the rest of it if you want our help to be useful.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width