User Profile

Collapse

Profile Sidebar

Collapse
carl2k2
carl2k2
Last Activity: Apr 3 '08, 06:01 PM
Joined: Mar 19 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Trying to make a simple login/registration vb6

    Ok First I have a very simple way of entering data into a form and saving that into a text file,

    I made two text files for username(text1) and password(text2) , I would like to make a simple login with the outcome out this,

    Code for Registration:

    Code:
    Dim savefile As Long
    savefile = FreeFile()
    Open "I:\College Work ------- Updated 2008 March\new-work\savedfile.txt" For Output As #savefile
    ...
    See more | Go to post

  • How to make it read the text file is the data is printed like this

    "username1","pa ssword1"
    "username2","pa ssword2"

    etc.
    See more | Go to post

    Leave a comment:


  • carl2k2
    replied to read/write username/password in txt
    Can you show me example in :

    Code:
    Dim savefile As Long
    savefile = FreeFile()
    Open "I:\College Work ------- Updated 2008 March\new-work\savedfile.txt" For Output As #savefile
    Write #savefile, (Text1.Text); Split(Text2.Text)
    Close #savefile
    I was reading, do i have to setup more variables for this :S?



    trying but getting errors,

    [PHP]Dim savefile As...
    See more | Go to post

    Leave a comment:


  • carl2k2
    replied to read/write username/password in txt
    Ok I used that tutorial although have a few errors since vista won't give me correct permissions(stu pid vista :@)

    This code needs modifying

    Code:
    Dim savefile As Long
    savefile = FreeFile()
    Open "F:\Users\Kate\Documents\savedfile.txt" For Output As #savefile
    Write #savefile, (Text1.Text), (Text2.Text)
    Close #savefile
    I need it so (text2.text) will be displayed under text...
    See more | Go to post

    Leave a comment:


  • carl2k2
    started a topic read/write username/password in txt

    read/write username/password in txt

    Ok trying to setup a simple user login system

    The first attempt I just used if statements for example

    Code:
    If txtusername = "carl" and txtpassword = "password" Then
    OK = True
    Form4.show
    else
    MSGbox("please enter correct details")
    end if
    Anyway the way above works, but I would like it if I can store the username/password in text file, so I can...
    See more | Go to post

  • carl2k2
    started a topic How to set cancel option

    How to set cancel option

    Ok kind of new to this part,

    Here is my code I have set,

    [PHP]If (CHKcat1 = 1) Or (CHKcatb = 1) Or (CHKcatc = 1) Or (CHKcorp = 1) Or (CHKexe = 1) Then
    response = MsgBox("Are you sure you want to proceed?", vbOKCancel)
    Form4.Show
    Else
    response = MsgBox("Please Select your ticket")
    End If[/PHP]

    But how to set it up so that if they hit cancel it will...
    See more | Go to post

  • As I have been testing this :), I came up with this code, and so far seems to work, although I still need to test it, but am I going along the right lines??

    Code:
    If (Form2.Check1.Value = 1) And (CHKcat1.Value = 1) Then
    LBLprice.Caption = "£20.00"
    LBLinfo.Caption = "Hello"
    End If
    See more | Go to post

    Leave a comment:


  • I got a big problem with my values , checkboxes

    Ok, I have 5 categories each have their own price, example of the code:

    Code:
    If CHKcat1.Value = 1 Then
    LBLprice.Caption = "£20"
    LBLinfo.Caption = "Hello"
    Else
    LBLprice.Caption = ""
    LBLinfo.Caption = ""
    LBLpxvat.Caption = ""
    LBLtotalprice.Caption = ""
    End If
    
    If CHKcat1.Value = 1 Then
    LBLtotal.Caption
    ...
    See more | Go to post

  • How to get information from one form to another?

    Lets say if information has been select via check boxes, and a total price information in one form, how to make like an invoice slip, so all data from one form that I want will go to the next like an order confirmation.
    See more | Go to post

  • can u give me an example?...
    See more | Go to post

    Leave a comment:


  • How to make it so i dont need to use a command button

    As part of my system, I wanted it so it would add values given in two text boxes together, i only know how to do this in the command button :)

    Here is my code;

    Code:
    LBLxvat.Caption = (txtNoOfAdults.Text) + Val(txtNoOfChild.Text)
    See more | Go to post

  • How to add currency £ ?
    See more | Go to post

    Leave a comment:


  • Ok Thanks, that small code has helped me a lot :D
    See more | Go to post

    Leave a comment:


  • Ok I found out a few things, just stuck on one part

    If CHKtriv.Value = 1 Then
    LBLtotal.Captio n = "£50"
    Else
    LBLtotal.Captio n = ""
    End If

    How to expand this, for it to check if the adults, I think the forumula needed it

    £50 * Adult value = Adult Price, so it would be £50 * 4 = £200 for 4 adults, but I dont know what code I need for that.
    See more | Go to post

    Leave a comment:


  • carl2k2
    started a topic I need help with checkboxes and calculating

    I need help with checkboxes and calculating

    Ok, I need help with putting values of checkboxes in the code,

    Heres an example of how my form wil l look like:


    Ok I wanted it so The Trivium checkbox would obv equal to £50, so if I checked it, it would be selected and the price would be displayed in total price, and for the part where it says number of adults I wanted to set it so each adults would cost £5+ticket, as an example, below it shud say number...
    See more | Go to post
No activity results to display
Show More
Working...