Click here to Skip to main content
15,351,471 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: "Controls created on one thread cannot be... & COM Pin
SJ_Phoenix15-Apr-04 9:38
MemberSJ_Phoenix15-Apr-04 9:38 
QuestionImpossible to inherit from HttpWebRequest? Pin
Steven Campbell13-Apr-04 8:27
MemberSteven Campbell13-Apr-04 8:27 
AnswerRe: Impossible to inherit from HttpWebRequest? Pin
Mike Dimmick13-Apr-04 9:26
MemberMike Dimmick13-Apr-04 9:26 
GeneralRe: Impossible to inherit from HttpWebRequest? Pin
Steven Campbell13-Apr-04 9:59
MemberSteven Campbell13-Apr-04 9:59 
GeneralRe: Impossible to inherit from HttpWebRequest? Pin
Abel Braaksma11-Nov-11 2:20
MemberAbel Braaksma11-Nov-11 2:20 
GeneralProblem with modifying a databse after RDA Pull method Pin
JustChiLLin13-Apr-04 2:28
MemberJustChiLLin13-Apr-04 2:28 
GeneralRe: Problem with modifying a databse after RDA Pull method Pin
Mike Dimmick13-Apr-04 4:12
MemberMike Dimmick13-Apr-04 4:12 
GeneralRe: Problem with modifying a databse after RDA Pull method Pin
JustChiLLin13-Apr-04 19:24
MemberJustChiLLin13-Apr-04 19:24 
Thanks dude!

You are right, it was a problem with the EmployeeID being a unique index, and it being a primary key. So, i fixed it up and also did some stuff and came up with this:

Globals.conn = null;
Globals.conn = new SqlCeConnection ("Data Source = wta.sdf");
Globals.conn.Open();

//The connection is now open and now we're going to view what we've
//pulled out from the database
Globals.cmd = Globals.conn.CreateCommand();

//This would select the LastName segment of Northwind
Globals.cmd.CommandText = "SELECT * FROM Employees";

//This would then be executed and displayed on the MessageBox
Globals.rdr = Globals.cmd.ExecuteReader();
Globals.rdr.Read();
MessageBox.Show("ID Number: " + Globals.rdr.GetInt32(0).ToString() + " " + "Last Name:" + Globals.rdr.GetString(3));

Globals.cmd.CommandText = "UPDATE Employees SET LastName = 'Smith' WHERE EmployeeID = 1";

Globals.cmd.ExecuteNonQuery();

This worked perfectly, because i'm not actually changing the EmployeeID, i'm just updating the columns in reference to the primary id. Thanks dude!
GeneralRedirection of Debug/Trace Messages Pin
JM_FL12-Apr-04 22:30
MemberJM_FL12-Apr-04 22:30 
GeneralRe: Redirection of Debug/Trace Messages Pin
Mike Dimmick13-Apr-04 4:16
MemberMike Dimmick13-Apr-04 4:16 
GeneralRe: Redirection of Debug/Trace Messages Pin
Steven Campbell13-Apr-04 10:11
MemberSteven Campbell13-Apr-04 10:11 
GeneralRe: Redirection of Debug/Trace Messages Pin
JM_FL14-Apr-04 2:31
MemberJM_FL14-Apr-04 2:31 
GeneraliButton and .NET Pin
poopa10-Apr-04 8:21
Memberpoopa10-Apr-04 8:21 
GeneralCreating Round Buttons Pin
Kilhoffer9-Apr-04 13:53
MemberKilhoffer9-Apr-04 13:53 
GeneralRe: Creating Round Buttons Pin
SJ_Phoenix15-Apr-04 9:46
MemberSJ_Phoenix15-Apr-04 9:46 
GeneralMicrosoft.DirectX.DirectSound recording levels Pin
bobbiek9-Apr-04 3:30
Memberbobbiek9-Apr-04 3:30 
GeneralSerialize PrinterSettings Pin
Dimitris Iliopoulos9-Apr-04 3:14
MemberDimitris Iliopoulos9-Apr-04 3:14 
GeneralRe: Serialize PrinterSettings Pin
Mazdak9-Apr-04 3:22
MemberMazdak9-Apr-04 3:22 
Generaldynamic types cast Pin
iZakaroN9-Apr-04 2:53
MemberiZakaroN9-Apr-04 2:53 
GeneralRe: dynamic types cast Pin
Roman Rodov13-Apr-04 15:12
MemberRoman Rodov13-Apr-04 15:12 
GeneralRe: dynamic types cast Pin
iZakaroN14-Apr-04 5:08
MemberiZakaroN14-Apr-04 5:08 
GeneralRe: dynamic types cast Pin
Roman Rodov14-Apr-04 15:52
MemberRoman Rodov14-Apr-04 15:52 
GeneralDundas Components Pin
mmikey78-Apr-04 13:21
Membermmikey78-Apr-04 13:21 
GeneralRe: Dundas Components Pin
Colin Angus Mackay8-Apr-04 14:03
MemberColin Angus Mackay8-Apr-04 14:03 
GeneralRe: Dundas Components Pin
mmikey78-Apr-04 14:11
Membermmikey78-Apr-04 14: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.