Click here to Skip to main content
15,885,546 members
Home / Discussions / C#
   

C#

 
QuestionTargeting a Framework version? Pin
bosfan7-Sep-05 1:40
bosfan7-Sep-05 1:40 
Questionhours minutes seconds Pin
PHDENG817-Sep-05 1:27
PHDENG817-Sep-05 1:27 
AnswerRe: hours minutes seconds Pin
John Fisher7-Sep-05 7:06
John Fisher7-Sep-05 7:06 
AnswerRe: hours minutes seconds Pin
machocr7-Sep-05 11:43
machocr7-Sep-05 11:43 
QuestionHow to install a snapin for MMC 2.0?? Pin
Socket_Layer7-Sep-05 0:34
Socket_Layer7-Sep-05 0:34 
QuestionCan FolderBrowserDialog be extended? Pin
Socket_Layer7-Sep-05 0:29
Socket_Layer7-Sep-05 0:29 
QuestionFinding Excpetion Line Number Pin
Tiger4567-Sep-05 0:27
Tiger4567-Sep-05 0:27 
AnswerRe: Finding Excpetion Line Number Pin
Mohamad Al Husseiny7-Sep-05 7:03
Mohamad Al Husseiny7-Sep-05 7:03 
You can get this information from Exception.ToString()if you look to the end of the string you will see somthing like form1.cs:line 524 so to get line number you can write code in your exception handling code somthig like
catch(Exception ex)
{
	string strExc=ex.ToString();
	int pos=strExc.IndexOf(":line",0);
	if(pos != -1)
	{
		MessageBox.Show(strExc.Substring(pos+5,strExc.Length-(pos+5)));
	}
}

Note: in relase mode this inoformation will not generated to enable it in your project Build configration check Generate debugging information look at Printing Line Number with an exception in Release Mode[^] for more informaton

MCAD

-- modified at 13:04 Wednesday 7th September, 2005
QuestionCreateprocewwwithlogonw & .NET 2.0 Pin
Ruchirdhar6-Sep-05 23:25
Ruchirdhar6-Sep-05 23:25 
Questionset the input for a text box from addition class. Pin
cue_ball6-Sep-05 22:32
cue_ball6-Sep-05 22:32 
AnswerRe: set the input for a text box from addition class. Pin
Ashok Dhamija6-Sep-05 23:11
Ashok Dhamija6-Sep-05 23:11 
GeneralRe: set the input for a text box from addition class. Pin
cue_ball6-Sep-05 23:54
cue_ball6-Sep-05 23:54 
GeneralRe: set the input for a text box from addition class. Pin
Ashok Dhamija7-Sep-05 0:11
Ashok Dhamija7-Sep-05 0:11 
GeneralRe: set the input for a text box from addition class. Pin
cue_ball7-Sep-05 15:10
cue_ball7-Sep-05 15:10 
QuestionGet data from Com Port Pin
quocbao6-Sep-05 20:36
quocbao6-Sep-05 20:36 
AnswerRe: Get data from Com Port Pin
Russell Jones6-Sep-05 23:02
Russell Jones6-Sep-05 23:02 
QuestionUpdating data in Form A from form B? Pin
Johan Glysing6-Sep-05 20:17
Johan Glysing6-Sep-05 20:17 
AnswerRe: Updating data in Form A from form B? Pin
Gavin Jeffrey6-Sep-05 22:21
Gavin Jeffrey6-Sep-05 22:21 
GeneralRe: Updating data in Form A from form B? Pin
Johan Glysing6-Sep-05 22:40
Johan Glysing6-Sep-05 22:40 
GeneralRe: Updating data in Form A from form B? Pin
Ashok Dhamija6-Sep-05 23:26
Ashok Dhamija6-Sep-05 23:26 
QuestionDataReader Issue Pin
Expert Coming6-Sep-05 18:42
Expert Coming6-Sep-05 18:42 
AnswerRe: DataReader Issue Pin
Gavin Jeffrey6-Sep-05 22:34
Gavin Jeffrey6-Sep-05 22:34 
AnswerRe: DataReader Issue Pin
Guffa6-Sep-05 23:49
Guffa6-Sep-05 23:49 
QuestionTry... Catch.... help Pin
sonicsqwirl6-Sep-05 18:28
sonicsqwirl6-Sep-05 18:28 
AnswerRe: Try... Catch.... help Pin
Expert Coming6-Sep-05 18:43
Expert Coming6-Sep-05 18:43 

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.