Click here to Skip to main content
15,792,379 members
Home / Discussions / C#
   

C#

 
GeneralRe: load a lot of Images to memory Pin
nryk14-Jun-09 1:16
nryk14-Jun-09 1:16 
GeneralRe: load a lot of Images to memory Pin
Guffa14-Jun-09 22:18
Guffa14-Jun-09 22:18 
QuestionDockPanel Suite Pin
Rafone13-Jun-09 7:24
Rafone13-Jun-09 7:24 
AnswerRe: DockPanel Suite Pin
Henry Minute13-Jun-09 7:34
Henry Minute13-Jun-09 7:34 
GeneralRe: DockPanel Suite Pin
Rafone13-Jun-09 8:18
Rafone13-Jun-09 8:18 
Questioncannot load data from database to textbox in Visual c# 2008 Pin
Adekolurejo13-Jun-09 6:52
Adekolurejo13-Jun-09 6:52 
AnswerRe: cannot load data from database to textbox in Visual c# 2008 Pin
Henry Minute13-Jun-09 7:38
Henry Minute13-Jun-09 7:38 
QuestionRe: cannot load data from database to textbox in Visual c# 2008 Pin
Adekolurejo13-Jun-09 8:02
Adekolurejo13-Jun-09 8:02 
Thank you Henry.
I have fix the the error and there is no error now but cannot still load the record from data.
Pleas check the current code again.

private void COMPANY_INFO_Load(object sender, EventArgs e)
{
btnAdd.Enabled = true;
btnCancel.Enabled = false;
btnUpdate.Enabled = true;
btnSave.Enabled = false;

SqlConnectionStringBuilder myBuilder = new SqlConnectionStringBuilder();
myBuilder.UserID = "sa";
myBuilder.Password = "admin123";
myBuilder.InitialCatalog = "Kay_Nylon_Db";
myBuilder.DataSource = "ADEMOLAPC";
myBuilder.ConnectTimeout = (30);

SqlConnection Conn = new SqlConnection(myBuilder.ConnectionString);
Conn.Open();
SqlDataReader myReader = null;
SqlCommand myCommand = new SqlCommand("select * from Company_Info", Conn);

myReader = myCommand.ExecuteReader();
while (myReader.Read())
{

Console.WriteLine(myReader["Company_Id"].ToString());
Console.WriteLine(myReader["Company_Name"].ToString());
Console.WriteLine(myReader["Company_Address_Line1"].ToString());
Console.WriteLine(myReader["Company_Address_Line2"].ToString());
Console.WriteLine(myReader["Fax"].ToString());
Console.WriteLine(myReader["Email"].ToString());
}

}
AnswerRe: cannot load data from database to textbox in Visual c# 2008 Pin
Dave Kreskowiak13-Jun-09 7:48
mveDave Kreskowiak13-Jun-09 7:48 
GeneralRe: cannot load data from database to textbox in Visual c# 2008 Pin
Adekolurejo13-Jun-09 8:23
Adekolurejo13-Jun-09 8:23 
AnswerRe: cannot load data from database to textbox in Visual c# 2008 Pin
alamree13-Jun-09 8:08
alamree13-Jun-09 8:08 
QuestionRe: cannot load data from database to textbox in Visual c# 2008 Pin
Adekolurejo13-Jun-09 8:25
Adekolurejo13-Jun-09 8:25 
Question[Message Deleted] Pin
hkjghkj113-Jun-09 6:46
hkjghkj113-Jun-09 6:46 
AnswerRe: Sound Delay Pin
Henry Minute13-Jun-09 7:40
Henry Minute13-Jun-09 7:40 
AnswerRe: Sound Delay Pin
Dave Kreskowiak13-Jun-09 7:45
mveDave Kreskowiak13-Jun-09 7:45 
AnswerRe: Sound Delay Pin
0x3c013-Jun-09 8:34
0x3c013-Jun-09 8:34 
Questiona question for OOP experts and Presentation/Business/DB Layer Pin
pierpaolo paparo13-Jun-09 5:14
pierpaolo paparo13-Jun-09 5:14 
AnswerRe: a question for OOP experts and Presentation/Business/DB Layer Pin
Colin Angus Mackay13-Jun-09 5:30
Colin Angus Mackay13-Jun-09 5:30 
GeneralRe: a question for OOP experts and Presentation/Business/DB Layer Pin
pierpaolo paparo14-Jun-09 1:27
pierpaolo paparo14-Jun-09 1:27 
QuestionGot an error -->An unhandled exception of type 'System.StackOverflowException' occurred in PROJECT pro.exe Pin
KIDYA13-Jun-09 3:34
KIDYA13-Jun-09 3:34 
AnswerRe: Got an error -->An unhandled exception of type 'System.StackOverflowException' occurred in PROJECT pro.exe Pin
Anthony Mushrow13-Jun-09 3:43
professionalAnthony Mushrow13-Jun-09 3:43 
GeneralRe: Got an error -->An unhandled exception of type 'System.StackOverflowException' occurred in PROJECT pro.exe Pin
Luc Pattyn13-Jun-09 4:00
sitebuilderLuc Pattyn13-Jun-09 4:00 
GeneralRe: Got an error -->An unhandled exception of type 'System.StackOverflowException' occurred in PROJECT pro.exe Pin
KIDYA13-Jun-09 19:17
KIDYA13-Jun-09 19:17 
AnswerRe: Got an error -->An unhandled exception of type 'System.StackOverflowException' occurred in PROJECT pro.exe Pin
Colin Angus Mackay13-Jun-09 4:35
Colin Angus Mackay13-Jun-09 4:35 
AnswerRe: Got an error -->An unhandled exception of type 'System.StackOverflowException' occurred in PROJECT pro.exe Pin
dybs13-Jun-09 6:11
dybs13-Jun-09 6:11 

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.