Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

im trying to launch a text file document from vb.net using the code below:

However, when I press the button, I get the following message during debugging.

 

An unhandled exception of type 'System.ComponentModel.Win32Exception' occurred in system.dll

 

Additional information: The system cannot find the file specified

 

 

However, the file is there.

 

Anyone got any ideas?

Posted

Sorry, code attached

 

  Private Sub Button1_MouseHover(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.MouseHover
       System.Diagnostics.Process.Start("C:\odbcconf.txt")
   End Sub

 

This is the VB code im using!

Posted

I just tried your code and it worked fine.

 

Is the spelling of the text file in your code exactly the same as the saved text file?

  • *Experts*
Posted
Enable viewing file extensions for common types in your Windows and look if the file is not named "odbcconf.txt.txt", i get this problem sometimes.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...