Hi !
i got a problem when i tried to compile it, i had an error and it was:
The type or namespace name 'fclsViewer' could not be found (are you missing a using directive or an assembly reference?)
now the code is:
Please help me i really want it to work !!!
i got a problem when i tried to compile it, i had an error and it was:
The type or namespace name 'fclsViewer' could not be found (are you missing a using directive or an assembly reference?)
now the code is:
using System;
using System.Collections.Generic;
using System.ComponentModel;
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()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
Application.Run(new flcsViewer());
}
private void Form1_Load(object sender, EventArgs e)
{
// Show the open file dialog box.
if (ofdSelectPicture.ShowDialog() == DialogResult.OK)
{
//Load the picture into the picture box.
picShowPicture.Image = Image.FromFile(ofdSelectPicture.FileName);
// Show the name of the file in the form's caption.
this.Text = String.Concat("Picture Viewer (" + ofdSelectPicture.FileName + ") ");
}
}
}
}
Please help me i really want it to work !!!