Notes
Printed From: Mirage Source
Category: Tutorials
Forum Name: Temporary Archive (Read Only)
Forum Discription: Temporary 3.0.3 archive tutorials, will be deleted when converted.
URL: http://ms.shannaracorp.com/backup-forums/forum_posts.asp?TID=161
Printed Date: 20 December 2006 at 5:52pm Software Version: Web Wiz Forums 8.01 - http://www.webwizforums.com
Topic: Notes
Posted By: Sync
Subject: Notes
Date Posted: 11 February 2006 at 3:11pm
Difficulty: Easy 2/5
Originaly Posted By: Unreal
Ok im gonna show ya how to make a kind of Log / Diary / Note maker kinda thing, you press a button on frmMiarge which opens up a new form, then you can input info into a textbox press save, then it saves into settings.dat under a new Extras section, just so that you can keep it awey from the other General section incase you have added the Save user / pass / ip thing =D anywere here:
First make a new form, call it frmNotes now make the caption what ever ya wont and everything, now Make a text box and button. Call the textbox txtNotes and the button cmdSave. Now view the code and replace everything there with this:
Option Explicit
Private Sub cmdSave_Click() Call PutVar(App.Path & "/settings.dat", "EXTRA", "NOTES", txtNotes.Text) End Sub
Private Sub Form_Load() txtNotes.Text = GetVar(App.Path & "/settings.dat", "EXTRA", "NOTES") End Sub
Now go into frmMirage and make a button called cmdNotes and biew the ciode for it and make it look like this:
Private Sub cmdNotes_Click() frmNotes.Visible = True End Sub
Now if you dont have one make a settings.dat ( download it here if you dont got one ) If you do have one then it will look like this:
[GENERAL] REMNAME=1 REMPASS=1 NAME=blabla PASS=blabla IP="000.000.000"
Make it look like this:
[GENERAL] REMNAME=1 REMPASS=1 NAME=blabla PASS=blabla IP="000.000.000" [EXTRA] NOTES=
Thats it =D Have fun, anyproblems just post
|
|