|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
CLS-complaintWhat 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 Check but IMO a name that starts with _ is not CLS compliant...
-- Show quoteHide quotePatrice "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 > > 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. -- Show quoteHide quoteBest 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:%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 > 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 > > > 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 >> >> >> 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 > >> > >> > >> > > >
Text Files: Number of Lines
Memory Leaking in VB.NET switch form sqlserver to access at runtime Is it better to use Try or to use Resume Next? Address parameter in WebClient.UploadFile? Items property Unable to open file remotely How to change color line by line in a rich textbox? Q: Dataview and a grid vb.net2005 got error when put object |
|||||||||||||||||||||||