Click here to Skip to main content
15,915,734 members
Home / Discussions / C#
   

C#

 
AnswerRe: call Form problem!! Pin
DaveyM699-Jan-10 21:22
professionalDaveyM699-Jan-10 21:22 
AnswerRe: call Form problem!! Pin
OriginalGriff9-Jan-10 21:24
mveOriginalGriff9-Jan-10 21:24 
miss YY wrote:
Form1 frm=new Form1();
string from, to;
from = frm.dateTimePicker1.Value.ToString("yyyy-MM-dd");
to = frm.dateTimePicker2.Value.ToString("yyyy-MM-dd");


Since you haven't shown the form, the user hasn't had a chance to change the values. "new" does exactly that: creates a new instance of Form1. If you have an existing instance of Form1 that the user has allready selected the to and from dates on, you need to access that instead.

All those who believe in psycho kinesis, raise my hand.

AnswerRe: call Form problem!! Pin
#realJSOP10-Jan-10 2:45
professional#realJSOP10-Jan-10 2:45 
QuestionPlant Database Pin
sebogawa9-Jan-10 18:35
sebogawa9-Jan-10 18:35 
AnswerRe: Plant Database Pin
Roger Wright9-Jan-10 21:19
professionalRoger Wright9-Jan-10 21:19 
AnswerRe: Plant Database Pin
Mycroft Holmes9-Jan-10 22:57
professionalMycroft Holmes9-Jan-10 22:57 
AnswerRe: Plant Database Pin
PIEBALDconsult10-Jan-10 10:48
mvePIEBALDconsult10-Jan-10 10:48 
QuestionC# treeview [modified] <code>I my Self Solved it </code> Pin
jojoba20109-Jan-10 18:23
jojoba20109-Jan-10 18:23 
QuestionNeed a sample C# program using the DDay.Ical library that adds Attendees Pin
Stephan Onisick9-Jan-10 14:31
Stephan Onisick9-Jan-10 14:31 
AnswerRe: Need a sample C# program using the DDay.Ical library that adds Attendees Pin
Chuck O'Toole9-Jan-10 16:11
Chuck O'Toole9-Jan-10 16:11 
QuestionAbout Typed parameters Pin
ika29-Jan-10 10:43
ika29-Jan-10 10:43 
AnswerRe: About Typed parameters Pin
DaveyM699-Jan-10 10:51
professionalDaveyM699-Jan-10 10:51 
AnswerRe: About Typed parameters Pin
harold aptroot9-Jan-10 11:00
harold aptroot9-Jan-10 11:00 
AnswerRe: About Typed parameters Pin
DaveyM699-Jan-10 11:27
professionalDaveyM699-Jan-10 11:27 
GeneralRe: About Typed parameters Pin
ika29-Jan-10 12:21
ika29-Jan-10 12:21 
QuestionString.Format Pin
Muammar©9-Jan-10 8:45
Muammar©9-Jan-10 8:45 
AnswerRe: String.Format Pin
Dimitri Witkowski9-Jan-10 8:54
Dimitri Witkowski9-Jan-10 8:54 
AnswerRe: String.Format Pin
Ross Templeton9-Jan-10 15:32
Ross Templeton9-Jan-10 15:32 
GeneralRe: String.Format Pin
Muammar©10-Jan-10 0:20
Muammar©10-Jan-10 0:20 
AnswerRe: String.Format Pin
PIEBALDconsult10-Jan-10 10:55
mvePIEBALDconsult10-Jan-10 10:55 
GeneralRe: String.Format Pin
Muammar©10-Jan-10 23:05
Muammar©10-Jan-10 23:05 
QuestionCant get a Media player control on web application in VS Pin
lvq6849-Jan-10 8:37
lvq6849-Jan-10 8:37 
QuestionChange the size in dataGridView Pin
SajjadZare9-Jan-10 5:03
SajjadZare9-Jan-10 5:03 
AnswerRe: Change the size in dataGridView Pin
Luc Pattyn9-Jan-10 7:08
sitebuilderLuc Pattyn9-Jan-10 7:08 
QuestionC# Override CheckedListBox Pin
ikurtz9-Jan-10 4:58
ikurtz9-Jan-10 4:58 

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.