Results 1 to 15 of 15

Thread: Limiting Run Time of Applications

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2009
    Location
    Clive, IA in America!!!!
    Posts
    204

    Limiting Run Time of Applications

    I am creating a program to limit the run time of apps. This way I can have more control of what time frame a person can be on my computer.

    I can do this, except I want, 1) to be able to extract executables from my executable, 2) Be able to set those executable's icon to an embedded icon in another executable.

    I have no idea how to do this in 6.0. I was able to in .net, but because older computers won't have .net, I wanted to be sure that the applications will run correctly.

    Let me know if this is not very clear.
    Last edited by VBNetDude; Nov 7th, 2009 at 12:32 PM. Reason: Typing Errors

    VBNetDude - Thinking Programmatically
    By Silver Seal Software

    Don't forget to mark your thread as "Resolved" using the Thread Tools menu on top. And don't forget to rate the answers that help you the most!

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Oct 2009
    Location
    Clive, IA in America!!!!
    Posts
    204

    Re: Limiting Run Time of Applications

    Is there any way I could get an answer?

    VBNetDude - Thinking Programmatically
    By Silver Seal Software

    Don't forget to mark your thread as "Resolved" using the Thread Tools menu on top. And don't forget to rate the answers that help you the most!

  3. #3
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: Limiting Run Time of Applications

    was able to in .net, but because older computers won't have .net
    I didn't heard about that....
    Why don't you use the .Net Frame work setup to be included in your setup package....???

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Oct 2009
    Location
    Clive, IA in America!!!!
    Posts
    204

    Re: Limiting Run Time of Applications

    Thanks for replying! I hadn't seen that ability. I will look again!

    VBNetDude - Thinking Programmatically
    By Silver Seal Software

    Don't forget to mark your thread as "Resolved" using the Thread Tools menu on top. And don't forget to rate the answers that help you the most!

  5. #5
    PowerPoster CDRIVE's Avatar
    Join Date
    Jul 2007
    Posts
    2,620

    Re: Limiting Run Time of Applications

    Quote Originally Posted by akhileshbc View Post
    I didn't heard about that....
    Why don't you use the .Net Frame work setup to be included in your setup package....???
    I know nada of NET but I've been under the impression that better than 50% of the NET users are using the free NET Express edition. I know that Express can't make an .exe, so it would seem unlikely that it could make a .Net Frame work Setup Package. Can it?
    <--- Did someone help you? Please rate their post. The little green squares make us feel really smart!
    If topic has been resolved, please pull down the Thread Tools & mark it Resolved.


    Is VB consuming your life, and is that a bad thing??

  6. #6
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: Limiting Run Time of Applications

    I know nada of NET but I've been under the impression that better than 50&#37; of the NET users are using the free NET Express edition. I know that Express can't make an .exe, so it would seem unlikely that it could make a .Net Frame work Setup Package. Can it?
    I don't have any knowledge about Vb.Net

    But, when I bought some games like Spiderman:Web Of Shadows, etc. they had included the .Net Framework redistributable setup file with the installer....
    I was talking about that...

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Oct 2009
    Location
    Clive, IA in America!!!!
    Posts
    204

    Re: Limiting Run Time of Applications

    I am using VS 2008 Professional, but I wanted to extract icons from executables. This way I could rename the original executable and replace it with mine... I wanted to do this in VB 6.0...

    VBNetDude - Thinking Programmatically
    By Silver Seal Software

    Don't forget to mark your thread as "Resolved" using the Thread Tools menu on top. And don't forget to rate the answers that help you the most!

  8. #8
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: Limiting Run Time of Applications


    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  9. #9

    Thread Starter
    Addicted Member
    Join Date
    Oct 2009
    Location
    Clive, IA in America!!!!
    Posts
    204

    Re: Limiting Run Time of Applications

    Quote Originally Posted by akhileshbc View Post
    I don't have any knowledge about Vb.Net

    But, when I bought some games like Spiderman:Web Of Shadows, etc. they had included the .Net Framework redistributable setup file with the installer....
    I was talking about that...
    I don't have access to my Visual Studio otherwise I would check to see if this is possible: to package the .net framework and my application in one executable. I will be able to check in about a week... I do have VB 6.0, though.

    VBNetDude - Thinking Programmatically
    By Silver Seal Software

    Don't forget to mark your thread as "Resolved" using the Thread Tools menu on top. And don't forget to rate the answers that help you the most!

  10. #10
    Member
    Join Date
    Oct 2009
    Location
    Pretoria, South Africa
    Posts
    38

    Re: Limiting Run Time of Applications

    In vs 2008 Pro. When you create an setup wizard package it will add .net as a dependencies then it will download it if the machine does not have it.

    If you use the publish option under the properties. That will also create the dependencies and doenload on setup. The downside is that it is a big download.

    Hope this helps

  11. #11
    Member
    Join Date
    Oct 2009
    Location
    Pretoria, South Africa
    Posts
    38

    Re: Limiting Run Time of Applications

    Read this article on creating a setup wizard. it will explain to you how to put dot net into your package

    http://www.vbmysql.com/articles/vbne...dows-installer

  12. #12
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: Limiting Run Time of Applications

    I don't have access to my Visual Studio otherwise I would check to see if this is possible: to package the .net framework and my application in one executable. I will be able to check in about a week... I do have VB 6.0, though.
    I mean to include the .net setup file in a separate folder and when the user installs your program, the setup script will check if .net framework is installed in the computer, if not, direct it to open the .net setup file located in some other folder of your setup disk....

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  13. #13

    Thread Starter
    Addicted Member
    Join Date
    Oct 2009
    Location
    Clive, IA in America!!!!
    Posts
    204

    Re: Limiting Run Time of Applications

    Quote Originally Posted by akhileshbc View Post
    akhileshbc,

    You are the best! I will take a look at that and see if I can edit the code to get it to save to an icon file (*.ico) using the CommonDialog.SaveFileDialog. In the meantime, any suggestions? I love not having to search Google! (Which I have done for hours at a time!)

    VBNetDude - Thinking Programmatically
    By Silver Seal Software

    Don't forget to mark your thread as "Resolved" using the Thread Tools menu on top. And don't forget to rate the answers that help you the most!

  14. #14

    Thread Starter
    Addicted Member
    Join Date
    Oct 2009
    Location
    Clive, IA in America!!!!
    Posts
    204

    Re: Limiting Run Time of Applications

    I found this?:Here. Is this what I want?

    VBNetDude - Thinking Programmatically
    By Silver Seal Software

    Don't forget to mark your thread as "Resolved" using the Thread Tools menu on top. And don't forget to rate the answers that help you the most!

  15. #15

    Thread Starter
    Addicted Member
    Join Date
    Oct 2009
    Location
    Clive, IA in America!!!!
    Posts
    204

    Re: Limiting Run Time of Applications

    I know this is not what I originally asked, but

    How do I save a file as an icon? I want to be able to set it as an application's default icon (one that is displayed, say, when the application shortcut is on the desktop)

    I can explain more if necessary...

    VBNetDude - Thinking Programmatically
    By Silver Seal Software

    Don't forget to mark your thread as "Resolved" using the Thread Tools menu on top. And don't forget to rate the answers that help you the most!

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