Click here to Skip to main content
16,010,553 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problem With Run App From Byte[] . Pin
hdv2123-Jun-06 12:22
hdv2123-Jun-06 12:22 
Questionddl Files Pin
Muhammad Chitrali3-Jun-06 8:04
Muhammad Chitrali3-Jun-06 8:04 
AnswerRe: ddl Files Pin
MoustafaS3-Jun-06 10:08
MoustafaS3-Jun-06 10:08 
AnswerRe: ddl Files Pin
Tamimi - Code3-Jun-06 19:07
Tamimi - Code3-Jun-06 19:07 
QuestionOne Icon file for all forms Pin
VenkataRamana.Gali3-Jun-06 7:21
VenkataRamana.Gali3-Jun-06 7:21 
AnswerRe: One Icon file for all forms Pin
Hesham Amin3-Jun-06 7:39
Hesham Amin3-Jun-06 7:39 
AnswerRe: One Icon file for all forms Pin
MoustafaS3-Jun-06 10:10
MoustafaS3-Jun-06 10:10 
QuestionDatabase inserts not saved [modified] Pin
FoxholeWilly3-Jun-06 7:14
FoxholeWilly3-Jun-06 7:14 
UPDATE: This works correctly when I run the BIN directory executable, but not when I run from the debugger.



I have a table adapter with insert method, for testing I use the following in a button click event:

this.classPhotoNamesTableAdapter.Insert(100, 100, 200, 300, 400, "PICNAME");
this.USNTPSDataSet.ClassPhotoNames.AcceptChanges();

If I click the button twice I get a primary key violation, so its valid, but the row is not inserted into the actual db file. Am I missing something?


I also tried this way with the same results:

SqlConnection dataconnection = new SqlConnection();
dataconnection.ConnectionString = global::....USNTPSConnectionString;
dataconnection.Open();
SqlCommand datacommand = new SqlCommand();
datacommand.Connection = dataconnection;
datacommand.CommandText = "INSERT INTO ClassPhotoNames (class_no, x_lower, y_lower, x_upper, y_upper, pic_name) values (100, 200, 300, 400, 500, 'NAMEFIELD')";
datacommand.ExecuteNonQuery();
dataconnection.Close();
datacommand.Dispose();
dataconnection.Dispose();



-- modified at 16:06 Saturday 3rd June, 2006
Questionhow to avoid creation of multiple instance of same form ? Pin
maaran3-Jun-06 3:57
maaran3-Jun-06 3:57 
AnswerRe: how to avoid creation of multiple instance of same form ? Pin
Stephan Samuel3-Jun-06 4:06
Stephan Samuel3-Jun-06 4:06 
QuestionConverting to pdf Pin
pirogramci3-Jun-06 2:08
pirogramci3-Jun-06 2:08 
AnswerRe: Converting to pdf Pin
Laubi3-Jun-06 13:01
Laubi3-Jun-06 13:01 
QuestionThreading Pin
maaran3-Jun-06 0:34
maaran3-Jun-06 0:34 
AnswerRe: Threading Pin
Guffa3-Jun-06 0:43
Guffa3-Jun-06 0:43 
GeneralRe: Threading Pin
maaran3-Jun-06 3:03
maaran3-Jun-06 3:03 
GeneralRe: Threading Pin
Stephan Samuel3-Jun-06 3:47
Stephan Samuel3-Jun-06 3:47 
AnswerRe: Threading Pin
Guffa3-Jun-06 4:11
Guffa3-Jun-06 4:11 
QuestionMultiple forms Pin
andrei_dalcu3-Jun-06 0:19
andrei_dalcu3-Jun-06 0:19 
AnswerRe: Multiple forms Pin
Guffa3-Jun-06 0:46
Guffa3-Jun-06 0:46 
GeneralRe: Multiple forms Pin
andrei_dalcu3-Jun-06 1:05
andrei_dalcu3-Jun-06 1:05 
AnswerRe: Multiple forms Pin
Guffa3-Jun-06 8:49
Guffa3-Jun-06 8:49 
AnswerRe: Multiple forms Pin
Tamimi - Code3-Jun-06 1:21
Tamimi - Code3-Jun-06 1:21 
Questionerror using reflecion [modified] Pin
ey_cat2-Jun-06 23:40
ey_cat2-Jun-06 23:40 
AnswerRe: error using reflecion [modified] Pin
Stephan Samuel3-Jun-06 3:50
Stephan Samuel3-Jun-06 3:50 
QuestionAXShockwaveFlashObjects Pin
Nafiseh Salmani2-Jun-06 23:25
Nafiseh Salmani2-Jun-06 23:25 

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.