Home All Groups Group Topic Archive Search About
Author
21 Feb 2006 3:17 PM
Agnes
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

Author
21 Feb 2006 3:33 PM
Patrice
Check but IMO a name that starts with _ is not CLS compliant...

--
Patrice

Show quoteHide quote
"Agnes" <ag***@dynamictech.com.hk> a écrit dans le message de
news:%23Ar2invNGHA.3936@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
>
>
Author
21 Feb 2006 3:36 PM
Carlos J. Quintero [VB MVP]
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


Show quoteHide quote
"Agnes" <ag***@dynamictech.com.hk> escribió en el mensaje
news:%23Ar2invNGHA.3936@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
>
Author
21 Feb 2006 4:09 PM
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

Show quoteHide quote
"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
>
>
>
Author
22 Feb 2006 1:59 AM
Agnes
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 ?

Show quoteHide quote
"guy" <g**@discussions.microsoft.com> ¼¶¼g©ó¶l¥ó·s»D:3AC80A72-9F57-4B4B-AE91-E0377367F***@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
>>
>>
>>
Author
22 Feb 2006 7:52 AM
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

Show quoteHide quote
"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" <g**@discussions.microsoft.com> ¼¶¼g©ó¶l¥ó·s»D:3AC80A72-9F57-4B4B-AE91-E0377367F***@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
> >>
> >>
> >>
>
>
>