473,412 Members | 2,027 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

System.Windows. Not valaible

Hello

When I try to import the System.Windows.Forms.MessageBox
I get a meesage saying that it is not avalaible ?
How to solve it ?
Thanks

Bernard
Nov 22 '05 #1
4 1235
Bernard,
When I try to import the System.Windows.Forms.MessageBox
I get a meesage saying that it is not avalaible ?
How to solve it ?


First of all, make sure you ahve a reference to the
System.Windows.Forms.dll assembly.
Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Nov 22 '05 #2
Mattias Sjögren a écrit :
Bernard,

When I try to import the System.Windows.Forms.MessageBox
I get a meesage saying that it is not avalaible ?
How to solve it ?

First of all, make sure you ahve a reference to the
System.Windows.Forms.dll assembly.
Mattias

Mattias

Yes I have the System.Windows.Forms in my references

Bernard
Nov 22 '05 #3
You "Import" namespace, not Class. MessageBox is a class in
System.Windows.Forms namespace.

So your *.vb file should look like:

Import System.Windows.Forms

Not:

Import System.Windows.Forms.MessageBox
"Bernard Bourée" <be*****@bouree.net> wrote in message
news:%2******************@TK2MSFTNGP14.phx.gbl...
Mattias Sjögren a écrit :
Bernard,

When I try to import the System.Windows.Forms.MessageBox
I get a meesage saying that it is not avalaible ?
How to solve it ?

First of all, make sure you ahve a reference to the
System.Windows.Forms.dll assembly.
Mattias

Mattias

Yes I have the System.Windows.Forms in my references

Bernard

Nov 22 '05 #4

Norman
Thanks problem solved.

Bernard
Norman Yuan a écrit :
You "Import" namespace, not Class. MessageBox is a class in
System.Windows.Forms namespace.

So your *.vb file should look like:

Import System.Windows.Forms

Not:

Import System.Windows.Forms.MessageBox
"Bernard Bourée" <be*****@bouree.net> wrote in message
news:%2******************@TK2MSFTNGP14.phx.gbl...
Mattias Sjögren a écrit :
Bernard,

When I try to import the System.Windows.Forms.MessageBox
I get a meesage saying that it is not avalaible ?
How to solve it ?
First of all, make sure you ahve a reference to the
System.Windows.Forms.dll assembly.
Mattias


Mattias

Yes I have the System.Windows.Forms in my references

Bernard


Nov 22 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Terrence | last post by:
I am doing some of the C# walkthroughs to transition from VB to C#. When I try to execute static void Main() { Aplication.Run(new Form1()) } I raise a 'System.NullReferenceException" in...
2
by: Greg Bacchus | last post by:
Hi, I'm getting an exception that really has me stumped. It's sporadic at best, it's only happened a handful of times. This particular time it happened when the user pressed 'Alt-S' to save the...
4
by: Bernard Bourée | last post by:
Hello When I try to import the System.Windows.Forms.MessageBox I get a meesage saying that it is not avalaible ? How to solve it ? Thanks Bernard
1
by: lwickland | last post by:
Summary: System.Net.ScatterGatherBuffers.MemoryChuck allocates inordinately large bytes when sending large post data. The following application consumes inordinate quantities of memory. My code...
2
by: Graeme Neath | last post by:
I'm having a very bizarre problem. I have a vb.net application which uses the ESRI MapObjects 2.2 component (unmanaged code). When I use the MapObjects built-in function 'CopyMap' to copy the map...
4
by: Roger Aikin | last post by:
I've converted a VB6 project to VB.Net 2005. (Actually using vstudio pro 2005). I'm on a machine that also has VB6 and Vstudio.net 2003 on it. The project uses Word, Excel, MapPoint and SqlClient...
3
by: forest demon | last post by:
for example, let's say I do something like, System.Diagnostics.Process.Start("notepad.exe","sample.txt"); if the user does a SaveAs (in notepad), how can i capture the path that the user...
1
by: mfunkmann | last post by:
Hi, I recently got an error and I don't know how to fix it: Error 1 'System.Data.DataColumn' does not contain a definition for 'Windows' C:\c#\CsharpPRO\Form1.Designer.cs 304 77 CsharpPRO I...
2
by: =?Utf-8?B?TmF0aGFuIFdpZWdtYW4=?= | last post by:
Hi, I am wondering why the .NET Framework is quite different from Win32 API when it comes to displaying system modal message boxes. Consider the four following types of system modal message...
0
by: =?Utf-8?B?TWFyY3VzIFNjaGFlZmVy?= | last post by:
Hi everybody, I'm working on my application for appr. 2 years and now suddenly I got an System.TypeInitializationException in one of my global modules. The error is thrown at the first call of a...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.