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

C#

 
AnswerRe: Passing paramaters to Process Pin
stancrm3-Sep-09 22:16
stancrm3-Sep-09 22:16 
GeneralRe: Passing paramaters to Process Pin
cdpace3-Sep-09 22:23
cdpace3-Sep-09 22:23 
GeneralRe: Passing paramaters to Process Pin
stancrm3-Sep-09 22:33
stancrm3-Sep-09 22:33 
GeneralRe: Passing paramaters to Process Pin
Dave Kreskowiak4-Sep-09 2:25
mveDave Kreskowiak4-Sep-09 2:25 
GeneralRe: Passing paramaters to Process Pin
cdpace4-Sep-09 3:34
cdpace4-Sep-09 3:34 
QuestionHow to read image data in a byte array from one form to another form in C#? Pin
ali6853-Sep-09 21:12
ali6853-Sep-09 21:12 
AnswerRe: How to read image data in a byte array from one form to another form in C#? Pin
SeMartens3-Sep-09 21:34
SeMartens3-Sep-09 21:34 
AnswerRe: How to read image data in a byte array from one form to another form in C#? Pin
DaveyM693-Sep-09 22:08
professionalDaveyM693-Sep-09 22:08 
There are two different approaches fo passing data between objects depending on the relationship.

If the sending form instanciates the receiving form, then the receiving form should have a public property or method that is used to receive the data.

If the sending form was instanciated by the receiveng form then it should raise an event along with a custom event args instance (a class derived from System.EventArgs that holds the data to be passed).

If the forms are not so closely related, then a combination of these methods is often the best solution so the property/method or event is propogated up/down the class hierachy. If this gets too cumbersome, a separate 'manager' type class that is responsible for sending and receiving data between the objects it manages can also be a good solution.

Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
Why are you using VB6? Do you hate yourself? (Christian Graus)

GeneralRe: How to read image data in a byte array from one form to another form in C#? Pin
N a v a n e e t h3-Sep-09 22:19
N a v a n e e t h3-Sep-09 22:19 
QuestionHow to retrieve data from database Pin
lalit143-Sep-09 20:56
lalit143-Sep-09 20:56 
AnswerRe: How to retrieve data from database Pin
lalit143-Sep-09 20:57
lalit143-Sep-09 20:57 
GeneralRe: How to retrieve data from database Pin
stancrm3-Sep-09 21:08
stancrm3-Sep-09 21:08 
GeneralRe: How to retrieve data from database Pin
lalit143-Sep-09 21:40
lalit143-Sep-09 21:40 
AnswerRe: How to retrieve data from database Pin
CoderForEver3-Sep-09 21:33
CoderForEver3-Sep-09 21:33 
AnswerRe: How to retrieve data from database Pin
Blikkies3-Sep-09 21:57
professionalBlikkies3-Sep-09 21:57 
QuestionPrint Job Monitor Pin
nisharafic3-Sep-09 20:22
nisharafic3-Sep-09 20:22 
AnswerRe: Print Job Monitor Pin
Dave Kreskowiak4-Sep-09 2:23
mveDave Kreskowiak4-Sep-09 2:23 
QuestionHow to work on multiple forms in C# ? :S Pin
Saad Shuja3-Sep-09 17:57
Saad Shuja3-Sep-09 17:57 
AnswerRe: How to work on multiple forms in C# ? :S Pin
N a v a n e e t h3-Sep-09 20:28
N a v a n e e t h3-Sep-09 20:28 
GeneralRe: How to work on multiple forms in C# ? :S Pin
CoderForEver3-Sep-09 21:44
CoderForEver3-Sep-09 21:44 
GeneralRe: How to work on multiple forms in C# ? :S Pin
OriginalGriff3-Sep-09 22:10
mveOriginalGriff3-Sep-09 22:10 
GeneralRe: How to work on multiple forms in C# ? :S Pin
DaveyM693-Sep-09 22:13
professionalDaveyM693-Sep-09 22:13 
GeneralRe: How to work on multiple forms in C# ? :S Pin
N a v a n e e t h3-Sep-09 22:18
N a v a n e e t h3-Sep-09 22:18 
QuestionReports... Pin
JollyMansArt3-Sep-09 16:22
JollyMansArt3-Sep-09 16:22 
QuestionCheckBoxCell in DataGridView. Pin
Said Ali Jalali3-Sep-09 9:06
Said Ali Jalali3-Sep-09 9:06 

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.