Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27353

Does vB.NET's "Yellow Warnings" Have Any Bad Affect, If Yes then plz take a look?

$
0
0
Hi everyone, I know this is a Newbie question, but I wanted to make sure I am not doing anything wrongm, and I wanted to know if these warnings are affecting my Project when Its published or not.

I am working on a project that uses 2 forms to create a "Page Control" Slider... The main files are called Designer.vb and Animation.vb. I ran the projects on Visual Basic 2010 and Visual Studio 2012. I did not get any errors, but warnings that I havnt seen befor. Below is a short description of the 4 warnings..

1) 2 of the warnings indicates that the references "Microsoft.ReportViewer.Commons" and "Microsoft.ReportViewer.Winforms" could not be found.
I found an Article online about that I had to Install a ReportViewer and then it might be fixed. And after searching I found 3 Version and I am not sure which version to use. So If I could get some advice it could be very helpfull.

Microsoft ReportViewer Versions:

Microsoft Report Viewer 2012 Runtime from Official ...
http://www.microsoft.com/en-us/downl....aspx?id=35747

Microsoft Report Viewer 2010 Redistributable Package
http://www.microsoft.com/en-us/downl...s.aspx?id=6442

Report Viewer Redistributable 2008 Service Pack 1

http://www.microsoft.com/da-dk/downl...s.aspx?id=3203

Image of all 4 Warnings:


2) The other 2 warnings can be seen on the Image below, and its on the form calledAnimations.vb, I dont know what is indicating these Warnings, and I dont know If I should carry on working on those projects and ignore the warnings, or fix it!

Below is only the PART where the error appears, Seen on the Image (If full Coded Needed, Plz Let me know):
Code:

    Private Function GetPos() As Long
        Dim p = Watch.ElapsedMilliseconds

        If PlayForward Then
            p = ReversePos + (p - ReverseTime)
        Else
            p = ReversePos - (p - ReverseTime)
        End If

        'Console.WriteLine(p & " - " & ReversePos)
        If p > Length Then p = Length
        If p < 0 Then p = 0

        Return p
    End Function

    Public Function GetFrame() As Single
        Return GetFrame(Start, [Stop], Length, GetPos, Type, Mode)
    End Function

    Public Shared Function GetFrame(Start!, Stop!, Length!, Position!, Type As AnimationType, Optional Mode As EaseMode = EaseMode.EaseIn) As Single
        Dim p As Single = Position / Length

        Select Case Mode
            Case Is = EaseMode.EaseIn : GetFrame = CalculateAnimation(p, Type)
            Case Is = EaseMode.EaseOut : GetFrame = 1 - CalculateAnimation(1 - p, Type)
            Case Is = EaseMode.EaseInOut : GetFrame = If(p <= 0.5, CalculateAnimation(2 * p, Type) / 2, (2 - CalculateAnimation(2 * (1 - p), Type)) / 2)
        End Select

        Return ([Stop] - Start) * GetFrame + Start
    End Function


I will be appreciated to be adviced if I should carry on working on the Project and ignore the warnings, or is there anyway to fix them!
Thank you very much in advance...

Viewing all articles
Browse latest Browse all 27353

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>