473,473 Members | 2,222 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 1237
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: 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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

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.