Click here to Skip to main content
15,894,539 members
Home / Discussions / C#
   

C#

 
AnswerRe: Print everything in a panel only - Windows Form C#-programming Pin
dan!sh 10-Jan-10 3:37
professional dan!sh 10-Jan-10 3:37 
QuestionCrystal Report Object For install Shield. Pin
Said Ali Jalali10-Jan-10 1:07
Said Ali Jalali10-Jan-10 1:07 
AnswerRe: Crystal Report Object For install Shield. Pin
dan!sh 10-Jan-10 3:12
professional dan!sh 10-Jan-10 3:12 
GeneralRe: Crystal Report Object For install Shield. Pin
Said Ali Jalali10-Jan-10 3:26
Said Ali Jalali10-Jan-10 3:26 
GeneralRe: Crystal Report Object For install Shield. Pin
dan!sh 10-Jan-10 3:39
professional dan!sh 10-Jan-10 3:39 
Questioncall Form problem!! Pin
miss YY9-Jan-10 20:31
miss YY9-Jan-10 20:31 
AnswerRe: call Form problem!! Pin
Roger Wright9-Jan-10 21:14
professionalRoger Wright9-Jan-10 21:14 
AnswerRe: call Form problem!! Pin
DaveyM699-Jan-10 21:22
professionalDaveyM699-Jan-10 21:22 
miss YY wrote:
set datetimepicker1 and datetimepicker2 modifiers to public on form1


Not necessary and not a good idea

miss YY wrote:
on form2 like this
Form1 frm = new Form1();


This is the clue! This is a new instance of Form1 (i.e. not the same one as you are viewing) so the DateTimePickers are not the same ones and therefore have different values.

Where is form2 created - in Form1? If so, keep a reference in Form1 to the new Form2. In Form2, create properties or methods to receive the DateTimes, and set them from Form1 when they change using the reference you already have.

Dave

BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Why are you using VB6? Do you hate yourself? (Christian Graus)

AnswerRe: call Form problem!! Pin
OriginalGriff9-Jan-10 21:24
mveOriginalGriff9-Jan-10 21:24 
AnswerRe: call Form problem!! Pin
#realJSOP10-Jan-10 2:45
mve#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 

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.