Picture Viewer (HELP me)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • james 125877
    New Member
    • Dec 2007
    • 2

    Picture Viewer (HELP me)

    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 ! :)
  • PianoMan64
    Recognized Expert Contributor
    • Jan 2008
    • 374

    #2
    That looks like C++ programming. This is for MS Access VBA code only.

    Sorry..... ;-(

    Joe P.

    Comment

    Working...