UpGrade issue with Timer and toolStripMenuItem Help needed
-
'UPGRADE_WARNING: TypeOf has a new behavior. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="9B7D5ADD-D8FE-4819-A36C-6DEDAF088CC7"' **ElseIf TypeOf cnt Is System.Windows.Forms.Timer Then nType = 0** 'UPGRADE_WARNING: TypeOf has a new behavior. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="9B7D5ADD-D8FE-4819-A36C-6DEDAF088CC7"' **ElseIf TypeOf cnt Is System.Windows.Forms.ToolStripMenuItem Then nType = 0**
after Upgradation to VB.Net it complains like thisError 146 Expression of type 'System.Windows.Forms.Control' can never be of type 'System.Windows.Forms.Timer'. Error 147 Expression of type 'System.Windows.Forms.Control' can never be of type 'System.Windows.Forms.ToolStripMenuItem'.
how can i resolve those issues please help needed -
'UPGRADE_WARNING: TypeOf has a new behavior. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="9B7D5ADD-D8FE-4819-A36C-6DEDAF088CC7"' **ElseIf TypeOf cnt Is System.Windows.Forms.Timer Then nType = 0** 'UPGRADE_WARNING: TypeOf has a new behavior. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="9B7D5ADD-D8FE-4819-A36C-6DEDAF088CC7"' **ElseIf TypeOf cnt Is System.Windows.Forms.ToolStripMenuItem Then nType = 0**
after Upgradation to VB.Net it complains like thisError 146 Expression of type 'System.Windows.Forms.Control' can never be of type 'System.Windows.Forms.Timer'. Error 147 Expression of type 'System.Windows.Forms.Control' can never be of type 'System.Windows.Forms.ToolStripMenuItem'.
how can i resolve those issues please help neededA timer is not a control. You need to rewrite your code.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
A timer is not a control. You need to rewrite your code.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
The code that uses a timer will need to be completely rewritten to use a .NET timer class. There's no simple way that I can see, a timer and a toolstripitem simply do not have a common base class in .NET.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )