Click here to Skip to main content
15,914,016 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: please help !!!! [modified] Pin
The ANZAC13-Dec-06 18:26
The ANZAC13-Dec-06 18:26 
QuestionHelp With Treeviews Pin
J. Sebby13-Dec-06 3:59
J. Sebby13-Dec-06 3:59 
AnswerRe: Help With Treeviews Pin
Dave Sexton13-Dec-06 19:44
Dave Sexton13-Dec-06 19:44 
Questionmultiple currencies in one datagrid column Pin
Elwood Baker13-Dec-06 3:52
Elwood Baker13-Dec-06 3:52 
QuestionColumn from dataset not in xml file Pin
RainFox13-Dec-06 2:48
RainFox13-Dec-06 2:48 
Questionselected items in list Pin
peteyshrew13-Dec-06 2:02
peteyshrew13-Dec-06 2:02 
GeneralRe: selected items in list Pin
Guffa13-Dec-06 4:08
Guffa13-Dec-06 4:08 
Questionnotepad Pin
peteyshrew13-Dec-06 1:53
peteyshrew13-Dec-06 1:53 
i am creating a notepad in vs05 and i am trying to display the name of the file at the top of the screen when i open a file from desktop. this is the code i've got so far, instead of the file name it displays openfiledialog1. this is very anoying, any help would be appreciated. thanks

this is code i got:

Dim name As String = OpenFileDialog1.FileName


With OpenFileDialog1
.Title = "select file"
.InitialDirectory = "U:\MyDocuments"
.DefaultExt = "rtf"
.Filter = "rich text files(*.rtf)|*.rtf"
.FilterIndex = 1
End With

OpenFileDialog1.ShowDialog()

If OpenFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then

rtb1.LoadFile(OpenFileDialog1.FileName)
Else
MsgBox.show("unknown error during file read")

End If

Me.Text = name
AnswerRe: notepad Pin
Pete O'Hanlon13-Dec-06 2:30
mvePete O'Hanlon13-Dec-06 2:30 
QuestionExporting crystal report to excel issue Pin
Niruththigan13-Dec-06 0:51
Niruththigan13-Dec-06 0:51 
Questionitem selecting in list Pin
peteyshrew12-Dec-06 22:15
peteyshrew12-Dec-06 22:15 
AnswerRe: item selecting in list Pin
The ANZAC12-Dec-06 23:16
The ANZAC12-Dec-06 23:16 
GeneralRe: item selecting in list Pin
peteyshrew13-Dec-06 0:27
peteyshrew13-Dec-06 0:27 
QuestionPrinting the full Datagrid Pin
Rajiya12-Dec-06 22:02
Rajiya12-Dec-06 22:02 
QuestionVideo Conferencing in VB.net Pin
mikcoyen12-Dec-06 20:33
mikcoyen12-Dec-06 20:33 
JokeRe: Video Conferencing in VB.net Pin
Dave Sexton13-Dec-06 19:50
Dave Sexton13-Dec-06 19:50 
QuestionDatabase Explorer Modify Connection Pin
vbbeg12-Dec-06 14:20
vbbeg12-Dec-06 14:20 
AnswerRe: Database Explorer Modify Connection Pin
Kschuler13-Dec-06 6:28
Kschuler13-Dec-06 6:28 
GeneralRe: Database Explorer Modify Connection Pin
vbbeg13-Dec-06 11:35
vbbeg13-Dec-06 11:35 
GeneralRe: Database Explorer Modify Connection Pin
Kschuler14-Dec-06 2:53
Kschuler14-Dec-06 2:53 
QuestionExporting crystal report into html format Pin
7prince12-Dec-06 12:31
7prince12-Dec-06 12:31 
QuestionQuick easy way to set a whole form back to default design state... Pin
Joey Picerno12-Dec-06 8:20
Joey Picerno12-Dec-06 8:20 
AnswerRe: Quick easy way to set a whole form back to default design state... Pin
nlarson1112-Dec-06 9:03
nlarson1112-Dec-06 9:03 
GeneralRe: Quick easy way to set a whole form back to default design state... Pin
Joey Picerno12-Dec-06 9:57
Joey Picerno12-Dec-06 9:57 
QuestionSetting notifyIcon.icon with imagelist..help plz Pin
carl_sti12-Dec-06 8:03
carl_sti12-Dec-06 8:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.