Advertisement

06.15.2008 at 01:26PM PDT, ID: 23486614
[x]
Attachment Details

Implicit converstions

Asked by MrManderson in Microsoft Visual Basic.Net

Hi All

I am getting the following warning on my debugger.

Implicit conversion from 'System.Windows.Forms.Control' to 'DevExpress.XtraEditors.SimpleButton'.

And is refering to the following line.

Dim _CTL As DevExpress.XtraEditors.SimpleButton
_CTL = m_WizardComponent.ButtonPanel.GetChildAtPoint(m_WizardComponent.ButtonPanel.PointToClient(point))                    <<<<<<<<<<<<<<<<<

Also a similar one

Implicit conversion from 'Object' to 'WizardFramework.WizardPage'.

        Private Sub m_colPages_Added(ByVal sender As Object) Handles m_colPages.Added
            Try
                If Not sender Is Nothing Then
                    If Not Me.Controls.Contains(sender) Then Me.Controls.Add(sender) <<<<<<<<<<<<<<<


How do I resolve these warnings ? Is it just a case of specifying a conversion type?

Regards
SteveStart Free Trial
[+][-]06.15.2008 at 01:30PM PDT, ID: 21789643

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]06.15.2008 at 09:57PM PDT, ID: 21790873

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Visual Basic.Net
Sign Up Now!
Solution Provided By: Idle_Mind
Participating Experts: 2
Solution Grade: A
 
 
[+][-]06.15.2008 at 10:01PM PDT, ID: 21790890

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_EXPERT_20070906