Click here to Skip to main content
15,902,939 members
Home / Discussions / C#
   

C#

 
GeneralRe: dataContext.storedProcedure(params).Skip(4).Take(3) - where is it executed Pin
led mike26-Mar-08 10:10
led mike26-Mar-08 10:10 
GeneralRe: dataContext.storedProcedure(params).Skip(4).Take(3) - where is it executed Pin
Seishin#26-Mar-08 10:19
Seishin#26-Mar-08 10:19 
GeneralRe: dataContext.storedProcedure(params).Skip(4).Take(3) - where is it executed Pin
Not Active26-Mar-08 10:50
mentorNot Active26-Mar-08 10:50 
GeneralRe: dataContext.storedProcedure(params).Skip(4).Take(3) - where is it executed Pin
Seishin#26-Mar-08 10:51
Seishin#26-Mar-08 10:51 
GeneralForm position relative to form control Pin
dannytsang26-Mar-08 9:40
dannytsang26-Mar-08 9:40 
GeneralRe: Form position relative to form control Pin
Gareth H26-Mar-08 10:04
Gareth H26-Mar-08 10:04 
GeneralRe: Form position relative to form control Pin
dannytsang27-Mar-08 13:37
dannytsang27-Mar-08 13:37 
Questionc# code request Pin
jadtls26-Mar-08 9:27
jadtls26-Mar-08 9:27 
GeneralRe: c# code request Pin
Giorgi Dalakishvili26-Mar-08 9:45
mentorGiorgi Dalakishvili26-Mar-08 9:45 
QuestionHow to create a progressbar for a web browser control???? Pin
Aditya Baraya26-Mar-08 7:41
Aditya Baraya26-Mar-08 7:41 
AnswerRe: How to create a progressbar for a web browser control???? Pin
Gareth H26-Mar-08 8:53
Gareth H26-Mar-08 8:53 
QuestionHow to extract Ethernet type? [modified] Pin
merh26-Mar-08 6:46
merh26-Mar-08 6:46 
GeneralMessage Closed Pin
26-Mar-08 6:33
dshyryayev26-Mar-08 6:33 
GeneralRe: www.mycoolsoft.net | My first free software:MyShortcuts Pin
Gareth H26-Mar-08 6:52
Gareth H26-Mar-08 6:52 
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 
Ok, this is doing my head in now, how can it be so hard...?

Right I have 2 Forms (Form1 and Form2)
All I want to do is refresh data on Form1 from Form2

Form1 displays some data from a db.
Form1 also has a button that opens Form2
----Form1----------------------------------
private void hplNewAppointment_Click(object sender, EventArgs e)
{
Form2 OpenNewForm = new Form2();
OpenNewForm.ShowInTaskbar = false;
OpenNewForm.TopMost = true;
OpenNewForm.Show();
}
public void RefreshScheduler()
{
this.tblScheduleTableAdapter.ClearBeforeFill.Equals(true);
this.tblScheduleTableAdapter.Fill(this.dS_tblSchedule.tblSchedule);
}
---------------------------------------------
All good so far, Form2(OpenNewForm) allows me to enter a new record into the db, when I close Form2(OpenNewForm) I want to refresh the data on Form1

------Form2(OpenNewForm)------------------
public OpenNewForm()
{
InitializeComponent();
form1 = new Form1();
}
private void btnClose_Click(object sender, EventArgs e)
{
form1.RefreshScheduler();
this.Close();
}
--------------------------------------------
Ok so I can access the method on Form1 but it does not refresh the data...
How can I fix this????
thanks
AnswerRe: How to refresh data from one Form to another Pin
Gareth H26-Mar-08 5:37
Gareth H26-Mar-08 5:37 
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 

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.