Click here to Skip to main content
15,910,118 members
Home / Discussions / C#
   

C#

 
AnswerRe: Establishing Relationship with tables in SQL Server 2000 Pin
Colin Angus Mackay16-Jan-07 4:47
Colin Angus Mackay16-Jan-07 4:47 
QuestionCreating Report with Crystal Report based on SQL 2000 Pin
Banjo Ayorinde16-Jan-07 4:26
Banjo Ayorinde16-Jan-07 4:26 
Questionvisual style Pin
fmardani16-Jan-07 4:26
fmardani16-Jan-07 4:26 
QuestionBindingSource with Combo - how to clear the combo intiailly Pin
Umair Ahmad16-Jan-07 4:22
Umair Ahmad16-Jan-07 4:22 
QuestionAccess Remote Registry using WMI:StdRegProv Pin
Parrish16-Jan-07 4:14
Parrish16-Jan-07 4:14 
Questioncan't access object in finally-block [solved] Pin
Drum D.16-Jan-07 3:58
Drum D.16-Jan-07 3:58 
AnswerRe: can't access object in finally-block Pin
Pete O'Hanlon16-Jan-07 4:17
mvePete O'Hanlon16-Jan-07 4:17 
AnswerRe: can't access object in finally-block Pin
J4amieC16-Jan-07 5:09
J4amieC16-Jan-07 5:09 
You probably have to initialise sr before the try - plus use the method Pete suggested of checking for null.

// make sure this is pre-initialised<br />
StreamReader sr = null;<br />
<br />
try<br />
{<br />
  sr = new StreamReader(new FileStream(filename, FileMode.Open, FileAccess.Write));<br />
}<br />
catch(Exception ex)<br />
{<br />
  // do something with the exception<br />
}<br />
finally<br />
{<br />
  if(sr != null)<br />
    sr.Close();<br />
}



AnswerRe: can't access object in finally-block Pin
Drum D.16-Jan-07 7:33
Drum D.16-Jan-07 7:33 
QuestionScope_identity() doesn't work Pin
cruscotto16-Jan-07 3:45
cruscotto16-Jan-07 3:45 
AnswerRe: Scope_identity() doesn't work Pin
Dave Kreskowiak16-Jan-07 5:51
mveDave Kreskowiak16-Jan-07 5:51 
GeneralRe: Scope_identity() doesn't work Pin
cruscotto16-Jan-07 6:08
cruscotto16-Jan-07 6:08 
GeneralRe: Scope_identity() doesn't work Pin
Dave Kreskowiak16-Jan-07 8:06
mveDave Kreskowiak16-Jan-07 8:06 
Questionhelp!! replace string Pin
vanudu16-Jan-07 3:42
vanudu16-Jan-07 3:42 
AnswerRe: help!! replace string Pin
Pete O'Hanlon16-Jan-07 3:47
mvePete O'Hanlon16-Jan-07 3:47 
GeneralRe: help!! replace string Pin
vanudu16-Jan-07 3:48
vanudu16-Jan-07 3:48 
GeneralRe: help!! replace string Pin
Pete O'Hanlon16-Jan-07 3:56
mvePete O'Hanlon16-Jan-07 3:56 
GeneralRe: help!! replace string Pin
vanudu16-Jan-07 4:02
vanudu16-Jan-07 4:02 
GeneralRe: help!! replace string Pin
Pete O'Hanlon16-Jan-07 4:15
mvePete O'Hanlon16-Jan-07 4:15 
AnswerRe: help!! replace string Pin
Seishin#16-Jan-07 3:49
Seishin#16-Jan-07 3:49 
GeneralRe: help!! replace string Pin
vanudu16-Jan-07 3:58
vanudu16-Jan-07 3:58 
GeneralRe: help!! replace string Pin
Dave Kreskowiak16-Jan-07 5:53
mveDave Kreskowiak16-Jan-07 5:53 
AnswerRe: help!! replace string Pin
saud_a_k16-Jan-07 3:50
saud_a_k16-Jan-07 3:50 
QuestionSetUp and Deployment with all prerequisites Pin
saud_a_k16-Jan-07 3:29
saud_a_k16-Jan-07 3:29 
AnswerRe: SetUp and Deployment with all prerequisites Pin
Glen Harvy16-Jan-07 18:43
Glen Harvy16-Jan-07 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.