Click here to Skip to main content
16,010,268 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow to capture print command given by the user. Pin
coolsatty1-Feb-08 23:05
coolsatty1-Feb-08 23:05 
AnswerRe: How to capture print command given by the user. Pin
Duncan Edwards Jones3-Feb-08 22:42
professionalDuncan Edwards Jones3-Feb-08 22:42 
GeneralWindows Cover Form [modified] Pin
Ahmad Rifai Yusuf1-Feb-08 21:52
Ahmad Rifai Yusuf1-Feb-08 21:52 
GeneralRe: Windows Cover Form Pin
Dave Kreskowiak5-Feb-08 10:20
mveDave Kreskowiak5-Feb-08 10:20 
QuestionHow to create windows scheduler Pin
vidyashankar1-Feb-08 17:45
vidyashankar1-Feb-08 17:45 
AnswerRe: How to create windows scheduler Pin
Mycroft Holmes3-Feb-08 16:02
professionalMycroft Holmes3-Feb-08 16:02 
GeneralNew to VB.Net Pin
obeemus1-Feb-08 3:31
obeemus1-Feb-08 3:31 
GeneralRe: New to VB.Net Pin
Steven J Jowett1-Feb-08 4:46
Steven J Jowett1-Feb-08 4:46 
Generalwindows scheduler in vb.net Pin
vidyashankar1-Feb-08 1:07
vidyashankar1-Feb-08 1:07 
GeneralRe: windows scheduler in vb.net Pin
Steven J Jowett1-Feb-08 1:51
Steven J Jowett1-Feb-08 1:51 
QuestionAttachDBFilename Pin
aransiola1-Feb-08 0:26
aransiola1-Feb-08 0:26 
AnswerAttachDBFilename Pin
aransiola1-Feb-08 0:24
aransiola1-Feb-08 0:24 
GeneralRe: AttachDBFilename Pin
Steven J Jowett1-Feb-08 1:49
Steven J Jowett1-Feb-08 1:49 
GeneralRead Line Number from Exceptions Pin
danasegaranea1-Feb-08 0:10
danasegaranea1-Feb-08 0:10 
GeneralRe: Read Line Number from Exceptions Pin
The ANZAC1-Feb-08 18:50
The ANZAC1-Feb-08 18:50 
GeneralRe: Read Line Number from Exceptions Pin
Luc Pattyn2-Feb-08 3:24
sitebuilderLuc Pattyn2-Feb-08 3:24 
Hi,

for Exception exc:
1. exc.Message does not contain a line number
2. exc.StackTrace contains a multi-line string with the stack trace, which may or may not
contain linenumbers (depends on where the problem is, the amount of debug info available)
3. may have an inner exception where the actual problem occured
4. exc.ToString() returns a string that contains all available information, including the
info on inner exceptions

If you want to extract a line number, you will need to perform string operations,
such as IndexOf() and SubString().

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.


GeneralException Handling Pin
divyesh143231-Jan-08 21:53
divyesh143231-Jan-08 21:53 
GeneralRe: Exception Handling Pin
Steven J Jowett31-Jan-08 22:19
Steven J Jowett31-Jan-08 22:19 
GeneralRe: Exception Handling Pin
Mark Churchill1-Feb-08 2:50
Mark Churchill1-Feb-08 2:50 
GeneralRe: Exception Handling Pin
Scott Dorman2-Feb-08 3:41
professionalScott Dorman2-Feb-08 3:41 
QuestionNavigating to previous page. Pin
Soonal31-Jan-08 21:28
Soonal31-Jan-08 21:28 
QuestionHow to hide the features of datagridview ?? Pin
VB 8.031-Jan-08 20:17
VB 8.031-Jan-08 20:17 
AnswerRe: How to hide the features of datagridview ?? Pin
Scubapro31-Jan-08 21:37
Scubapro31-Jan-08 21:37 
Generalneed to define a page range of richtextbox Pin
eyes200731-Jan-08 19:42
eyes200731-Jan-08 19:42 
GeneralDefault application for certain files. Pin
divyesh143231-Jan-08 18:42
divyesh143231-Jan-08 18:42 

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.