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

C#

 
AnswerRe: custom control Pin
Stefan Troschuetz19-Feb-07 22:12
Stefan Troschuetz19-Feb-07 22:12 
Questionfrm.Close() issue Pin
ArchaBhandare19-Feb-07 20:55
ArchaBhandare19-Feb-07 20:55 
AnswerRe: frm.Close() issue Pin
Martin#19-Feb-07 21:12
Martin#19-Feb-07 21:12 
GeneralRe: frm.Close() issue Pin
ArchaBhandare19-Feb-07 21:21
ArchaBhandare19-Feb-07 21:21 
Questiona query [modified] Pin
Nekshan19-Feb-07 20:40
Nekshan19-Feb-07 20:40 
AnswerRe: a query Pin
virendra patel19-Feb-07 21:00
virendra patel19-Feb-07 21:00 
GeneralRe: a query Pin
Nekshan19-Feb-07 21:55
Nekshan19-Feb-07 21:55 
AnswerRe: a query Pin
Guffa19-Feb-07 21:24
Guffa19-Feb-07 21:24 
I see three errors in your code.

1. You have declared the reference form1_ as a reference to a Form object, not a form1 object. Therefore you only have access to the members of the base class, none of the members of the inherited class.

2. You are creating a completely new instance of form1, that means that it's separate from the instance that already exists. This in turn means that the n member has not been set for that instance.

3. You are executing an insert query and expect it to return data. The result from an insert query is empty, so the ExecuteScalar method will return null. This will be converted to DateTime.MinValue by the Convert.ToDateTime call.

---
single minded; short sighted; long gone;

AnswerRe: a query Pin
Sandeep Akhare19-Feb-07 21:37
Sandeep Akhare19-Feb-07 21:37 
GeneralRe: a query Pin
Nekshan19-Feb-07 22:01
Nekshan19-Feb-07 22:01 
GeneralRe: a query Pin
Sandeep Akhare19-Feb-07 22:20
Sandeep Akhare19-Feb-07 22:20 
QuestionStopping a Thread Pin
nasambur19-Feb-07 20:22
nasambur19-Feb-07 20:22 
QuestionHow to send back value to the Main WinForm? [modified] Pin
Khoramdin19-Feb-07 20:07
Khoramdin19-Feb-07 20:07 
AnswerRe: How to send back value to the Main WinForm? Pin
Martin#19-Feb-07 20:49
Martin#19-Feb-07 20:49 
GeneralRe: How to send back value to the Main WinForm? Pin
Khoramdin20-Feb-07 9:42
Khoramdin20-Feb-07 9:42 
GeneralRe: How to send back value to the Main WinForm? Pin
Martin#20-Feb-07 20:37
Martin#20-Feb-07 20:37 
AnswerRe: How to send back value to the Main WinForm? Pin
Rhys Gravell19-Feb-07 20:53
professionalRhys Gravell19-Feb-07 20:53 
Questiona query [modified] Pin
Nekshan19-Feb-07 19:51
Nekshan19-Feb-07 19:51 
AnswerRe: a query Pin
virendra patel19-Feb-07 20:05
virendra patel19-Feb-07 20:05 
GeneralRe: a query [modified] Pin
Nekshan19-Feb-07 20:39
Nekshan19-Feb-07 20:39 
AnswerRe: a query Pin
Sandeep Akhare19-Feb-07 20:08
Sandeep Akhare19-Feb-07 20:08 
GeneralRe: a query Pin
Nekshan19-Feb-07 20:16
Nekshan19-Feb-07 20:16 
GeneralRe: a query Pin
Sandeep Akhare19-Feb-07 20:22
Sandeep Akhare19-Feb-07 20:22 
AnswerRe: a query Pin
NanaAM19-Feb-07 20:11
NanaAM19-Feb-07 20:11 
GeneralRe: a query Pin
Nekshan19-Feb-07 20:17
Nekshan19-Feb-07 20:17 

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.