Hide Call Stack at System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement) at System.Drawing.Image.FromFile(String filename) at COE_Information_Systems.uccStudentBioData.Clear() in C:\Users\Josh\Documents\Visual Studio 2015\Projects\COE_Information_Systems\COE_Information_Systems\uccStudentBioData.cs:line 105 at COE_Information_Systems.uccStudentBioData.uccStudentBioData_Load(Object sender, EventArgs e) in C:\Users\Josh\Documents\Visual Studio 2015\Projects\COE_Information_Systems\COE_Information_Systems\uccStudentBioData.cs:line 695 at System.Windows.Forms.UserControl.OnLoad(EventArgs e) at System.Windows.Forms.UserControl.OnCreateControl() at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl() at System.Windows.Forms.Control.ControlCollection.Add(Control value) at System.Windows.Forms.Form.ControlCollection.Add(Control value) at System.Windows.Forms.Design.ControlDesigner.DesignerControlCollection.Add(Control c)
this.picStudentPhoto.Image = Image.FromFile(Application.StartupPath + "\\StudentImages\\DefaultStudent.png");
void Clear() { //Clear and re-initilaize all controls and variables this.picStudentPhoto.Image = Image.FromFile(Application.StartupPath + "\\StudentImages\\DefaultStudent.png");//Line 105 this.picViewUTME.Image = Image.FromFile(Application.StartupPath + "\\StudentImages\\DocDefault.png"); } private void uccStudentBioData_Load(object sender, EventArgs e) { InitilizeCntrls(); this.Clear();//line 695 FillStudentDataGridView(); }
Application.StartupPath
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)