Click here to Skip to main content
15,891,033 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to compile more then one project in same time ? Pin
Dave Kreskowiak4-Dec-07 14:34
mveDave Kreskowiak4-Dec-07 14:34 
QuestionListView: set "BackColor" in a SubItem Pin
Patricio Tapia4-Dec-07 10:51
Patricio Tapia4-Dec-07 10:51 
GeneralRe: ListView: set "BackColor" in a SubItem Pin
Insincere Dave4-Dec-07 11:32
Insincere Dave4-Dec-07 11:32 
QuestionListView: set "BackColor" in a SubItem Pin
Patricio Tapia4-Dec-07 10:50
Patricio Tapia4-Dec-07 10:50 
GeneralRe: ListView: set "BackColor" in a SubItem Pin
Skippums4-Dec-07 11:48
Skippums4-Dec-07 11:48 
GeneralRe: ListView: set "BackColor" in a SubItem Pin
Vasudevan Deepak Kumar4-Dec-07 18:04
Vasudevan Deepak Kumar4-Dec-07 18:04 
Generalhelp me!!! Pin
Shani Aulakh4-Dec-07 10:36
Shani Aulakh4-Dec-07 10:36 
Generalsimulating e-mail between project's forms Pin
Genius.Boy4-Dec-07 10:34
Genius.Boy4-Dec-07 10:34 
hello, everybody

my problem is the following:
I want to make a course project that would be applied in students payroll department in my university. this department has two units. each unit must have its own interface but the database would be shared for the two interfaces. so I made new project in MVS 2005 C# with 3 forms (LogIn Form,Form1,Form2). logIn form is the start form that link to the form1 or form2 based on username and password of the two units. and I want to make something like mail between the two forms.
my database has the following tables:
1. "Unit1Mail": to stores the mails of unit1 those unit2 sent.
2. "unit2Mail": to stores the mails of unit2 those unit1 sent.


so I put timers in form1 and form2 to check if there is new message.

so checking of new message will be done by comparing the old number of rows of the "Unit1Mail" or "Unit2Mail" tables and the current number of rows.

so in form1_load handler, I put this statement to get the old number of rows and stores it in global variable "i":
this.oleDbDataAdapter1.Fill(this.dataSet11,"Unit1Mail");<br />
i = this.dataSet11.Tables["Unit1Mail"].Rows.Count;


and in timer1_teck handler, I put these statements to compare the ole and current numbers:
this.dataSet11.Clear();<br />
this.oleDbDataAdapter1.Fill(this.dataSet11, "Unit1Mail");<br />
if (this.dataSet11.Tables["Unit1Mail"].Rows.Count > i) // 'i' is the old number calculated on form load<br />
   this.label1.Text = " You have a new message";


and also I do the same in Form2

and then, I sent a message from unit1 to unit2 . but I don't know why it didn't work correctly (the label1 didn't show the string that u have new message)

so, is there any problem with these statements???? Sigh | :sigh:
please I need help with this situation....
GeneralperformClick doesn't work Pin
gizmokaka4-Dec-07 10:24
gizmokaka4-Dec-07 10:24 
GeneralRe: performClick doesn't work Pin
Dave Kreskowiak4-Dec-07 10:46
mveDave Kreskowiak4-Dec-07 10:46 
GeneralRe: performClick doesn't work Pin
gizmokaka4-Dec-07 11:19
gizmokaka4-Dec-07 11:19 
General'The Binding Handle Is Invalid' error Pin
Lutosław4-Dec-07 9:41
Lutosław4-Dec-07 9:41 
GeneralApp_Code folder not found Pin
ss.mmm4-Dec-07 8:46
ss.mmm4-Dec-07 8:46 
GeneralRe: App_Code folder not found Pin
pmarfleet4-Dec-07 9:26
pmarfleet4-Dec-07 9:26 
QuestionHow to kill a process running on network machine using c# Pin
mevivekdua4-Dec-07 8:05
mevivekdua4-Dec-07 8:05 
GeneralRe: How to kill a process running on network machine using c# Pin
Dave Kreskowiak4-Dec-07 10:41
mveDave Kreskowiak4-Dec-07 10:41 
GeneralRe: How to kill a process running on network machine using c# Pin
mevivekdua4-Dec-07 22:33
mevivekdua4-Dec-07 22:33 
GeneralRe: How to kill a process running on network machine using c# Pin
mevivekdua5-Dec-07 8:38
mevivekdua5-Dec-07 8:38 
GeneralNon-standard UI Pin
Google Ninja4-Dec-07 7:54
Google Ninja4-Dec-07 7:54 
GeneralRe: Non-standard UI Pin
Anthony Mushrow4-Dec-07 8:49
professionalAnthony Mushrow4-Dec-07 8:49 
Questionhelp for newbe Pin
dxladner4-Dec-07 7:24
dxladner4-Dec-07 7:24 
GeneralRe: help for newbe Pin
Dave Kreskowiak4-Dec-07 7:45
mveDave Kreskowiak4-Dec-07 7:45 
GeneralRe: help for newbe Pin
dxladner4-Dec-07 7:55
dxladner4-Dec-07 7:55 
GeneralRe: help for newbe Pin
ChrisKo4-Dec-07 8:03
ChrisKo4-Dec-07 8:03 
QuestionHow to delete a pointer. Pin
daavena4-Dec-07 7:24
daavena4-Dec-07 7:24 

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.