Click here to Skip to main content
15,892,737 members
Home / Discussions / C#
   

C#

 
GeneralRe: Context Menu strip Pin
Benhar 200911-Oct-09 17:52
Benhar 200911-Oct-09 17:52 
GeneralRe: Context Menu strip Pin
Benhar 200911-Oct-09 17:53
Benhar 200911-Oct-09 17:53 
QuestionPop Up Menu Pin
hiremath7121-Feb-07 0:24
hiremath7121-Feb-07 0:24 
AnswerRe: Pop Up Menu Pin
stancrm21-Feb-07 0:44
stancrm21-Feb-07 0:44 
GeneralRe: Pop Up Menu Pin
hiremath7122-Feb-07 0:40
hiremath7122-Feb-07 0:40 
Questionhi!! [modified] Pin
Nekshan21-Feb-07 0:17
Nekshan21-Feb-07 0:17 
AnswerRe: hi!! Pin
virendra patel21-Feb-07 0:22
virendra patel21-Feb-07 0:22 
GeneralRe: hi!! Pin
Nekshan21-Feb-07 0:35
Nekshan21-Feb-07 0:35 
If u have time, till 2mrw eve. whenever u have time, just try it, i have done this:
This is in FORM1 :
public partial class detail_form : Form
{
public DateTime n;
....... ( ... this means other not related coding is done here.)
}
private void button1_Click(object sender, EventArgs e)
{
conn.Open();
string strQury = "";
strQury = "insert into dashboarddealerlogin (logoutdatetime) values '(" + DateTime.Now + ")'";
SqlCommand cm = new SqlCommand(strQury, conn);
n = Convert.ToDateTime(cm.ExecuteScalar());
conn.close();
}
In FORM2 :
public partial class login : Form
{
DateTime p;
.........
}
private void login1_Click(object sender, EventArgs e)
{
SqlCommand cmd = new SqlCommand();
conn.Open();
cmd.Connection = conn;
......
p = ((detail_form)log).n;
.........
}

I have to use this 'p' in FORM2 function :
public void funEntrylogin(int strlogid, int strdashid, string strname, string strpwd, DateTime logindate, DateTime logoutdate)
in place of 'logoutdate'.

This is my full code.
Plz chek n try it wen u have time,i'll wait.
Thanx Nekshan.
GeneralRe: hi!! Pin
virendra patel21-Feb-07 0:47
virendra patel21-Feb-07 0:47 
GeneralRe: hi!! Pin
Nekshan21-Feb-07 0:38
Nekshan21-Feb-07 0:38 
AnswerRe: hi!! Pin
Colin Angus Mackay21-Feb-07 0:32
Colin Angus Mackay21-Feb-07 0:32 
GeneralRe: hi!! Pin
Nekshan21-Feb-07 0:36
Nekshan21-Feb-07 0:36 
AnswerRe: hi!! Pin
Guffa21-Feb-07 1:40
Guffa21-Feb-07 1:40 
AnswerRe: hi!! Pin
virendra patel21-Feb-07 16:28
virendra patel21-Feb-07 16:28 
GeneralRe: hi!! Pin
Nekshan21-Feb-07 19:30
Nekshan21-Feb-07 19:30 
QuestionCalling a method from a form in another form [modified] Pin
motojojo20-Feb-07 23:56
motojojo20-Feb-07 23:56 
AnswerRe: Calling a method from a form in another form Pin
Colin Angus Mackay21-Feb-07 0:30
Colin Angus Mackay21-Feb-07 0:30 
AnswerRe: Calling a method from a form in another form Pin
Mark T.21-Feb-07 2:18
Mark T.21-Feb-07 2:18 
AnswerRe: Calling a method from a form in another form Pin
motojojo21-Feb-07 3:56
motojojo21-Feb-07 3:56 
QuestionAdd attribute to the http header of a request Pin
blackjack215020-Feb-07 23:55
blackjack215020-Feb-07 23:55 
AnswerRe: Add attribute to the http header of a request Pin
B.A21-Feb-07 1:30
B.A21-Feb-07 1:30 
Questionproblem in login page Pin
vijayashanthi20-Feb-07 23:43
vijayashanthi20-Feb-07 23:43 
AnswerRe: problem in login page Pin
Colin Angus Mackay21-Feb-07 0:47
Colin Angus Mackay21-Feb-07 0:47 
Questionhow can encrypt a film Pin
B.A20-Feb-07 23:39
B.A20-Feb-07 23:39 
AnswerRe: how can encrypt a film Pin
Mark T.21-Feb-07 2:24
Mark T.21-Feb-07 2: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.