VB.NET School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become a VB.NET Expert!

Join 307,124 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 2,005 people online right now. Registration is fast and FREE... Join Now!




VB.Net Tutorial Suggestions

7 Pages V « < 5 6 7  

VB.Net Tutorial Suggestions, Is there something you'd like to see covered in VB.Net

AdamSpeight2008

RE: VB.Net Tutorial Suggestions

23 Oct, 2009 - 12:55 AM
Post #121

The Bandido Coder
Group Icon

Joined: 29 May, 2008
Posts: 2,734



Thanked: 160 times
Dream Kudos: 3925
Expert In: vb.net, LINQ

My Contributions
As Mod: This thread is a discussion about tutorials but more about tutorial you would like to see.
So if there is one you would like to see add it, and another member could write it.
User is offlineProfile CardPM
+Quote Post

jcremeans11

RE: VB.Net Tutorial Suggestions

25 Oct, 2009 - 05:26 PM
Post #122

D.I.C Head
**

Joined: 4 Oct, 2009
Posts: 172



Thanked: 9 times
My Contributions
I'd like to see a tutorial that shows how to make your app interface and control other programs, such as an internet block does to internet explorer.
User is offlineProfile CardPM
+Quote Post

glenn3095

RE: VB.Net Tutorial Suggestions

1 Nov, 2009 - 09:58 PM
Post #123

New D.I.C Head
*

Joined: 23 Sep, 2009
Posts: 1

QUOTE(PsychoCoder @ 5 Aug, 2007 - 10:26 AM) *

If you would like to see a certain topic covered in VB.Net post your request or suggestion here. The tutorial, more than likely, wont be written the instant you post your suggestion but someone will work on it for you.

I would love to see a tute on using Data Grid Views. Setting these things up is driving me nuts.
Thanks.
User is offlineProfile CardPM
+Quote Post

D00M

RE: VB.Net Tutorial Suggestions

5 Nov, 2009 - 07:33 AM
Post #124

New D.I.C Head
*

Joined: 5 Nov, 2009
Posts: 6

Hello. I looked on the site and didnt seem to find anything on this so hopefully you havnt allready touched on it and Im just being ignorant. It is a simple matter anyway but I am very new to VB and would appreciate the help.

Basically, I am working on a project which requires a login system. Now the system may be simple ans straight forward, but I am looking for discretionary marks and have dont some research on an advanced login system.

I was able to get what I want. A login system with a create account side to it, whereby a folder with users is created. It is working perfectly but I was only able to do this while both login and create account pages were on the same form, either side by side or on different tabs. I however wish to make form 1 have the login, with a create new account button, which will take me to form 2, which will hold the create account GUI. I tried to do that, didnt seem to be much harder, but after creating the account, form 1, the login form, does not find the folder with the account although i seem to have clearly showed it where it is and put in the variables to read it.

I am getting long-winded here so I will post the code I curently have setup, and will ask if you could possibly make a tutorial on how to create an advanced login system on 2 forms as I have described. Thanks

here is my code on the login system:


Create Account button - form2(user gets here by clicking create acc button on form1 :

CODE
  Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCreateAcc.Click
        If My.Computer.FileSystem.DirectoryExists("C:\Accounts\") Then

        Else

            MkDir("C:\Accounts\")

        End If

        If My.Computer.FileSystem.DirectoryExists("C\Accounts\" + txtUserChoice.Text) Then
            MsgBox("Error - Account allready exists")
        Else
            MkDir("C:\Accounts\" + txtUserChoice.Text)
            Dim a As New System.IO.StreamWriter("C\Accounts\" + txtUserChoice.Text + "\Username.txt")
            a.WriteLine(txtUserChoice.Text)
            a.Close()

            Dim b As New System.IO.StreamWriter("C\Accounts\" + txtUserChoice.Text + "\Password.txt")
            b.WriteLine(txtPassChoice.Text)
            b.Close()

            MsgBox("Account Created. You may now login")
            frmLogin.Show()
            Me.Hide()



        End If
    End Sub



and the login button on form 1, which reappears after user presses create button:

CODE
Private Sub btnLogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLogin.Click
        Try

            Dim sa As String
            Dim sb As String

            Dim a As New System.IO.StreamReader("C:\Accounts\" + txtUsername.Text + "\Username.txt")
            sa = a.ReadLine()
            a.Close()

            Dim b As New System.IO.StreamReader("C:\Accounts\" + txtUsername.Text + "\Password.txt")
            sb = b.ReadLine()
            b.Close()

            If txtUsername.Text = sa.ToString Then
                If txtPassword.Text = sb.ToString Then
                    MsgBox("Welcome -" + sa.ToString)

                Else
                    MsgBox("Error - Password Incorrect, please try again")

                End If
            Else

                MsgBox("Error - Account does not exist")

            End If




        Catch ex As Exception

            MsgBox("Error - " + ex.Message)


        End Try
    End Sub




Note that i used the try and catch way, although there was an alternative, but I wish to use the try and catch as we recently touched on it and it would be good if I used it.

This post has been edited by D00M: 5 Nov, 2009 - 07:35 AM
User is offlineProfile CardPM
+Quote Post

jcremeans11

RE: VB.Net Tutorial Suggestions

5 Nov, 2009 - 12:29 PM
Post #125

D.I.C Head
**

Joined: 4 Oct, 2009
Posts: 172



Thanked: 9 times
My Contributions
You need to use the phrase "static" instead of "dim"
User is offlineProfile CardPM
+Quote Post

D00M

RE: VB.Net Tutorial Suggestions

6 Nov, 2009 - 04:41 AM
Post #126

New D.I.C Head
*

Joined: 5 Nov, 2009
Posts: 6

You mean change every single variable to static or just the ones that read the files? Or?
User is offlineProfile CardPM
+Quote Post

jcremeans11

RE: VB.Net Tutorial Suggestions

6 Nov, 2009 - 12:28 PM
Post #127

D.I.C Head
**

Joined: 4 Oct, 2009
Posts: 172



Thanked: 9 times
My Contributions
well, it depends on how you want to use each on. If you want the information to be used on that one open form, then thrown out, use dim. If you want to keep the information throughout the rest of the program, use static. Also, you need to save your accounts to a database. There are a few tutorials in here that demonstrate how to do that.

User is offlineProfile CardPM
+Quote Post

D00M

RE: VB.Net Tutorial Suggestions

6 Nov, 2009 - 03:26 PM
Post #128

New D.I.C Head
*

Joined: 5 Nov, 2009
Posts: 6

Yes I was thincking about that. A later part of my project will require a data base aswell ,so I was going to look into how to work with that. Thanks, I will try to adjust the variables, and get the database working as soon as I get the grips of it.
User is offlineProfile CardPM
+Quote Post

polens

RE: VB.Net Tutorial Suggestions

8 Nov, 2009 - 11:14 PM
Post #129

New D.I.C Head
*

Joined: 8 Nov, 2009
Posts: 2

can anyone help me??
i am looking for the basic parts or label of a VB.net screen...
I can't find it in the internet,
and hoping that you guy's can help me...
User is offlineProfile CardPM
+Quote Post

motcom

RE: VB.Net Tutorial Suggestions

10 Nov, 2009 - 01:44 AM
Post #130

D.I.C Addict
Group Icon

Joined: 16 Jun, 2008
Posts: 548



Thanked: 94 times
Dream Kudos: 175
My Contributions
Hey guys, where are in the Request a Tutorial section.

Whats happening here is actually a post for the vb.net forum itself and not the tutorials request section.....
User is offlineProfile CardPM
+Quote Post

Donnie1581

RE: VB.Net Tutorial Suggestions

13 Nov, 2009 - 04:10 AM
Post #131

D.I.C Head
**

Joined: 5 Nov, 2009
Posts: 56



Thanked: 2 times
My Contributions
I would like to request an extensive tutorial on using multiple user-defined classes, object instantiation, and WithEvents. I've been over the tutorials that talk a little about classes and objects but they didn't have enough detail for me to grasp.

My final project for Intermediate to Visual Basic was suppose to use a form class, an account class, and transaction class with triggered events. It turned out to be a disaster and now I'm like lost in the dark and have no clue on how it should have been done correctly.

My professor wasn't too helpful; I went the whole term getting full points on all my projects, then we cover OOP in about a week which was nowhere enough time to fully understand how to use objects of classA inside classB and send it to the form for display.

This post has been edited by Donnie1581: 13 Nov, 2009 - 04:43 AM
User is offlineProfile CardPM
+Quote Post

LeisureProgrammer

RE: VB.Net Tutorial Suggestions

19 Nov, 2009 - 12:15 PM
Post #132

D.I.C Head
**

Joined: 6 Sep, 2009
Posts: 97



Thanked: 11 times
My Contributions
I would love to see a quick tutorial on how to get the number of Gmail messages in my Gmail account. This will probably use POP3.
User is online!Profile CardPM
+Quote Post

7 Pages V « < 5 6 7
Fast ReplyReply to this topicStart new topic

Time is now: 11/21/09 02:07PM

Live VB.NET Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month