Click here to Skip to main content
15,892,480 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionI can't see the Console window Pin
ahmad_yossef21-Mar-07 22:38
ahmad_yossef21-Mar-07 22:38 
AnswerRe: I can't see the Console window Pin
Christian Graus22-Mar-07 4:55
protectorChristian Graus22-Mar-07 4:55 
AnswerRe: I can't see the Console window Pin
Vasudevan Deepak Kumar22-Mar-07 19:05
Vasudevan Deepak Kumar22-Mar-07 19:05 
Questionhow to run the function 10 second later ? [modified] Pin
cheeken2u21-Mar-07 21:11
cheeken2u21-Mar-07 21:11 
AnswerRe: how to run the function 10 second later ? Pin
Tirthadip21-Mar-07 22:20
Tirthadip21-Mar-07 22:20 
GeneralRe: how to run the function 10 second later ? Pin
cheeken2u21-Mar-07 22:25
cheeken2u21-Mar-07 22:25 
GeneralRe: how to run the function 10 second later ? Pin
Tirthadip21-Mar-07 22:52
Tirthadip21-Mar-07 22:52 
GeneralRe: how to run the function 10 second later ? Pin
TwoFaced22-Mar-07 7:54
TwoFaced22-Mar-07 7:54 
The code posted uses the Timers.Timer object which runs on a separate thread. Trying to change UI elements like visibility of a button will generate a cross thread error. It's unsafe to access controls from a thread that didn't create that control. Instead try using the forms.timer.
Dim WithEvents myTimer As New Windows.Forms.Timer


Public Sub myTimer_Tick(ByVal sender As Object, ByVal e As EventArgs) Handles myTimer.Tick
    Button1.Visible = False
    myTimer.Stop()
End Sub

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    With myTimer
        .Interval = 5000
        .Start()
    End With

End Sub

Questionupdate controls Pin
Member 393593721-Mar-07 21:03
Member 393593721-Mar-07 21:03 
AnswerRe: update controls Pin
Dave Kreskowiak22-Mar-07 5:39
mveDave Kreskowiak22-Mar-07 5:39 
QuestionConvert pixel to point Pin
ayeleteric21-Mar-07 21:01
ayeleteric21-Mar-07 21:01 
AnswerRe: Convert pixel to point Pin
Christian Graus22-Mar-07 4:56
protectorChristian Graus22-Mar-07 4:56 
Question(vb.net)textbox accepting only numeric data using keypress event and keydown event Pin
venkata lakshmi prasanna21-Mar-07 20:38
venkata lakshmi prasanna21-Mar-07 20:38 
AnswerRe: (vb.net)textbox accepting only numeric data using keypress event and keydown event [modified] Pin
Tirthadip21-Mar-07 22:06
Tirthadip21-Mar-07 22:06 
Questionconnect database to .net Pin
shriku2421-Mar-07 19:56
shriku2421-Mar-07 19:56 
AnswerRe: connect database to .net Pin
Krish - KP21-Mar-07 22:06
Krish - KP21-Mar-07 22:06 
QuestionOpen PDF from CD in VB.NET Pin
ayeleteric21-Mar-07 19:39
ayeleteric21-Mar-07 19:39 
AnswerRe: Open PDF from CD in VB.NET Pin
Guffa21-Mar-07 21:48
Guffa21-Mar-07 21:48 
AnswerRe: Open PDF from CD in VB.NET Pin
Vasudevan Deepak Kumar22-Mar-07 19:02
Vasudevan Deepak Kumar22-Mar-07 19:02 
Questionclosing window Pin
mkiranm21-Mar-07 19:19
mkiranm21-Mar-07 19:19 
AnswerRe: closing window Pin
coolestCoder21-Mar-07 19:33
coolestCoder21-Mar-07 19:33 
GeneralRe: closing window Pin
mkiranm21-Mar-07 20:32
mkiranm21-Mar-07 20:32 
GeneralRe: closing window Pin
Christian Graus22-Mar-07 4:58
protectorChristian Graus22-Mar-07 4:58 
QuestionUsing Oledb and Dlls in vb.net 2005 Pin
Member 17080821-Mar-07 18:36
Member 17080821-Mar-07 18:36 
AnswerRe: Using Oledb and Dlls in vb.net 2005 Pin
Dave Kreskowiak22-Mar-07 5:33
mveDave Kreskowiak22-Mar-07 5:33 

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.