473,322 Members | 1,540 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,322 software developers and data experts.

denotes a 'namespace' which is not valid in the given context

This is the Error msg that I get. The dieroll is a DLL that I have that has
been referenced.

Error Msg: 'dieroll' denotes a 'namespace' which is not valid in the given
context

This is the Code that it points to. the dieroll (1); has the blue line under
it!!!
private void CMD_BTN_R1_Click(object sender, System.EventArgs e)
{
dieroll (1);
displayDie (1);
}

Any Help would be grear.
Nov 16 '05 #1
3 6469

"KAnoe" <KA***@discussions.microsoft.com> wrote in message
news:64**********************************@microsof t.com...
This is the Error msg that I get. The dieroll is a DLL that I have that
has
been referenced.

Error Msg: 'dieroll' denotes a 'namespace' which is not valid in the given
context

This is the Code that it points to. the dieroll (1); has the blue line
under
it!!!
private void CMD_BTN_R1_Click(object sender, System.EventArgs e)
{
dieroll (1);


In this circumstance, you are trying to call a method "dieroll" with a
single parameter (1). If dieroll is a namespace this is entirely incorrect.
What are you *trying* to call?
Nov 16 '05 #2

It is a CMD_BTN that the usre clicks to roll only 1 Dice. The front end has
6 CMD_BTN's that the user can click to roll from 1 to 6 dice.

"Daniel O'Connell [C# MVP]" wrote:

"KAnoe" <KA***@discussions.microsoft.com> wrote in message
news:64**********************************@microsof t.com...
This is the Error msg that I get. The dieroll is a DLL that I have that
has
been referenced.

Error Msg: 'dieroll' denotes a 'namespace' which is not valid in the given
context

This is the Code that it points to. the dieroll (1); has the blue line
under
it!!!
private void CMD_BTN_R1_Click(object sender, System.EventArgs e)
{
dieroll (1);


In this circumstance, you are trying to call a method "dieroll" with a
single parameter (1). If dieroll is a namespace this is entirely incorrect.
What are you *trying* to call?

Nov 16 '05 #3

"KAnoe" <KA***@discussions.microsoft.com> wrote in message
news:4B**********************************@microsof t.com...

It is a CMD_BTN that the usre clicks to roll only 1 Dice. The front end
has
6 CMD_BTN's that the user can click to roll from 1 to 6 dice.


unfortunatly that means nothing to me. Could you provide a short but
complete program[1] that shows your problem?

1. http://www.yoda.arachsys.com/csharp/complete.html
Nov 16 '05 #4

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

Similar topics

6
by: Mikko Nummelin | last post by:
As the XSLT namespace is declared to be used in XSL documents like this: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> , isn't this a risky practice as it...
1
by: John L. Clark | last post by:
I am curious as to the rationale, and effect, of having default namespaces not applying (directly) to attributes (see http://www.w3.org/TR/REC-xml-names/#defaulting). Given an attribute without a...
8
by: Petter Reinholdtsen | last post by:
I ran into a problem on HP-UX 11.00 the other day, where it refused to compile a program using 'using namespace std;' at the top. The reason seem to be that the compiler refuses to accept 'using...
3
by: Alex Sedow | last post by:
Why MSVC# compiler in this error example say that 'A' is a namespace? 'A' is a class, not a namespace. // lookup5.cs namespace Lookup { namespace Case5 { class D : B {
3
by: Jim Heavey | last post by:
I create a class which would hold my static methods (methods I want to call without having to instantiate the class). I then attempted to use it in another class and I get the following error...
18
by: jacksu | last post by:
I have a simple program to run xpath with xerces 1_2_7 XPathFactory factory = XPathFactory.newInstance(); XPath xPath = factory.newXPath(); XPathExpression xp = xPath.compile(strXpr);...
1
by: Plop69 | last post by:
need some help on following: xml file 1 <TEST xmlns="http://test" > <OK>mlkddflmkj</OK> </TEST> xml file 2
12
by: Plop69 | last post by:
need some help on following: xml file 1 <TEST xmlns="http://test" > <OK>mlkddflmkj</OK> </TEST>
5
by: Jeremy | last post by:
I've got two projects, both reference system, system.data and system.xml and both include the using System.Xml.Serialization and using System at the top of the file. Both also include the...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.