Click here to Skip to main content
15,891,423 members
Home / Discussions / C#
   

C#

 
GeneralRe: www.mycoolsoft.net | My first free software:MyShortcuts Pin
J$26-Mar-08 7:11
J$26-Mar-08 7:11 
GeneralRe: www.mycoolsoft.net | My first free software:MyShortcuts Pin
dshyryayev26-Mar-08 7:42
dshyryayev26-Mar-08 7:42 
GeneralRe: www.mycoolsoft.net | My first free software:MyShortcuts Pin
J$26-Mar-08 7:56
J$26-Mar-08 7:56 
GeneralRe: www.mycoolsoft.net | My first free software:MyShortcuts Pin
dshyryayev26-Mar-08 8:18
dshyryayev26-Mar-08 8:18 
GeneralSSIS Package Pin
kibromg26-Mar-08 5:30
kibromg26-Mar-08 5:30 
GeneralCross post - please ignore Pin
pmarfleet26-Mar-08 10:26
pmarfleet26-Mar-08 10:26 
QuestionHow to refresh data from one Form to another Pin
ziwez026-Mar-08 5:20
ziwez026-Mar-08 5:20 
AnswerRe: How to refresh data from one Form to another Pin
Gareth H26-Mar-08 5:37
Gareth H26-Mar-08 5:37 
ziwez0,

Doing:

form1 = new Form1();


Creates a new instance of the form which isnt the one being displayed. You need to reference the form that is already open. You can do this a variety of ways but the easiest and quickest would be to pass it as a param to Form2.

E.g:

Form2 OpenNewForm = new Form2(form1);


And then in the constructor of Form2:

public Form2(Form form1)
{
 InitializeComponent();
 _form1 = form1;
}


Then just use:

_form.RefreshScheduler();


If you want to find out about other ways, have a read of:

http://www.codeproject.com/KB/cs/pass_data_between_forms.aspx[^]

and:

http://www.codeproject.com/KB/dotnet/passingvaluesbetweenforms.aspx[^]

Regards,
Gareth.
AnswerRe: How to refresh data from one Form to another Pin
ziwez026-Mar-08 23:01
ziwez026-Mar-08 23:01 
QuestionGetting COM Exception in Word 2003 Component. Pin
rokrzone26-Mar-08 5:17
rokrzone26-Mar-08 5:17 
GeneralRe: Getting COM Exception in Word 2003 Component. Pin
Herman<T>.Instance26-Mar-08 5:33
Herman<T>.Instance26-Mar-08 5:33 
GeneralBlock File Pin
ellllllllie26-Mar-08 4:35
ellllllllie26-Mar-08 4:35 
GeneralRe: Block File Pin
Eduard Keilholz26-Mar-08 4:49
Eduard Keilholz26-Mar-08 4:49 
GeneralRe: Block File Pin
ellllllllie26-Mar-08 5:07
ellllllllie26-Mar-08 5:07 
GeneralRe: Block File Pin
Eduard Keilholz26-Mar-08 6:21
Eduard Keilholz26-Mar-08 6:21 
GeneralRe: Block File Pin
ellllllllie26-Mar-08 6:42
ellllllllie26-Mar-08 6:42 
GeneralRe: Block File Pin
Christian Graus26-Mar-08 10:02
protectorChristian Graus26-Mar-08 10:02 
GeneralRe: Block File Pin
Christian Graus26-Mar-08 10:01
protectorChristian Graus26-Mar-08 10:01 
GeneralRe: Block File Pin
Paul Conrad26-Mar-08 11:37
professionalPaul Conrad26-Mar-08 11:37 
GeneralRe: Block File Pin
Pete O'Hanlon26-Mar-08 11:53
mvePete O'Hanlon26-Mar-08 11:53 
GeneralSMS gateway Pin
NewToAspDotNet26-Mar-08 3:45
NewToAspDotNet26-Mar-08 3:45 
GeneralRe: SMS gateway Pin
led mike26-Mar-08 4:34
led mike26-Mar-08 4:34 
GeneralRe: SMS gateway Pin
NewToAspDotNet26-Mar-08 5:06
NewToAspDotNet26-Mar-08 5:06 
GeneralRe: SMS gateway Pin
led mike26-Mar-08 5:10
led mike26-Mar-08 5:10 
GeneralRe: SMS gateway Pin
NewToAspDotNet26-Mar-08 6:21
NewToAspDotNet26-Mar-08 6:21 

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.