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

C#

 
GeneralRe: CollectionEditor Pin
Heath Stewart9-Apr-04 4:01
protectorHeath Stewart9-Apr-04 4:01 
GeneralRe: CollectionEditor Pin
Heath Stewart9-Apr-04 4:06
protectorHeath Stewart9-Apr-04 4:06 
GeneralRe: CollectionEditor Pin
Jamie Nordmeyer9-Apr-04 5:12
Jamie Nordmeyer9-Apr-04 5:12 
QuestionDoes anyone did a project of ticket agency? Pin
Natnael8-Apr-04 10:41
Natnael8-Apr-04 10:41 
AnswerRe: Does anyone did a project of ticket agency? Pin
Colin Angus Mackay8-Apr-04 14:39
Colin Angus Mackay8-Apr-04 14:39 
GeneralListView Control not showing entire string text - Windows Forms Pin
Jasim Iqbal8-Apr-04 10:29
Jasim Iqbal8-Apr-04 10:29 
GeneralMouse moves when I change background on WinXP desktop Pin
Flack8-Apr-04 10:06
Flack8-Apr-04 10:06 
GeneralA problem with transactions.. Pin
benqazou8-Apr-04 9:21
benqazou8-Apr-04 9:21 
Hey,

I am having a problem with an application which uses ADO.NET..

Here is the situation:

My application is composed of 2 forms : Form1 and Form2,

1- Form1 contains the Main method, and creates a new Form2()..

Form1()<br />
{<br />
    ...<br />
    void SomeMethod(..)<br />
    {<br />
        Form2 f = new Form2(.., connectionObj, transactionObject..)<br />
        f.Show();<br />
    }<br />
    ...<br />
}

2- In Form2, I open the connection and start a TRANSACTION, like this:

...<br />
connectionObj.Open();<br />
transactionObj= conn.BeginTransaction();<br />
// Some insertions int the database..<br />
...<br />
// I hide the Form2<br />
this.Hide();


I don't commit the transaction in Form2, because I have to wait for another insertion request in Form1

3- When I move to Form1, I try to insert a new line in a certain table, with an SqlCommand, which I try to affect to the transaction, but it doesn't work, I get an error message.. It seems that the modifiation set to the transactionObj are not taken into consideration inside Form1, knowing that it was first declared in this form...


Any help please?!
GeneralRe: A problem with transactions.. Pin
Heath Stewart8-Apr-04 11:12
protectorHeath Stewart8-Apr-04 11:12 
GeneralRe: A problem with transactions.. Pin
Anonymous8-Apr-04 12:17
Anonymous8-Apr-04 12:17 
GeneralRe: A problem with transactions.. Pin
Heath Stewart9-Apr-04 3:14
protectorHeath Stewart9-Apr-04 3:14 
GeneralThread ID for current thread Pin
Grimolfr8-Apr-04 9:16
Grimolfr8-Apr-04 9:16 
GeneralRe: Thread ID for current thread Pin
jqd20018-Apr-04 10:30
jqd20018-Apr-04 10:30 
GeneralRe: Thread ID for current thread Pin
Grimolfr9-Apr-04 8:44
Grimolfr9-Apr-04 8:44 
GeneralControlDesigner on Windows Form Pin
Jamie Nordmeyer8-Apr-04 8:44
Jamie Nordmeyer8-Apr-04 8:44 
GeneralRe: ControlDesigner on Windows Form Pin
Jamie Nordmeyer8-Apr-04 9:56
Jamie Nordmeyer8-Apr-04 9:56 
GeneralMarshal an object [] to ptr Pin
joeyespo8-Apr-04 8:30
joeyespo8-Apr-04 8:30 
GeneralRe: Marshal an object [] to ptr Pin
Heath Stewart8-Apr-04 8:55
protectorHeath Stewart8-Apr-04 8:55 
GeneralUsing String Buffers of Win32 Libraries in C# Pin
yyf8-Apr-04 5:27
yyf8-Apr-04 5:27 
GeneralRe: Using String Buffers of Win32 Libraries in C# Pin
Heath Stewart8-Apr-04 5:51
protectorHeath Stewart8-Apr-04 5:51 
QuestionXML via Socket? Pin
rbarzallo8-Apr-04 4:40
rbarzallo8-Apr-04 4:40 
AnswerRe: XML via Socket? Pin
Colin Angus Mackay8-Apr-04 5:16
Colin Angus Mackay8-Apr-04 5:16 
AnswerRe: XML via Socket? Pin
Judah Gabriel Himango8-Apr-04 5:16
sponsorJudah Gabriel Himango8-Apr-04 5:16 
GeneralRe: XML via Socket? Pin
Heath Stewart8-Apr-04 5:48
protectorHeath Stewart8-Apr-04 5:48 
GeneralRe: XML via Socket? Pin
Judah Gabriel Himango8-Apr-04 6:25
sponsorJudah Gabriel Himango8-Apr-04 6: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.