We can isolate out the DB stuff.
Printable View
We can isolate out the DB stuff.
You're amazing.
Thanks again. Also, please excuse the probably dirty code. I'm just starting this so I'm sure there are plenty of things I'm doing wrong...
I'm a BizTalk developer... :)
Thanks,
Jerad
P.S- Actually I can't seem to upload it. My project is 1 MB zipped and the max I can post is 500kb... Can I e-mail it to you??
You can upload to a place like megaupload for free and then just provide the link.
Alright, awesome.
Here's the link.
http://www.megaupload.com/?d=WWUUKZW0
Thanks,
Jerad
I looked at your project and noticed that the only creation of the "Clients" class has been commented out. This is the only class that creates a "LifeInsurance" instance, so I just added a button to the startup form ("Switchboard") which creates a LifeInsurance form. The load event fired as expected and he "Loading..." messagebox appeared, so I am not sure what your problem really is.
http://i227.photobucket.com/albums/d.../delete-86.jpg
Alrighty, so what you're saying is you didn't see anything wrong?
That's strange. So what I just did (since it worked on yours...) is I opened the Switchboard form. Then added a button and on the button I added:
LifeInsurance LI = new LifeInsurance("RecordKey");
LI.Show();
When I ran this and clicked the button, the LifeInsurance form was instantiated but the "Loading..." message box never appeared. Can you send me back what you changed and let me see if it works on my machine. If yours doesn't (and you know it works on yours..) then could it be specific to my computer settings or something? I know that sounds crazy..
Thanks,
Jerad
Code:public partial class Switchboard : Form
{
public Switchboard()
{
InitializeComponent();
button1.Click += button1_Click;
}
private void button1_Click(object sender, EventArgs e)
{
LifeInsurance frm = new LifeInsurance( "foo" );
frm.Show( );
}
}
Yep, I do that exact same thing and it's never fired..
Is this a lost cause?
Thanks,
Jerad
I just tried this by adding a temporary button to the SwitchBoard form as BigEd did and got a binding error with "RatingClassandQuote". This caused the LifeInsurance form not to appear. I commented out this binding in the LifeInsurance.Designer.cs file and the event fired and form appeared.
Are you doing this by adding a temporary button on the SwitchBoard form?
on my machine the Load event also fires
Usually you delete the \bin and \obj folders before zipping. You'll need to move the StaffDotNet.xxx.dll binary into the project folder. This will get the zipped file down to about 250K. In general, you'll want to remove these folders before zipping the project.
Thanks guys for all of your help. I think I will start the form from scratch and test along the way. I created a blank form and put the load event on it. When ran, the load event was fired. So then I took my old form and copied all of the controls and pasted them on to the newly created form (that worked). Once I pasted the controls on the new form and ran it, the load event was not fired........
I'm going to use Snag-It later on tonight and post a link to the video of what I am doing. I swear, to me this looks like some strange anomaly....
Thanks,
Jerad