Results 1 to 5 of 5
  1. #1
    Ugleh's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    House, Where you live?
    Posts
    276
    Reputation
    17
    Thanks
    221
    My Mood
    Blah

    [TUT] Show 1 time only [VB 2008]

    In this basic Tutorial I will be showing all of you how to make an item, could be a Alert, or could be a any event you want only show once. In this tutorial, ill be showing you how to do it for a Message Box on Load.
    Ill go slow for the beginners.

    Step 1
    You should make a New Project, or use an existing project.
    Now, go to the Solution Explorer on the right, and double click on My Project.


    Step 2
    Go to Settings and add a new setting called "OneTime". should look like this


    Step 3
    Go back to Form1, and click its form, so you can be in the Form1 Class.
    Right below
    Code:
    Public Class Form1
    add
    Code:
    Dim Settings As New My.MySettings
    So it looks like
    Code:
    Public Class Form1
    Dim Settings As New My.MySettings
    Step 4
    Go into Form1 Load sub, if you dont know what that is, it looks like
    Code:
    Private Sub Form1_Load......
    Under that, add this
    Code:
    If Settings.OneTime = "1" Then
    Press Enter, and an "End If" should appear below it.

    What this does is it gives us a If statement, so that we can make it so If Settings.oneTime does equal to 1, then it will do nothing, and if it doesnt equal to 1, then it will show a messagebox.
    If all went well, it should be looking like this


    Step 4B
    Between the above code, and the End If put
    Code:
    Else
    MsgBox("Thank you for downloading this Tutorial App, This will only show Once", , "Thank You!")
    So it should look like

    I hope im going slow enough for you.

    Step 4C
    Last part of the code, We are now going to make the Settings of OneTIme (Settings.OneTime) equal 1, so that it will not show up again.

    Below the code we talked about in Step 4B, add this
    Code:
    Settings.OneTime = "1"
    Settings.Save()
    So now after everything it should look like


    Debug
    Now Press the Debug button on the top, and you should get a PopUp, opening it up again will make it not show.

    When you have your finished .EXE please do not open it and give it out, or that saved setting will go with it, instead make a copy of the exe, and then click the copy, releasing the original to the public.

    Complete Code

    Code:
    Public Class Form1
        Dim Settings As New My.MySettings
        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            If Settings.OneTime = "1" Then
            Else
                MsgBox("Thank you for downloading this Tutorial App, This will only show Once", , "Thank You!")
                Settings.OneTime = "1"
                Settings.Save()
            End If
        End Sub
    End Class

  2. The Following 2 Users Say Thank You to Ugleh For This Useful Post:

    mnpeep (12-23-2009),trevor206 (10-08-2009)

  3. #2
    Pixie's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    Pixie wird wieder steigen.
    Posts
    1,884
    Reputation
    22
    Thanks
    229
    My Mood
    Fine
    So this is kinda like Cheat Engine, the first time you open it, it gives you a message box saying: This is your first time using Cheat Engine, would you like to use the tutorial?

    Or something like that, but any way, so is it like that (above)??

  4. #3
    Ugleh's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    House, Where you live?
    Posts
    276
    Reputation
    17
    Thanks
    221
    My Mood
    Blah
    Basically. it will only show the alert once, any other time you open and it will not show ever again. Unless they re-download the program.

  5. #4
    Zebra's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    26
    Reputation
    10
    Thanks
    5
    My Mood
    Brooding
    Nice but, it is really easy to crack it.

  6. #5
    batuzai43's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Posts
    10
    Reputation
    10
    Thanks
    1
    My Mood
    Doh
    yey,i have edited the text saying its a virus but not lol

Similar Threads

  1. [Solved] Mod for day time only?
    By Skyline. in forum Minecraft Help
    Replies: 15
    Last Post: 03-06-2011, 06:49 PM
  2. [C++ SOURCE]Simple D3D Show Time and Date
    By mastermods in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 12
    Last Post: 08-11-2010, 08:50 AM
  3. TUTORIAL Show Time
    By GameTrainerMaker in forum C++/C Programming
    Replies: 3
    Last Post: 07-30-2010, 10:08 PM
  4. {TUT}MPGH hack (December 22,2008)
    By Johan12 in forum Combat Arms Hacks & Cheats
    Replies: 16
    Last Post: 12-30-2008, 03:54 PM
  5. Only for 2008 Users...
    By DarkBright in forum Visual Basic Programming
    Replies: 1
    Last Post: 03-09-2008, 12:31 PM

Tags for this Thread