Click here to Skip to main content
15,906,816 members
Home / Discussions / Visual Basic
   

Visual Basic

 
General[Message Deleted] Pin
pabloraul25-Mar-07 11:00
pabloraul25-Mar-07 11:00 
GeneralRe: stuck with WSDL in VB.net win forms Pin
Christian Graus25-Mar-07 11:58
protectorChristian Graus25-Mar-07 11:58 
QuestionMaximize window Pin
ayeleteric25-Mar-07 6:30
ayeleteric25-Mar-07 6:30 
AnswerRe: Maximize window Pin
kubben25-Mar-07 7:27
kubben25-Mar-07 7:27 
Questionvb.net book Pin
bhawna_k25-Mar-07 6:15
bhawna_k25-Mar-07 6:15 
AnswerRe: vb.net book Pin
Christian Graus25-Mar-07 9:19
protectorChristian Graus25-Mar-07 9:19 
AnswerRe: vb.net book Pin
Harini N K26-Mar-07 0:29
Harini N K26-Mar-07 0:29 
Questionfile empt Pin
bapu288925-Mar-07 5:55
bapu288925-Mar-07 5:55 
Hello

I am doing my study in vb.net and i have problem with files how can i show message that file is empty in try and catch block

this is my code

Try<br />
          FileOpen(1, "c:\test.txt", OpenMode.Input)<br />
          txtOut.Text = MyLine + ControlChars.CrLf<br />
          txtOut.Text += InputString(1, CInt(LOF(1)))<br />
          FileClose(1)<br />
      Catch ex As ........?????????  :confused:<br />
          MsgBox("File empty")<br />
      End Try


so what do i need to do with

catch ex as which exception

wating for help Frown | :(
AnswerRe: file empt Pin
MatrixCoder25-Mar-07 8:38
MatrixCoder25-Mar-07 8:38 
AnswerRe: file empt Pin
TwoFaced25-Mar-07 8:41
TwoFaced25-Mar-07 8:41 
QuestionFiltering data in Crystal Report Pin
Sheryl P25-Mar-07 4:16
Sheryl P25-Mar-07 4:16 
QuestionRemove top bar but keep title Pin
harveyhanson25-Mar-07 3:45
harveyhanson25-Mar-07 3:45 
AnswerRe: Remove top bar but keep title Pin
Christian Graus25-Mar-07 3:47
protectorChristian Graus25-Mar-07 3:47 
GeneralRe: Remove top bar but keep title Pin
harveyhanson25-Mar-07 6:19
harveyhanson25-Mar-07 6:19 
AnswerRe: Remove top bar but keep title Pin
MatrixCoder25-Mar-07 8:41
MatrixCoder25-Mar-07 8:41 
QuestionI need some push to solve the problem in updating XML file Pin
JUNEYT25-Mar-07 3:32
JUNEYT25-Mar-07 3:32 
AnswerRe: Problems with uploading files to HTTP/FTP Pin
kubben25-Mar-07 3:07
kubben25-Mar-07 3:07 
GeneralRe: Problems with uploading files to HTTP/FTP Pin
Brad^25-Mar-07 9:10
Brad^25-Mar-07 9:10 
GeneralRe: Problems with uploading files to HTTP/FTP Pin
kubben25-Mar-07 10:08
kubben25-Mar-07 10:08 
GeneralRe: Problems with uploading files to HTTP/FTP Pin
Brad^25-Mar-07 10:15
Brad^25-Mar-07 10:15 
GeneralRe: Problems with uploading files to HTTP/FTP Pin
Brad^25-Mar-07 10:49
Brad^25-Mar-07 10:49 
Questionmdilist property in MDI Forms Pin
Krishnan2325-Mar-07 0:24
Krishnan2325-Mar-07 0:24 
QuestionPlease Help Me. It is Very Urgent . Pin
harshpatil25-Mar-07 0:18
harshpatil25-Mar-07 0:18 
AnswerRe: Please Help Me. It is Very Urgent . Pin
Bassam Saoud25-Mar-07 1:13
Bassam Saoud25-Mar-07 1:13 
AnswerRe: Please Help Me. It is Very Urgent . Pin
Christian Graus25-Mar-07 3:19
protectorChristian Graus25-Mar-07 3:19 

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.