Click here to Skip to main content
15,879,348 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to transfer data between two form Pin
Promance12-May-12 19:45
Promance12-May-12 19:45 
AnswerRe: How to transfer data between two form Pin
Sandeep Mewara12-May-12 20:11
mveSandeep Mewara12-May-12 20:11 
GeneralRe: How to transfer data between two form Pin
Promance13-May-12 15:04
Promance13-May-12 15:04 
AnswerRe: How to transfer data between two form Pin
DaveyM6913-May-12 6:05
professionalDaveyM6913-May-12 6:05 
GeneralRe: How to transfer data between two form Pin
Sandeep Mewara13-May-12 6:19
mveSandeep Mewara13-May-12 6:19 
GeneralRe: How to transfer data between two form Pin
Promance13-May-12 15:38
Promance13-May-12 15:38 
AnswerRe: How to transfer data between two form Pin
Bull City Rambler12-May-12 5:16
Bull City Rambler12-May-12 5:16 
GeneralRe: How to transfer data between two form Pin
OriginalGriff12-May-12 5:24
mveOriginalGriff12-May-12 5:24 
Oh, dear, oh dear.
You were doing so well, right up to the "You can store that data in a static variable in program".

What happens if there are two instances of the form, with data changing?
What happens if the data changes again?

Static is generally a bad idea, particularly when you are passing the information to another class. Either keep it local to your class instance, and let the handler pick it up from the sender parameter if it is just the latest info they need, or also create a custom EventArgs based class that you hand the changed data though with when you signal the event.
Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water

GeneralRe: How to transfer data between two form Pin
Bull City Rambler12-May-12 7:08
Bull City Rambler12-May-12 7:08 
AnswerRe: How to transfer data between two form Pin
BillWoodruff12-May-12 16:48
professionalBillWoodruff12-May-12 16:48 
GeneralRe: How to transfer data between two form Pin
Promance12-May-12 19:38
Promance12-May-12 19:38 
GeneralRe: How to transfer data between two form Pin
BillWoodruff15-May-12 16:14
professionalBillWoodruff15-May-12 16:14 
GeneralRe: How to transfer data between two form Pin
Promance19-May-12 3:47
Promance19-May-12 3:47 
AnswerRe: How to transfer data between two form Pin
Apocalypse Now13-May-12 15:00
Apocalypse Now13-May-12 15:00 
GeneralRe: How to transfer data between two form Pin
Dave Kreskowiak14-May-12 2:15
mveDave Kreskowiak14-May-12 2:15 
GeneralRe: How to transfer data between two form Pin
Pete O'Hanlon14-May-12 2:56
mvePete O'Hanlon14-May-12 2:56 
QuestionCreate an object with a string. Pin
coolfetus11-May-12 17:44
coolfetus11-May-12 17:44 
AnswerRe: Create an object with a string. Pin
Luc Pattyn11-May-12 18:23
sitebuilderLuc Pattyn11-May-12 18:23 
Questionc# tutorial Pin
Shubham Vijay11-May-12 8:41
Shubham Vijay11-May-12 8:41 
AnswerRe: c# tutorial Pin
Ravi Bhavnani11-May-12 9:04
professionalRavi Bhavnani11-May-12 9:04 
QuestionDisplaying XHTML elements with namespaces in .NET WebBrowser control Pin
Orjan Westin11-May-12 5:08
professionalOrjan Westin11-May-12 5:08 
QuestionParent child relation through the designer Pin
Ronny Portier11-May-12 4:20
Ronny Portier11-May-12 4:20 
AnswerRe: Parent child relation through the designer Pin
Dave Kreskowiak11-May-12 7:25
mveDave Kreskowiak11-May-12 7:25 
AnswerRe: Parent child relation through the designer Pin
BillWoodruff12-May-12 16:54
professionalBillWoodruff12-May-12 16:54 
QuestionPicturebox and Progressbar question Pin
Hagen McCarthy11-May-12 4:13
Hagen McCarthy11-May-12 4:13 

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.