Click here to Skip to main content
15,922,155 members
Home / Discussions / C#
   

C#

 
AnswerRe: Threading/Events Pin
Luc Pattyn25-Sep-07 4:53
sitebuilderLuc Pattyn25-Sep-07 4:53 
QuestionHow make button F1 ( Help ) enable in my application ? Pin
Yanshof25-Sep-07 4:28
Yanshof25-Sep-07 4:28 
AnswerRe: How make button F1 ( Help ) enable in my application ? Pin
N a v a n e e t h25-Sep-07 4:39
N a v a n e e t h25-Sep-07 4:39 
GeneralRe: How make button F1 ( Help ) enable in my application ? Pin
Yanshof25-Sep-07 4:45
Yanshof25-Sep-07 4:45 
GeneralRe: How make button F1 ( Help ) enable in my application ? Pin
Kristian Sixhøj25-Sep-07 5:11
Kristian Sixhøj25-Sep-07 5:11 
AnswerRe: How make button F1 ( Help ) enable in my application ? [modified] Pin
Lutosław25-Sep-07 5:16
Lutosław25-Sep-07 5:16 
AnswerRe: How make button F1 ( Help ) enable in my application ? Pin
Matthew Cuba25-Sep-07 6:58
Matthew Cuba25-Sep-07 6:58 
QuestionMultiline label Pin
anderslundsgard25-Sep-07 4:19
anderslundsgard25-Sep-07 4:19 
AnswerRe: Multiline label Pin
stancrm25-Sep-07 4:27
stancrm25-Sep-07 4:27 
QuestionRetrieving time Pin
EMMADO25-Sep-07 2:50
EMMADO25-Sep-07 2:50 
AnswerRe: Retrieving time Pin
pmarfleet25-Sep-07 3:08
pmarfleet25-Sep-07 3:08 
QuestionHow to get all the Database Pin
Assaf8225-Sep-07 2:19
Assaf8225-Sep-07 2:19 
AnswerRe: How to get all the Database Pin
Eduard Keilholz25-Sep-07 2:25
Eduard Keilholz25-Sep-07 2:25 
GeneralRe: How to get all the Database Pin
Assaf8225-Sep-07 6:22
Assaf8225-Sep-07 6:22 
AnswerRe: How to get all the Database Pin
ESTAN26-Sep-07 1:05
ESTAN26-Sep-07 1:05 
I didn't try it, but this should be it:

private bool GetTables()<br />
{<br />
	try<br />
	{<br />
		SqlConnection dataConnection = new SqlConnection();<br />
		dataConnection.ConnectionString = ConnectionString;<br />
		dataConnection.Open();<br />
		SqlCommand dataCommand1;<br />
		SqlDataReader dataReader1;<br />
<br />
		dataCommand1 = new SqlCommand();<br />
		dataCommand1.Connection = dataConnection;<br />
		dataCommand1.CommandText = "SELECT Name FROM [Master].[dbo].[sysdatabases]";<br />
		dataReader1 = dataCommand1.ExecuteReader();<br />
<br />
		while (dataReader1.Read())<br />
		{<br />
			Console.WriteLine(dataReader1.GetValue(0));<br />
		}<br />
		dataReader1.Close();<br />
		dataCommand1.Dispose();<br />
		dataConnection.Close();<br />
<br />
		return true;<br />
	}<br />
	catch (Exception ex)<br />
	{<br />
		Console.WriteLine("Error - Tables " + ex.Message);<br />
		return false;<br />
	}<br />
}

QuestionMoving between folders and mailboxes in outlook using C# Pin
AlienArmy25-Sep-07 2:09
AlienArmy25-Sep-07 2:09 
QuestionException occuring while writing to Excel [modified] Pin
meeram39525-Sep-07 1:53
meeram39525-Sep-07 1:53 
Questionprogrammatically triggering a button from another form Pin
riedahoosain25-Sep-07 1:52
riedahoosain25-Sep-07 1:52 
AnswerRe: programmatically triggering a button from another form Pin
TJoe25-Sep-07 1:55
TJoe25-Sep-07 1:55 
GeneralRe: programmatically triggering a button from another form Pin
riedahoosain25-Sep-07 2:05
riedahoosain25-Sep-07 2:05 
GeneralRe: programmatically triggering a button from another form Pin
TJoe25-Sep-07 2:07
TJoe25-Sep-07 2:07 
AnswerRe: programmatically triggering a button from another form Pin
Martin#25-Sep-07 1:57
Martin#25-Sep-07 1:57 
QuestionHow to convert code from VS 2003 to VS 2005 Pin
ratjung25-Sep-07 1:33
ratjung25-Sep-07 1:33 
AnswerRe: How to convert code from VS 2003 to VS 2005 Pin
half-life25-Sep-07 1:52
half-life25-Sep-07 1:52 
GeneralRe: How to convert code from VS 2003 to VS 2005 Pin
ratjung25-Sep-07 18:00
ratjung25-Sep-07 18:00 

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.