Colleagues,
I've never seen anything like this! This is what system throws
which is totally untrue, here's the code (from the line #1 on):
WaitNSeconds() is the procedure I have programmed and tried to test.
IOW, it looks like the VS (2019) doesn't "see" System.Windows.Forms when I have it as Windows Application in the Project's properties, and all the needed components are Imported.
What am I doing wrong?
Please advise!
TIA!
Regards,
Ilya
I've never seen anything like this! This is what system throws
which is totally untrue, here's the code (from the line #1 on):
Code:
Imports System
Imports System.Net
Imports System.String
Imports System.IO
Imports System.Windows.Forms
Imports System.Threading
Imports System.Net.Mail
Imports System.Windows
Imports Microsoft.VisualBasic
Imports Microsoft.VisualBasic.FileIO
'====================================================================================================================================
Module Common_Subs_Functions
'====================================================================================================================================
Public Sub Main()
'====================================================================================================================================
' Purpose : Test the functions and procedures of the Common_Functions class.
' Description : N/A.
' Parameters : N/A.
' Returns : N/A.
' Side effects : N/A.
' Notes : 1. Non-specific.
' 2. Complies with .NET Framework ver. X.X and higher.
' Author : Ilya I. Rabyy
' Revisions : by Ilya on 2022-12-15 - started 1st draft.
'====================================================================================================================================
' Testing WaitNSeconds
For I As Int16 = 0 To 10
MsgBox(I.ToString() & " seconds elapsed")
WaitNSeconds(5)
Next
End Sub
'====================================================================================================================================
WaitNSeconds() is the procedure I have programmed and tried to test.
IOW, it looks like the VS (2019) doesn't "see" System.Windows.Forms when I have it as Windows Application in the Project's properties, and all the needed components are Imported.
What am I doing wrong?
Please advise!
TIA!
Regards,
Ilya