Click here to Skip to main content
15,888,351 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: VB6 to VB.Net COM Interface Help <<< SOLVED >>> Pin
sashaw23-Mar-14 11:01
sashaw23-Mar-14 11:01 
QuestionPlease help me,.? Pin
M.Aprianto2-Mar-14 5:42
M.Aprianto2-Mar-14 5:42 
AnswerRe: Please help me,.? Pin
Eddy Vluggen2-Mar-14 7:44
professionalEddy Vluggen2-Mar-14 7:44 
Questionhow to make session timeout to automatically logout? Pin
charles entsuah28-Feb-14 10:31
charles entsuah28-Feb-14 10:31 
AnswerRe: how to make session timeout to automatically logout? Pin
ZurdoDev28-Feb-14 10:58
professionalZurdoDev28-Feb-14 10:58 
Questionupload pdf , save pdf in to a table, and read it from a datagrid on double click Pin
waner michaud28-Feb-14 9:07
waner michaud28-Feb-14 9:07 
AnswerRe: upload pdf , save pdf in to a table, and read it from a datagrid on double click Pin
Eddy Vluggen2-Mar-14 7:52
professionalEddy Vluggen2-Mar-14 7:52 
QuestionThreading.Thread.Sleep(5000) causing my splash screen to not show values. Help appreciated. Pin
ChristGuard26-Feb-14 9:46
ChristGuard26-Feb-14 9:46 
Hey guys,
I am having a simple problem, when I add the "Threading.Thread.Sleep(5000)" line to the load event of my splash screen (at the end of the load event) it sleeps before the splash screen is fully initialized (The copyright, version number and what not) leaving big white boxes on my splash screen. I have tried adding this line to the end of the initialization code of SplashScreen 1, but that did the same thing. What am I missing?

(Basically, I want my splash screen to show for 5 seconds after loading everything).

VB
Imports System

Public NotInheritable Class SplashScreen1

    Private Sub SplashScreen1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        'Set up the dialog text at runtime according to the application's assembly information.  

        'TODO: Customize the application's assembly information in the "Application" pane of the project 
        '  properties dialog (under the "Project" menu).

        'Application title
        If My.Application.Info.Title <> "" Then
            SplashScreenForm.Text = My.Application.Info.Title
        Else
            'If the application title is missing, use the application name, without the extension
            SplashScreenForm.Text = System.IO.Path.GetFileNameWithoutExtension(My.Application.Info.AssemblyName)
        End If

        'Format the version information using the text set into the Version control at design time as the
        '  formatting string.  This allows for effective localization if desired.
        '  Build and revision information could be included by using the following code and changing the 
        '  Version control's designtime text to "Version {0}.{1:00}.{2}.{3}" or something similar.  See
        '  String.Format() in Help for more information.
        '
        '    Version.Text = System.String.Format(Version.Text, My.Application.Info.Version.Major, My.Application.Info.Version.Minor, My.Application.Info.Version.Build, My.Application.Info.Version.Revision)

        Version.Text = System.String.Format(Version.Text, My.Application.Info.Version.Major, My.Application.Info.Version.Minor)

        'Copyright info
        Copyright.Text = My.Application.Info.Copyright
        Copyright.Show()

        'Show the Splash Screen
        Me.Show()
        Me.Focus()

        'Pause for 5 seconds
        Threading.Thread.Sleep(5000)

        'Hide the Splash Screen and show the First Form
        Me.WindowState = FormWindowState.Minimized
        Me.Visible = False
        MenuEditorForm.Show()
        MenuEditorForm.TopMost = True
    End Sub

End Class

AnswerRe: Threading.Thread.Sleep(5000) causing my splash screen to not show values. Help appreciated. Pin
Dave Kreskowiak26-Feb-14 11:17
mveDave Kreskowiak26-Feb-14 11:17 
GeneralRe: Threading.Thread.Sleep(5000) causing my splash screen to not show values. Help appreciated. Pin
ChristGuard26-Feb-14 12:00
ChristGuard26-Feb-14 12:00 
GeneralRe: Threading.Thread.Sleep(5000) causing my splash screen to not show values. Help appreciated. Pin
Dave Kreskowiak26-Feb-14 16:17
mveDave Kreskowiak26-Feb-14 16:17 
Questionreading html data using the vb script Pin
Member 1062036024-Feb-14 17:32
Member 1062036024-Feb-14 17:32 
AnswerRe: reading html data using the vb script Pin
Dave Kreskowiak24-Feb-14 17:38
mveDave Kreskowiak24-Feb-14 17:38 
GeneralRe: reading html data using the vb script Pin
Member 1062036024-Feb-14 17:40
Member 1062036024-Feb-14 17:40 
GeneralRe: reading html data using the vb script Pin
Member 1062036024-Feb-14 17:43
Member 1062036024-Feb-14 17:43 
GeneralRe: reading html data using the vb script Pin
Dave Kreskowiak24-Feb-14 17:46
mveDave Kreskowiak24-Feb-14 17:46 
QuestionRunning VB6 programs in Windows 7 Pin
Wycombe24-Feb-14 12:00
Wycombe24-Feb-14 12:00 
AnswerRe: Running VB6 programs in Windows 7 Pin
Dave Kreskowiak24-Feb-14 14:49
mveDave Kreskowiak24-Feb-14 14:49 
GeneralRe: Running VB6 programs in Windows 7 Pin
Wycombe25-Feb-14 5:01
Wycombe25-Feb-14 5:01 
GeneralRe: Running VB6 programs in Windows 7 Pin
Dave Kreskowiak25-Feb-14 6:47
mveDave Kreskowiak25-Feb-14 6:47 
AnswerRe: Running VB6 programs in Windows 7 Pin
MyOwnBoss7-Mar-14 13:02
MyOwnBoss7-Mar-14 13:02 
QuestionMulti Select List box to Word 2007 table Pin
Member 791951624-Feb-14 8:20
Member 791951624-Feb-14 8:20 
QuestionUpdating ComboBox after Insert or Delete with SQL 2008 Pin
Dan O'Riordan23-Feb-14 23:25
Dan O'Riordan23-Feb-14 23:25 
AnswerRe: Updating ComboBox after Insert or Delete with SQL 2008 Pin
Eddy Vluggen24-Feb-14 7:53
professionalEddy Vluggen24-Feb-14 7:53 
GeneralRe: Updating ComboBox after Insert or Delete with SQL 2008 Pin
Dan O'Riordan24-Feb-14 18:42
Dan O'Riordan24-Feb-14 18:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.