Welcome to Dream.In.Code
Getting C# Help is Easy!

Join 109,548 C# Programmers for FREE! Ask your question and get quick answers from experts. There are 1,225 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



How to create the btnTop in VB

 
Reply to this topicStart new topic

How to create the btnTop in VB

somchay03
post 8 Aug, 2008 - 01:29 PM
Post #1


New D.I.C Head

*
Joined: 8 Aug, 2008
Posts: 3

Sample btnTop does not work
CODE
Private Sub btnTop_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnTop.Click

        intPos = intPos - 1
        If intPos < 1 Then
            intPos = 1
            MessageBox.Show("You are the first record.")
        End If
    End Sub


If I want to go to the top of the file from the bottom what code should I use?

I have my text file that contains, say, 10 records. I want to go from bottom, next, prev, then top. Hope this helps.

Regards.
User is offlineProfile CardPM

Go to the top of the page


jayman9
post 8 Aug, 2008 - 03:18 PM
Post #2


Student of Life

Group Icon
Joined: 26 Dec, 2005
Posts: 6,323



Thanked 22 times

Dream Kudos: 500

Expert In: C#, VB.NET, Java

My Contributions


How are you currently reading the text file?

Not sure what the code you posted has to do with reading a text file, since you are not do that in the procedure.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 9/7/08 10:29PM

Live C# Help!

C# Tutorials

Reference Sheets

C# Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month