A
arr uba
Hi all,
as a newbye I understand many of my questions may seem awkwards to many of
you, but sometimes you just can't find quick answers even when browsing
several books on the subjects....(of course that depends on the books you
are reading).
With Intelisense you have access to the objects lists and others, but i
can't see any indication of the "using..." statement associated with them.
An example: in order to use OpenFileDialog object I copyied code from MVC#5
Offline Help, like this:
private void openProjectToolStripMenuItem_Click(object sender, EventArgs e)
{
Stream myStream;
OpenFileDialog openFileDialog1 = new OpenFileDialog();
....
{
myStream.Close();
}}
When debugging I get the following error message:
Error 1 The type or namespace name 'Stream' could not be found (are you
missing a using directive or an assembly reference?) C:\...\Form1.cs
So, what is this namespace? Is there any direct way to identify it?
To solve this I picked-up from (another) example code and add it to my code,
like this:
using System.IO;
using System.Threading;
using System.Runtime.InteropServices;
using System.Runtime.Remoting.Messaging;
Result? It works ! The point is I don't know if I was just lucky because I
picked-up the right (other) example...
as a newbye I understand many of my questions may seem awkwards to many of
you, but sometimes you just can't find quick answers even when browsing
several books on the subjects....(of course that depends on the books you
are reading).
With Intelisense you have access to the objects lists and others, but i
can't see any indication of the "using..." statement associated with them.
An example: in order to use OpenFileDialog object I copyied code from MVC#5
Offline Help, like this:
private void openProjectToolStripMenuItem_Click(object sender, EventArgs e)
{
Stream myStream;
OpenFileDialog openFileDialog1 = new OpenFileDialog();
....
{
myStream.Close();
}}
When debugging I get the following error message:
Error 1 The type or namespace name 'Stream' could not be found (are you
missing a using directive or an assembly reference?) C:\...\Form1.cs
So, what is this namespace? Is there any direct way to identify it?
To solve this I picked-up from (another) example code and add it to my code,
like this:
using System.IO;
using System.Threading;
using System.Runtime.InteropServices;
using System.Runtime.Remoting.Messaging;
Result? It works ! The point is I don't know if I was just lucky because I
picked-up the right (other) example...