473,326 Members | 2,196 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,326 software developers and data experts.

CLS-complaint

What is it ??
my frmInvoice is heritied from Master Form,
Master Form will got a method _Print

my frmInvoice will overrides it , however, in vb.net 2005 .It got a warning
(not CLS-complaint).
I don't know what's wrong it is ????
Public Overrides Sub _Print(ByVal _preview As Boolean, ByVal _printsetup As
Boolean)

Please help
Feb 21 '06 #1
5 3005
Check but IMO a name that starts with _ is not CLS compliant...

--
Patrice

"Agnes" <ag***@dynamictech.com.hk> a écrit dans le message de
news:%2****************@TK2MSFTNGP10.phx.gbl...
What is it ??
my frmInvoice is heritied from Master Form,
Master Form will got a method _Print

my frmInvoice will overrides it , however, in vb.net 2005 .It got a warning (not CLS-complaint).
I don't know what's wrong it is ????
Public Overrides Sub _Print(ByVal _preview As Boolean, ByVal _printsetup As Boolean)

Please help

Feb 21 '06 #2
Hi Agnes,

See:

Name <membername> is not CLS-compliant
http://msdn2.microsoft.com/en-us/library/k5645wwb.aspx

You can fix the name or change the CLSCompliant attribute value in the
AssemblyInfo.vb file to False.

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com
"Agnes" <ag***@dynamictech.com.hk> escribió en el mensaje
news:%2****************@TK2MSFTNGP10.phx.gbl...
What is it ??
my frmInvoice is heritied from Master Form,
Master Form will got a method _Print

my frmInvoice will overrides it , however, in vb.net 2005 .It got a
warning (not CLS-complaint).
I don't know what's wrong it is ????
Public Overrides Sub _Print(ByVal _preview As Boolean, ByVal _printsetup
As Boolean)

Please help

Feb 21 '06 #3
guy
Agnes, is this a migrated vb2003 project?

if so we had the same problem, and had to create a new project and
copy/paste the code in, which fixed it - no idea why though

hth

guy

"Agnes" wrote:
What is it ??
my frmInvoice is heritied from Master Form,
Master Form will got a method _Print

my frmInvoice will overrides it , however, in vb.net 2005 .It got a warning
(not CLS-complaint).
I don't know what's wrong it is ????
Public Overrides Sub _Print(ByVal _preview As Boolean, ByVal _printsetup As
Boolean)

Please help

Feb 21 '06 #4
Yes, it is the 2003 project before, copy the code ??
I got over 80 forms inherited from the Master method and got that warning
( 500 warnings in 2005 , it make me crazy)
Any simple shortcut ?

"guy" <gu*@discussions.microsoft.com> ¼¶¼g©ó¶l¥ó·s»D:3A********************************* *@microsoft.com...
Agnes, is this a migrated vb2003 project?

if so we had the same problem, and had to create a new project and
copy/paste the code in, which fixed it - no idea why though

hth

guy

"Agnes" wrote:
What is it ??
my frmInvoice is heritied from Master Form,
Master Form will got a method _Print

my frmInvoice will overrides it , however, in vb.net 2005 .It got a
warning
(not CLS-complaint).
I don't know what's wrong it is ????
Public Overrides Sub _Print(ByVal _preview As Boolean, ByVal _printsetup
As
Boolean)

Please help

Feb 22 '06 #5
guy
Agnes,
I wish there was a shortcut - it drives us mad too!
if anyone knows the reason, can explain it, has a fix PLEASE let us know

guy

"Agnes" wrote:
Yes, it is the 2003 project before, copy the code ??
I got over 80 forms inherited from the Master method and got that warning
( 500 warnings in 2005 , it make me crazy)
Any simple shortcut ?

"guy" <gu*@discussions.microsoft.com> ¼¶¼g©ó¶l¥ó·s»D:3A*********************** ***********@microsoft.com...
Agnes, is this a migrated vb2003 project?

if so we had the same problem, and had to create a new project and
copy/paste the code in, which fixed it - no idea why though

hth

guy

"Agnes" wrote:
What is it ??
my frmInvoice is heritied from Master Form,
Master Form will got a method _Print

my frmInvoice will overrides it , however, in vb.net 2005 .It got a
warning
(not CLS-complaint).
I don't know what's wrong it is ????
Public Overrides Sub _Print(ByVal _preview As Boolean, ByVal _printsetup
As
Boolean)

Please help


Feb 22 '06 #6

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

Similar topics

25
by: BOOGIEMAN | last post by:
I've just finished reading Python turtorial for non-programmers and I haven't found there anything about some usefull commands I used in QBasic. First of all, what's Python command equivalent to...
1
by: Keith R | last post by:
Currently, generic types are not CLS compliant. This puts library authors in a quandry who are faced with three bad alternatives: 1. CLS Compliance but no generics, 2. Using generic types but...
3
by: news.microsoft.com | last post by:
The question is, is a DataSet CLS compliant? Minimally implemented code, with an attribute in the assemblyinfo.cs compiles just fine (is it possibly the data INSIDE the dataset that could...
2
by: pnp | last post by:
I tried to add an accessor into a class of an Interface of another class, but the problem is that the compiler displays an error: Type of 'A.B.C.IUsers' is not CLS-compliant What does this...
1
by: Pieter | last post by:
Hi, I have this Warning for several forms when using the DockPanel Suite of Weifen Luo in VS.NET 2005. I read a lot about this CLS-compliant stuff, but I don't now how to chech actually which...
10
by: moondaddy | last post by:
I converted a vb.1.1 web service project to 2.0 and .net 2.0 created / replace some datasets. The code it automatiacly generated gets a warning message as follows: Warning 150 Name...
0
by: manoj.sahu | last post by:
hi all, as per my study CLS is the common set of specification which should by meet by the language which want to target CLS(or .net). and CTS is the set of common types(or common data types)...
5
by: Mitchell S. Honnert | last post by:
I'm thinking about adding unsigned types, like UShort and UInt, to a VB.NET library that I published which edits ID3 tag information. It would make the interface much more clean to have some...
22
by: mp | last post by:
i have a python program which attempts to call 'cls' but fails: sh: line 1: cls: command not found i tried creating an alias from cls to clear in .profile, .cshrc, and /etc/profile, but none...
3
by: james_027 | last post by:
hi, is cls & self the same thing? I have seen something like class A: def dosomething(cls): #doing something
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
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: 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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.