Click here to Skip to main content
15,913,722 members
Home / Discussions / C#
   

C#

 
GeneralRe: Application Variables Pin
Colin Angus Mackay26-Feb-05 13:32
Colin Angus Mackay26-Feb-05 13:32 
GeneralRe: Application Variables Pin
S. Senthil Kumar26-Feb-05 13:45
S. Senthil Kumar26-Feb-05 13:45 
GeneralCreating invisible services Pin
Esmo200026-Feb-05 12:52
Esmo200026-Feb-05 12:52 
GeneralRe: Creating invisible services Pin
Colin Angus Mackay26-Feb-05 13:35
Colin Angus Mackay26-Feb-05 13:35 
GeneralRe: Creating invisible services Pin
Radgar26-Feb-05 16:53
Radgar26-Feb-05 16:53 
GeneralRe: Creating invisible services Pin
Colin Angus Mackay26-Feb-05 17:00
Colin Angus Mackay26-Feb-05 17:00 
GeneralRe: Creating invisible services Pin
Radgar26-Feb-05 17:26
Radgar26-Feb-05 17:26 
GeneralRe: Creating invisible services Pin
Mazdak27-Feb-05 4:50
Mazdak27-Feb-05 4:50 
GeneralRe: Creating invisible services Pin
Colin Angus Mackay27-Feb-05 7:04
Colin Angus Mackay27-Feb-05 7:04 
GeneraltextBox Pin
sardonicus26-Feb-05 12:03
sardonicus26-Feb-05 12:03 
GeneralRe: textBox Pin
S. Senthil Kumar26-Feb-05 12:44
S. Senthil Kumar26-Feb-05 12:44 
GeneralRe: textBox Pin
sardonicus27-Feb-05 3:19
sardonicus27-Feb-05 3:19 
GeneralRe: textBox Pin
S. Senthil Kumar27-Feb-05 7:16
S. Senthil Kumar27-Feb-05 7:16 
GeneralNTDll's Compression Functions Pin
Stanimir_Stoyanov26-Feb-05 11:52
Stanimir_Stoyanov26-Feb-05 11:52 
GeneralRe: NTDll's Compression Functions Pin
Heath Stewart27-Feb-05 4:25
protectorHeath Stewart27-Feb-05 4:25 
Generalarrange dataGrid Columns Pin
Adnan Siddiqi26-Feb-05 10:53
Adnan Siddiqi26-Feb-05 10:53 
GeneralRe: arrange dataGrid Columns Pin
Heath Stewart27-Feb-05 4:30
protectorHeath Stewart27-Feb-05 4:30 
GeneralSystem.Xml.XmlException: The root element is missing. Pin
mantissaPuc26-Feb-05 9:53
mantissaPuc26-Feb-05 9:53 
GeneralRe: System.Xml.XmlException: The root element is missing. Pin
Radgar26-Feb-05 16:59
Radgar26-Feb-05 16:59 
GeneralProblem with my DB.. Pin
Tugbay Sahin26-Feb-05 9:14
Tugbay Sahin26-Feb-05 9:14 
GeneralRe: Problem with my DB.. Pin
Colin Angus Mackay26-Feb-05 9:20
Colin Angus Mackay26-Feb-05 9:20 
GeneralRe: Problem with my DB.. Pin
Tugbay Sahin26-Feb-05 9:27
Tugbay Sahin26-Feb-05 9:27 
GeneralRe: Problem with my DB.. Pin
Colin Angus Mackay26-Feb-05 9:41
Colin Angus Mackay26-Feb-05 9:41 
GeneralRe: Problem with my DB.. Pin
Tugbay Sahin26-Feb-05 9:43
Tugbay Sahin26-Feb-05 9:43 
GeneralRe: Problem with my DB.. Pin
Rob Graham26-Feb-05 9:41
Rob Graham26-Feb-05 9:41 
As Colin pointed out, myConnection is declared in the method scope of th form1 constructor, so is only available within the constructor. Move the declaration outside of the constructor (i.e) public class Form1:...
{
private SqlConnection myConnection = null; //declared at class level scope

form1()
{
myConnection = new SqlConnection(...); //instantiated in constructor
...
}
...
}

Anger is the most impotent of passions. It effects nothing it goes about, and hurts the one who is possessed by it more than the one against whom it is directed.
Carl Sandburg

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.