Click here to Skip to main content
16,007,504 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: retrieving server date and time Pin
Dave Kreskowiak15-Sep-05 4:40
mveDave Kreskowiak15-Sep-05 4:40 
GeneralRe: retrieving server date and time Pin
dptalt16-Sep-05 2:52
dptalt16-Sep-05 2:52 
GeneralRe: retrieving server date and time Pin
Dave Kreskowiak16-Sep-05 3:15
mveDave Kreskowiak16-Sep-05 3:15 
GeneralRe: retrieving server date and time Pin
dptalt16-Sep-05 3:41
dptalt16-Sep-05 3:41 
QuestionOpening a Notepad file through opendialogbox in vb.net Pin
Anonymous13-Sep-05 20:34
Anonymous13-Sep-05 20:34 
AnswerRe: Opening a Notepad file through opendialogbox in vb.net Pin
Anonymous13-Sep-05 21:44
Anonymous13-Sep-05 21:44 
GeneralRe: Opening a Notepad file through opendialogbox in vb.net Pin
Anonymous13-Sep-05 22:50
Anonymous13-Sep-05 22:50 
GeneralRe: Opening a Notepad file through opendialogbox in vb.net Pin
Dave Kreskowiak14-Sep-05 1:45
mveDave Kreskowiak14-Sep-05 1:45 
The OpenFileDialog doesn't actually launch anything. All it does is let the use pick a file which is returned to your application as a String,
C:\Documents and Settings\username\myFile.txt
It's up to your code to do whatever you need to with this String. In your case, you have to launch Notepad, so you use the Process class to do this:
openFileDialog1.Multiselect = False
If openFileDialog1.ShowDialog() = DialogResult.OK Then
    Dim myFilePath As String = openFileDialog1.FileName
    Process.Start("Notepad.exe", myFilePath)
End If



RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: Opening a Notepad file through opendialogbox in vb.net Pin
Anonymous14-Sep-05 21:17
Anonymous14-Sep-05 21:17 
Question[SOS] about API(SendMessage or PostMessage),help me ,please Pin
cnet200813-Sep-05 20:09
cnet200813-Sep-05 20:09 
AnswerRe: [SOS] about API(SendMessage or PostMessage),help me ,please Pin
cnet200814-Sep-05 20:49
cnet200814-Sep-05 20:49 
GeneralRe: [SOS] about API(SendMessage or PostMessage),help me ,please Pin
Dave Kreskowiak15-Sep-05 7:18
mveDave Kreskowiak15-Sep-05 7:18 
QuestionFocus in RichTextBox Pin
Taen_Karth13-Sep-05 17:57
Taen_Karth13-Sep-05 17:57 
AnswerRe: Focus in RichTextBox Pin
Steve Pullan13-Sep-05 21:23
Steve Pullan13-Sep-05 21:23 
QuestionString and Object Pin
militiaware13-Sep-05 15:31
militiaware13-Sep-05 15:31 
AnswerRe: String and Object Pin
rwestgraham13-Sep-05 15:45
rwestgraham13-Sep-05 15:45 
QuestionExcel and vbscript Pin
netmeister13-Sep-05 11:32
netmeister13-Sep-05 11:32 
Questionautomate saving a web page? Pin
gtjr9213-Sep-05 8:36
gtjr9213-Sep-05 8:36 
QuestionDynamic Context Menu Pin
No-e13-Sep-05 8:26
No-e13-Sep-05 8:26 
AnswerRe: Dynamic Context Menu Pin
Steve Pullan13-Sep-05 13:36
Steve Pullan13-Sep-05 13:36 
AnswerRe: Dynamic Context Menu Pin
Briga15-Sep-05 23:23
Briga15-Sep-05 23:23 
QuestionVisual Basic .NET Standard vs. SQL Server 2000 Developer Edition Pin
medicenpringles13-Sep-05 8:18
medicenpringles13-Sep-05 8:18 
AnswerRe: Visual Basic .NET Standard vs. SQL Server 2000 Developer Edition Pin
Dave Kreskowiak13-Sep-05 8:50
mveDave Kreskowiak13-Sep-05 8:50 
GeneralRe: Visual Basic .NET Standard vs. SQL Server 2000 Developer Edition Pin
medicenpringles13-Sep-05 9:41
medicenpringles13-Sep-05 9:41 
GeneralRe: Visual Basic .NET Standard vs. SQL Server 2000 Developer Edition Pin
Dave Kreskowiak13-Sep-05 12:32
mveDave Kreskowiak13-Sep-05 12:32 

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.