TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
azbird
NA
1
0
File I/O;OpenFileDialog
Nov 28 2004 6:48 PM
I have a browse button that successfully allows a user to navigate to a text file: OpenFileDialog openDialog = new OpenFileDialog(); openDialog.InitialDirectory = bFile; openDialog.FileName = bFile; openDialog.Filter = "All files (*.*)|*.*|All files (*.*)|*.*" ; bfile is a class module string variable that holds a valid path (ie: C:\FileName.txt). An existing file is hi-lighted and the 'file name' and 'files of type' boxes are filled with the correct file information. However, when the 'Open' button is clicked, the open file dialog closes and reveals my windows form. Notepad doesn't open and therefore the text file never opens. Any ideas? What am I missing here?
Reply
Answers (
1
)
open multiple files with simular file names
How to access my VB COM into C#?