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

Join 149,928 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 1,853 people online right now. Registration is fast and FREE... Join Now!




movie file into textbox

 
Reply to this topicStart new topic

movie file into textbox, Need to open file, get the name and put the name of the movie into a t

GreenBeret87
16 Jan, 2008 - 08:19 AM
Post #1

New D.I.C Head
*

Joined: 15 Jan, 2008
Posts: 8


My Contributions
Hiya, having huge troubles opening a movie file .avi or .mov into a textbox and then sort the movie file names into alphabetical order.

Here is the code that i have so far

CODE
Dim i As Integer = 0
        Dim AllText As String = ""
        OpenFileDialog1.Filter = "Movie File (*.avi)|*.avi"
        OpenFileDialog1.ShowDialog() 'display Open dialog box
        If OpenFileDialog1.FileName <> "" Then
            Try
                FileOpen(1, "Movies,Txt", OpenMode.Input)
                Do Until EOF(1)
                    AllText = My.Computer.FileSystem.GetName(OpenFileDialog1.FileName)
                Loop
                lblNote.Text = OpenFileDialog1.FileName  'update   label
                txtNote.Text = AllText 'display file
                txtNote.Enabled = True 'allow text cursor
                CloseToolStripMenuItem.Enabled = True  'enable Close command

            Catch
                MsgBox("Error opening file.")

            Finally
                FileClose(1) 'close file
            End Try
        End If


I'm sort of ok for the sorting code as i know it will be something like array.sort and using UBound of some sort and ascii codes

To anyone who helps, thanks in advance
User is offlineProfile CardPM
+Quote Post

Nayana
RE: Movie File Into Textbox
18 Jan, 2008 - 12:00 AM
Post #2

DIC Hawk - 나야나 नयन:
Group Icon

Joined: 14 Nov, 2007
Posts: 824



Thanked: 5 times
Dream Kudos: 175
My Contributions
This post should be in the VB.net forum!
User is offlineProfile CardPM
+Quote Post

born2c0de
RE: Movie File Into Textbox
18 Jan, 2008 - 02:48 AM
Post #3

printf("I'm a %XR",195936478);
Group Icon

Joined: 26 Nov, 2004
Posts: 4,029



Thanked: 38 times
Dream Kudos: 2800
Expert In: 80x86 Assembly, C/C++, VB6, VB.NET, C#, J2SE, Win32 API, Reversing

My Contributions
Moved.
User is offlineProfile CardPM
+Quote Post

GreenBeret87
RE: Movie File Into Textbox
22 Jan, 2008 - 06:26 AM
Post #4

New D.I.C Head
*

Joined: 15 Jan, 2008
Posts: 8


My Contributions
To whoever may be working on this, you may still wish to post ur help but i figured out what was wrong, I was trying to load an avi file into a textbox which ur unable to do.

I have fixed the problem myself and got what i wanted, thanks.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 03:07PM

Be Social

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

Live VB.NET Help!

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month