Advertisement
Advertisement
| 07.10.2008 at 11:18AM PDT, ID: 23554834 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: |
IN SUB MAIN:
Public Sub Main()
Dim mBackGroundThreadWorker As New System.ComponentModel.BackgroundWorker
With mBackGroundThreadWorker
.WorkerReportsProgress = False
.WorkerSupportsCancellation = True
' Set the address of the procedure to kick off the thread and run
' the method that we need to run in the thread.
AddHandler .DoWork, AddressOf BackgroundWorker_DoWork
' Set the address of the procedure to run when the thread has completed
'AddHandler .RunWorkerCompleted, AddressOf BackgroundWorker_RunWorkerCompleted
' tell the thread to start running. This causes the "DoWork" procedure to
' be called.
.RunWorkerAsync()
End With
Private Sub BackgroundWorker_DoWork(ByVal sender As Object, ByVal e As System.ComponentModel.DoWorkEventArgs)
' Get the BackgroundWorker object that raised this event.
Dim worker As System.ComponentModel.BackgroundWorker = CType(sender, System.ComponentModel.BackgroundWorker)
e.Result = DisplaySplashForm
End Sub
Private Function DisplaySplashForm() As Integer
Dim splashForm As SplashStartup
' Call the function to execute in the thread.
splashForm = New SplashStartup
With splashForm
.StartPosition = FormStartPosition.CenterScreen
.FormBorderStyle = FormBorderStyle.None
.TopMost = True
.Show()
End With
Return 1
End Function
.
.
.
Dim mainMDI As New GUI.MDI(fullName, usersId, cultureKey, _
domainAccount, privilegeKeyString, privilegeNameString, _
plantId, plantName, plantNumber, allPlantPrivsForUser, mBackGroundThreadWorker)
Application.Run(mainMDI)
End Sub
IN MDI:
Private Sub MDI_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
.
.
.
If Not mSplashBackGroundThreadWorker Is Nothing Then mSplashBackGroundThreadWorker.CancelAsync()
End Sub
|