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

C#

 
AnswerRe: Acces to file used by other application Pin
#realJSOP4-Jan-10 0:31
mve#realJSOP4-Jan-10 0:31 
Questionhow to Refresh the grid from Form2 Pin
Erdinc273-Jan-10 22:16
Erdinc273-Jan-10 22:16 
AnswerRe: how to Refresh the grid from Form2 Pin
sanforjackass3-Jan-10 22:58
sanforjackass3-Jan-10 22:58 
GeneralRe: how to Refresh the grid from Form2 Pin
Erdinc273-Jan-10 23:05
Erdinc273-Jan-10 23:05 
GeneralRe: how to Refresh the grid from Form2 Pin
sanforjackass3-Jan-10 23:23
sanforjackass3-Jan-10 23:23 
GeneralRe: how to Refresh the grid from Form2 Pin
Erdinc273-Jan-10 23:37
Erdinc273-Jan-10 23:37 
GeneralRe: how to Refresh the grid from Form2 Pin
sanforjackass3-Jan-10 23:47
sanforjackass3-Jan-10 23:47 
GeneralRe: how to Refresh the grid from Form2 Pin
OriginalGriff3-Jan-10 23:34
mveOriginalGriff3-Jan-10 23:34 
Not a good idea - it ties the design of form1 to the design of form2. I.e. if you replace the datagrid view in form1 with some other construct then it needs changes to form2 as well. This defeats one of the aims of an OOP language.

A better approach is to create an event in form2 which you subscribe to in form1. Then form2 internally needs to know nothing about who is using the data, it just signals "my data has changed" and all forms that subscribe to the event then update themselves appropriately.

All those who believe in psycho kinesis, raise my hand.

AnswerRe: how to Refresh the grid from Form2 Pin
Alex Manolescu3-Jan-10 23:52
Alex Manolescu3-Jan-10 23:52 
GeneralRe: how to Refresh the grid from Form2 Pin
Erdinc274-Jan-10 0:26
Erdinc274-Jan-10 0:26 
AnswerRe: how to Refresh the grid from Form2 Pin
Alex Manolescu4-Jan-10 9:46
Alex Manolescu4-Jan-10 9:46 
GeneralRe: how to Refresh the grid from Form2 Pin
Alex Manolescu5-Jan-10 23:58
Alex Manolescu5-Jan-10 23:58 
QuestionAn unhandled exception of type 'System.StackOverflowException' occurred in MyProject.web.DLL Pin
Qasim19843-Jan-10 22:09
professionalQasim19843-Jan-10 22:09 
AnswerRe: An unhandled exception of type 'System.StackOverflowException' occurred in MyProject.web.DLL Pin
SeMartens3-Jan-10 22:19
SeMartens3-Jan-10 22:19 
GeneralRe: An unhandled exception of type 'System.StackOverflowException' occurred in MyProject.web.DLL Pin
Qasim19843-Jan-10 22:22
professionalQasim19843-Jan-10 22:22 
GeneralRe: An unhandled exception of type 'System.StackOverflowException' occurred in MyProject.web.DLL Pin
SeMartens3-Jan-10 22:31
SeMartens3-Jan-10 22:31 
QuestionSQL and C# [modified] Pin
jojoba20103-Jan-10 22:04
jojoba20103-Jan-10 22:04 
AnswerRe: SQL and C# Pin
dan!sh 3-Jan-10 22:10
professional dan!sh 3-Jan-10 22:10 
GeneralRe: SQL and C# Pin
jojoba20103-Jan-10 22:13
jojoba20103-Jan-10 22:13 
GeneralRe: SQL and C# Pin
dan!sh 3-Jan-10 22:16
professional dan!sh 3-Jan-10 22:16 
QuestionRe: SQL and C# Pin
jojoba20103-Jan-10 22:19
jojoba20103-Jan-10 22:19 
AnswerRe: SQL and C# Pin
dan!sh 3-Jan-10 22:23
professional dan!sh 3-Jan-10 22:23 
QuestionRe: SQL and C# Pin
jojoba20103-Jan-10 22:25
jojoba20103-Jan-10 22:25 
AnswerRe: SQL and C# Pin
dan!sh 3-Jan-10 22:47
professional dan!sh 3-Jan-10 22:47 
QuestionRe: SQL and C# Pin
jojoba20103-Jan-10 22:57
jojoba20103-Jan-10 22:57 

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.