Click here to Skip to main content
15,886,518 members
Home / Discussions / C#
   

C#

 
QuestionWinforms Update form label from a class library Pin
Member 43365949-Jan-12 4:53
Member 43365949-Jan-12 4:53 
AnswerRe: Winforms Update form label from a class library Pin
BobJanova9-Jan-12 5:05
BobJanova9-Jan-12 5:05 
GeneralRe: Winforms Update form label from a class library Pin
Member 43365949-Jan-12 5:17
Member 43365949-Jan-12 5:17 
GeneralRe: Winforms Update form label from a class library Pin
BobJanova9-Jan-12 6:46
BobJanova9-Jan-12 6:46 
AnswerRe: Winforms Update form label from a class library Pin
RexGrammer9-Jan-12 8:11
RexGrammer9-Jan-12 8:11 
AnswerRe: Winforms Update form label from a class library Pin
Luc Pattyn9-Jan-12 8:15
sitebuilderLuc Pattyn9-Jan-12 8:15 
GeneralRe: Winforms Update form label from a class library Pin
DaveyM699-Jan-12 8:43
professionalDaveyM699-Jan-12 8:43 
AnswerRe: Winforms Update form label from a class library Pin
BillWoodruff10-Jan-12 6:17
professionalBillWoodruff10-Jan-12 6:17 
There are many ways to establish "dynamic connections" (access, ability to invoke method in, ability to set and get values) between different classes/objects. Injection, passing of references to instances of objects, Interfaces, inheritance, exposure of select values by use of Public Properties, etc.

Many of the responses here (all technically sound) assume, I think, that the UI here is a fixed design: I'm going to play "devil's advocate" and raise the question... since you told us in the OP that the UI definition is created by a method in the "Business Layer" reading from the DataBase:

"This creates the controls dynamically based on some fields in the database"."

Is it possible that the UI is, itself, not a fixed design, and that it may be different with each Application "run" ... because the DataBase fields that determine UI controls are being changed, or vary depending on other processes changing the DataBase.

If this (unlikely ?) hypothetical is false, why are you defining the UI in the DataBase ?

best, Bill

p.s. minor point: it would be a very strange scenario in which "create instance of a method" makes sense: I am pretty sure you mean that you access/invoke the method in the BL which then reads the DataBase and then one way, or another, creates the UI.
"It is the mark of an educated mind to be able to entertain a thought without accepting it." Aristotle

QuestionHow to access the control of a form from diffrent form? Pin
Paramu19739-Jan-12 4:08
Paramu19739-Jan-12 4:08 
AnswerRe: How to access the control of a form from diffrent form? Pin
Ravi Bhavnani9-Jan-12 4:15
professionalRavi Bhavnani9-Jan-12 4:15 
AnswerRe: How to access the control of a form from diffrent form? Pin
RexGrammer9-Jan-12 8:09
RexGrammer9-Jan-12 8:09 
AnswerRe: How to access the control of a form from diffrent form? Pin
DaveyM699-Jan-12 9:07
professionalDaveyM699-Jan-12 9:07 
AnswerRe: How to access the control of a form from diffrent form? Pin
BillWoodruff10-Jan-12 6:55
professionalBillWoodruff10-Jan-12 6:55 
GeneralRe: How to access the control of a form from diffrent form? Pin
Paramu197310-Jan-12 19:03
Paramu197310-Jan-12 19:03 
Questiondesktop sharing Pin
Member 38923438-Jan-12 21:24
Member 38923438-Jan-12 21:24 
AnswerRe: desktop sharing Pin
RexGrammer9-Jan-12 1:56
RexGrammer9-Jan-12 1:56 
AnswerRe: desktop sharing Pin
Ravi Bhavnani9-Jan-12 2:06
professionalRavi Bhavnani9-Jan-12 2:06 
QuestionReading an image from an array of data on disk Pin
Subterranean8-Jan-12 1:36
Subterranean8-Jan-12 1:36 
AnswerRe: Reading an image from an array of data on disk Pin
Luc Pattyn8-Jan-12 1:46
sitebuilderLuc Pattyn8-Jan-12 1:46 
GeneralRe: Reading an image from an array of data on disk Pin
harold aptroot8-Jan-12 4:06
harold aptroot8-Jan-12 4:06 
AnswerRe: Reading an image from an array of data on disk Pin
Luc Pattyn8-Jan-12 4:46
sitebuilderLuc Pattyn8-Jan-12 4:46 
GeneralRe: Reading an image from an array of data on disk Pin
harold aptroot8-Jan-12 4:55
harold aptroot8-Jan-12 4:55 
AnswerRe: Reading an image from an array of data on disk Pin
Luc Pattyn8-Jan-12 5:08
sitebuilderLuc Pattyn8-Jan-12 5:08 
GeneralRe: Reading an image from an array of data on disk Pin
harold aptroot8-Jan-12 5:22
harold aptroot8-Jan-12 5:22 
GeneralRe: Reading an image from an array of data on disk Pin
BobJanova9-Jan-12 0:59
BobJanova9-Jan-12 0:59 

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.