Click here to Skip to main content
15,916,318 members
Home / Discussions / C#
   

C#

 
QuestionC#.Net SetUp Pin
Mojgan2518-Feb-07 23:21
Mojgan2518-Feb-07 23:21 
AnswerRe: C#.Net SetUp Pin
Christian Graus18-Feb-07 23:55
protectorChristian Graus18-Feb-07 23:55 
Questiona query. [modified] Pin
Nekshan18-Feb-07 23:15
Nekshan18-Feb-07 23:15 
QuestionRe: a query. Pin
Pratik Vasant Shah18-Feb-07 23:18
Pratik Vasant Shah18-Feb-07 23:18 
AnswerRe: a query. Pin
virendra patel18-Feb-07 23:20
virendra patel18-Feb-07 23:20 
GeneralRe: a query. Pin
Nekshan18-Feb-07 23:27
Nekshan18-Feb-07 23:27 
GeneralRe: a query. Pin
virendra patel18-Feb-07 23:37
virendra patel18-Feb-07 23:37 
QuestionRe: a query. Pin
Nekshan18-Feb-07 23:57
Nekshan18-Feb-07 23:57 
insert into dashboarddealerlogin (logoutdatetime) values (GETDATE())
It is giving error : Cannot insert value null in logoutdatetime.
Anywaz, let it b.
Just c this :

private void logout_Click(object sender, EventArgs e)
{
conn.Open();
string strQury = "";
strQury = "insert into dashboarddealerlogin (logoutdatetime) values '(" + DateTime.Now + ")'";
SqlCommand cm = new SqlCommand(strQury, conn);
int n = Convert.ToInt32(cm.ExecuteScalar());
}

I have written this code in form1.cs n i have to write it here only.
Now i want to use this 'int n' in a function in form2.cs
funEntrylogin(m, i, tb_id.Text, tb_pswd.Text, DateTime.Now,n);
but here it is giving error on 'n'.
how can i do this?
thanx.
nekshan.
AnswerRe: a query. Pin
virendra patel19-Feb-07 0:06
virendra patel19-Feb-07 0:06 
GeneralRe: a query. Pin
virendra patel18-Feb-07 23:40
virendra patel18-Feb-07 23:40 
AnswerRe: a query. Pin
Guffa18-Feb-07 23:39
Guffa18-Feb-07 23:39 
AnswerRe: a query. Pin
Colin Angus Mackay18-Feb-07 23:40
Colin Angus Mackay18-Feb-07 23:40 
QuestionPower Saving Pin
usermans18-Feb-07 23:14
usermans18-Feb-07 23:14 
AnswerRe: Power Saving Pin
Niiiissssshhhhhuuuuu19-Feb-07 0:05
Niiiissssshhhhhuuuuu19-Feb-07 0:05 
GeneralRe: Power Saving Pin
usermans19-Feb-07 0:47
usermans19-Feb-07 0:47 
QuestionC# programming: Workspace app & reflection Pin
motojojo18-Feb-07 22:29
motojojo18-Feb-07 22:29 
QuestionDesktop application Pin
Muhammad Nauman Yousuf18-Feb-07 21:52
Muhammad Nauman Yousuf18-Feb-07 21:52 
AnswerRe: Desktop application Pin
Ravi Bhavnani19-Feb-07 7:11
professionalRavi Bhavnani19-Feb-07 7:11 
QuestionC# Graphics Pin
Monk11118-Feb-07 21:45
Monk11118-Feb-07 21:45 
AnswerRe: C# Graphics Pin
Christian Graus18-Feb-07 21:56
protectorChristian Graus18-Feb-07 21:56 
GeneralRe: C# Graphics Pin
Monk11118-Feb-07 22:04
Monk11118-Feb-07 22:04 
GeneralRe: C# Graphics Pin
Christian Graus18-Feb-07 23:54
protectorChristian Graus18-Feb-07 23:54 
AnswerRe: C# Graphics Pin
Luc Pattyn19-Feb-07 2:11
sitebuilderLuc Pattyn19-Feb-07 2:11 
QuestionCombo boxes in datagrids Pin
devlpa_powelly18-Feb-07 21:45
devlpa_powelly18-Feb-07 21:45 
QuestionSomething better than CASE Pin
Glen Harvy18-Feb-07 21:39
Glen Harvy18-Feb-07 21:39 

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.