Click here to Skip to main content
15,918,330 members
Home / Discussions / C#
   

C#

 
AnswerRe: Circle Generation Pin
Christian Graus15-Mar-07 16:50
protectorChristian Graus15-Mar-07 16:50 
GeneralRe: Circle Generation Pin
saran27715-Mar-07 17:04
saran27715-Mar-07 17:04 
QuestionGrid advice needed for both a WinForms and ASP.NET application Pin
alias4715-Mar-07 16:11
alias4715-Mar-07 16:11 
QuestionDyanmically creating templatefield Gridview c# Pin
SharonRao15-Mar-07 14:21
SharonRao15-Mar-07 14:21 
AnswerRe: Dyanmically creating templatefield Gridview c# Pin
SharonRao15-Mar-07 14:22
SharonRao15-Mar-07 14:22 
GeneralRe: Dyanmically creating templatefield Gridview c# Pin
Seishin#16-Mar-07 0:19
Seishin#16-Mar-07 0:19 
QuestionHow can another class access my main Form 's variables? Pin
dino209415-Mar-07 13:48
dino209415-Mar-07 13:48 
AnswerRe: How can another class access my main Form 's variables? Pin
Leslie Sanford15-Mar-07 14:41
Leslie Sanford15-Mar-07 14:41 
Make the helper class a private class of the main form. Have the main form create an instance of the helper class passing itself to the object as its "owner." The private class can access the form and do what it needs to do to update the controls. When it comes time for an update, the form can call an "Update" method on the child object.

However, an approach that's just as good in these situations is to keep update code in the main form class only factor it out into its own source code file. Use C#'s partial feature to seperate it out. In my opinion, this helps modularize the code without the need for an extra class. In some situations, you do actually want to factor functionality into a serparte class, but in other cases, like this one, in my opinion, partioning the code while keeping it in the same class is enough.
QuestionMemory efficient way to parse XML Pin
disruptor10815-Mar-07 11:56
disruptor10815-Mar-07 11:56 
AnswerRe: Memory efficient way to parse XML Pin
Ed.Poore19-Mar-07 13:08
Ed.Poore19-Mar-07 13:08 
Questionsending sms to mobile using webservices gfghfghgh Pin
reddyuii15-Mar-07 11:36
reddyuii15-Mar-07 11:36 
Questionsending sms to mobile using webservices Pin
reddyuii15-Mar-07 11:35
reddyuii15-Mar-07 11:35 
AnswerRe: sending sms to mobile using webservices Pin
Dave Kreskowiak15-Mar-07 13:20
mveDave Kreskowiak15-Mar-07 13:20 
QuestionOverride Pin
shamsteady15-Mar-07 11:11
shamsteady15-Mar-07 11:11 
AnswerRe: Override Pin
Guffa15-Mar-07 12:19
Guffa15-Mar-07 12:19 
AnswerRe: Override Pin
Christian Graus15-Mar-07 16:58
protectorChristian Graus15-Mar-07 16:58 
AnswerRe: Override Pin
PIEBALDconsult15-Mar-07 17:25
mvePIEBALDconsult15-Mar-07 17:25 
GeneralRe: Override Pin
shamsteady15-Mar-07 17:45
shamsteady15-Mar-07 17:45 
AnswerRe: Override Pin
mav.northwind16-Mar-07 13:30
mav.northwind16-Mar-07 13:30 
Questionwin Forms Pin
marwan_siala15-Mar-07 10:58
marwan_siala15-Mar-07 10:58 
AnswerRe: win Forms Pin
Stefan Troschuetz15-Mar-07 11:15
Stefan Troschuetz15-Mar-07 11:15 
GeneralRe: win Forms Pin
marwan_siala15-Mar-07 11:24
marwan_siala15-Mar-07 11:24 
GeneralRe: win Forms Pin
Stefan Troschuetz15-Mar-07 11:44
Stefan Troschuetz15-Mar-07 11:44 
AnswerRe: win Forms Pin
MoustafaS15-Mar-07 11:21
MoustafaS15-Mar-07 11:21 
GeneralRe: win Forms Pin
marwan_siala15-Mar-07 11:33
marwan_siala15-Mar-07 11:33 

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.