Hi !
I tried compiling my script and it comes up with an error:
The type or namespace name 'fclsViewer' could not be found (are you missing a using directive or an assembly reference?
and the script is:
using System;
using System.Collecti ons.Generic;
using System.Componen tModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows. Forms;
namespace Picture_Viewer
{
public partial class Form1 : Form
{
public Form1()
{
InitializeCompo nent();
}
private void button1_Click(o bject sender, EventArgs e)
{
Application.Run (new flcsViewer());
}
private void Form1_Load(obje ct sender, EventArgs e)
{
// Show the open file dialog box.
if (ofdSelectPictu re.ShowDialog() == DialogResult.OK )
{
//Load the picture into the picture box.
picShowPicture. Image = Image.FromFile( ofdSelectPictur e.FileName);
// Show the name of the file in the form's caption.
this.Text = String.Concat(" Picture Viewer (" + ofdSelectPictur e.FileName + ") ");
}
}
}
}
Thanks and please help ! :)
I tried compiling my script and it comes up with an error:
The type or namespace name 'fclsViewer' could not be found (are you missing a using directive or an assembly reference?
and the script is:
using System;
using System.Collecti ons.Generic;
using System.Componen tModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows. Forms;
namespace Picture_Viewer
{
public partial class Form1 : Form
{
public Form1()
{
InitializeCompo nent();
}
private void button1_Click(o bject sender, EventArgs e)
{
Application.Run (new flcsViewer());
}
private void Form1_Load(obje ct sender, EventArgs e)
{
// Show the open file dialog box.
if (ofdSelectPictu re.ShowDialog() == DialogResult.OK )
{
//Load the picture into the picture box.
picShowPicture. Image = Image.FromFile( ofdSelectPictur e.FileName);
// Show the name of the file in the form's caption.
this.Text = String.Concat(" Picture Viewer (" + ofdSelectPictur e.FileName + ") ");
}
}
}
}
Thanks and please help ! :)
Comment