Click here to Skip to main content
15,915,032 members
Home / Discussions / C#
   

C#

 
AnswerRe: Converting a string to currency format Pin
joon vh.28-Mar-07 5:17
joon vh.28-Mar-07 5:17 
QuestionUsing reference parameters when calling an exposed function from a DLL Pin
Dewald28-Mar-07 5:09
Dewald28-Mar-07 5:09 
AnswerRe: Using reference parameters when calling an exposed function from a DLL Pin
m@u28-Mar-07 5:29
m@u28-Mar-07 5:29 
GeneralRe: Using reference parameters when calling an exposed function from a DLL Pin
Dewald28-Mar-07 23:39
Dewald28-Mar-07 23:39 
QuestionGuidance Automation Toolkit or CodeSmith? Pin
wojti28-Mar-07 5:03
wojti28-Mar-07 5:03 
Questioncalling function in parent form from child form Pin
Lordveralix28-Mar-07 4:13
Lordveralix28-Mar-07 4:13 
AnswerRe: calling function in parent form from child form Pin
Pete O'Hanlon28-Mar-07 4:22
mvePete O'Hanlon28-Mar-07 4:22 
GeneralRe: calling function in parent form from child form Pin
Lordveralix28-Mar-07 4:51
Lordveralix28-Mar-07 4:51 
I'm still having the same problem with the exception however. When I run the code in the parent form (via a refresh button) it runs just fine and does what it's supposed to do. I am trying to run this code in the child form after it makes edits to the database but unfortunately it still gives me an exception and closes the parent form.

could it be that the parent form (of the child in question) itself is passed a variable from a (grand?)parent form (the main form) and passes that variable into a protected variable upon initialization?

Here is the form in question expanded:

public partial class SearchWindow : Form
{

EmployeeObject eo;
DataSet ds = new DataSet();

public SearchWindow(EmployeeObject o)
{
InitializeComponent();
eo = o;
//RefreshData();
ds = eo.GetSearch();
dataGridView1.DataSource = ds;
dataGridView1.DataMember = "Employees";

}

public void RefreshData()
{
// ds = eo.GetSearch();
//dataGridView1.DataSource = ds;
//dataGridView1.DataMember = "Employees";
}

... and so on.
GeneralRe: calling function in parent form from child form Pin
Pete O'Hanlon28-Mar-07 4:54
mvePete O'Hanlon28-Mar-07 4:54 
GeneralRe: calling function in parent form from child form Pin
Lordveralix28-Mar-07 5:13
Lordveralix28-Mar-07 5:13 
GeneralRe: calling function in parent form from child form Pin
Lordveralix28-Mar-07 7:11
Lordveralix28-Mar-07 7:11 
Question[Message Deleted] Pin
pashitech28-Mar-07 3:56
pashitech28-Mar-07 3:56 
AnswerRe: how to find help tools Pin
Judah Gabriel Himango28-Mar-07 4:06
sponsorJudah Gabriel Himango28-Mar-07 4:06 
AnswerRe: how to find help tools Pin
Judah Gabriel Himango28-Mar-07 4:55
sponsorJudah Gabriel Himango28-Mar-07 4:55 
GeneralRe: how to find help tools Pin
pashitech28-Mar-07 5:36
pashitech28-Mar-07 5:36 
QuestionREMOTE INSTALL Pin
waddah_com28-Mar-07 3:55
waddah_com28-Mar-07 3:55 
AnswerRe: REMOTE INSTALL Pin
Judah Gabriel Himango28-Mar-07 4:05
sponsorJudah Gabriel Himango28-Mar-07 4:05 
AnswerRe: REMOTE INSTALL Pin
Judah Gabriel Himango28-Mar-07 4:57
sponsorJudah Gabriel Himango28-Mar-07 4:57 
AnswerRe: REMOTE INSTALL Pin
Vasudevan Deepak Kumar28-Mar-07 7:52
Vasudevan Deepak Kumar28-Mar-07 7:52 
GeneralRe: REMOTE INSTALL Pin
waddah_com30-Mar-07 4:23
waddah_com30-Mar-07 4:23 
QuestionSelecting item in listbox after creating it Pin
sinosoidal28-Mar-07 3:54
sinosoidal28-Mar-07 3:54 
AnswerRe: Selecting item in listbox after creating it Pin
JoeSharp28-Mar-07 3:58
JoeSharp28-Mar-07 3:58 
GeneralRe: Selecting item in listbox after creating it Pin
sinosoidal28-Mar-07 4:02
sinosoidal28-Mar-07 4:02 
QuestionMap multiple events to a single handler Pin
swjam28-Mar-07 3:50
swjam28-Mar-07 3:50 
AnswerRe: Map multiple events to a single handler Pin
Pete O'Hanlon28-Mar-07 3:58
mvePete O'Hanlon28-Mar-07 3:58 

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.