Click here to Skip to main content
15,909,741 members
Home / Discussions / Windows Forms
   

Windows Forms

 
Generalnewbie in Crystal report Pin
wasimsharp21-Jan-08 1:14
wasimsharp21-Jan-08 1:14 
QuestionUserControl Event Handling in C#2.0 WinForm? Pin
nabeelkhan20-Jan-08 18:59
nabeelkhan20-Jan-08 18:59 
Generaldatagridview problem Pin
Naresh12345678919-Jan-08 0:27
Naresh12345678919-Jan-08 0:27 
QuestionHow to call code from a class in the form1.h [modified] Pin
thenewboy18-Jan-08 3:41
thenewboy18-Jan-08 3:41 
AnswerRe: How to call code from a class in the form1.h Pin
LongRange.Shooter1-Feb-08 9:43
LongRange.Shooter1-Feb-08 9:43 
GeneralRecommed timeline editor component Pin
Robin16-Jan-08 17:46
Robin16-Jan-08 17:46 
GeneralHiding a dialog form without it returning from ShowDialog() Pin
Jabes16-Jan-08 3:14
Jabes16-Jan-08 3:14 
GeneralRe: Hiding a dialog form without it returning from ShowDialog() Pin
John_Adams16-Jan-08 23:21
John_Adams16-Jan-08 23:21 
Hi,

You may try using timer control and an integer/long type FLAG to achieve this instead of putting it in a loop. Below is the code snippet for the same. The below mentioned code consists of two forms Form1 (which is a main form) and a Dialog form (Dialog1)

-------------------------------------------------------------------------
BEGIN CODE

Public Class Form1

Dim FLAG As Integer = 0 ‘ Declaring a FLAG of integer Type
Dim frm As New Dialog1 ‘ Creatign an object of Dialog Form

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

‘ Setting the timer interval to 10 seconds.

Me.Timer1.Interval = 10000

End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Me.Timer1.Start()
frm.ShowDialog()

End Sub

Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Timer1.Tick

If FLAG < 32500 Then

If FLAG Mod 2 = 0 Then
frm.Hide() '
FLAG += 1
Else
frm.Show()
FLAG += 1
End If

End If
End Sub

End Class

END CODE
-------------------------------------------------------------------------

I hope this helps.

Have a nice day Smile | :) .

Regards,
John Adams
ComponentOne LLC

GeneralRe: Hiding a dialog form without it returning from ShowDialog() Pin
Luc Pattyn16-Jan-08 23:40
sitebuilderLuc Pattyn16-Jan-08 23:40 
GeneralRe: Hiding a dialog form without it returning from ShowDialog() Pin
Jabes17-Jan-08 3:19
Jabes17-Jan-08 3:19 
Generaldatagridview problem Pin
Naresh12345678915-Jan-08 18:55
Naresh12345678915-Jan-08 18:55 
GeneralRe: datagridview problem Pin
John_Adams15-Jan-08 23:05
John_Adams15-Jan-08 23:05 
GeneralRe: datagridview problem Pin
Naresh12345678916-Jan-08 20:40
Naresh12345678916-Jan-08 20:40 
GeneralRe: datagridview problem Pin
Naresh12345678919-Jan-08 0:07
Naresh12345678919-Jan-08 0:07 
QuestionHow to implement a usb hub driver? Pin
qiulin682215-Jan-08 14:24
qiulin682215-Jan-08 14:24 
AnswerRe: How to implement a usb hub driver? Pin
LongRange.Shooter1-Feb-08 9:48
LongRange.Shooter1-Feb-08 9:48 
QuestionHow to Call SSIS Package From Asp.net With C# Pin
mrgaddam14-Jan-08 18:15
mrgaddam14-Jan-08 18:15 
AnswerRe: How to Call SSIS Package From Asp.net With C# Pin
Pete O'Hanlon15-Jan-08 9:49
mvePete O'Hanlon15-Jan-08 9:49 
QuestionHow to determine Win32 API Window States like "covered by a modal sub window" or the "active parent window" via Win 32 API [modified] Pin
schwiemn14-Jan-08 11:38
schwiemn14-Jan-08 11:38 
QuestionA Beginners Thread Pin
bharathi_n_r11-Jan-08 20:16
bharathi_n_r11-Jan-08 20:16 
GeneralRe: A Beginners Thread Pin
Abhijit Jana13-Jan-08 1:19
professionalAbhijit Jana13-Jan-08 1:19 
GeneralRe: A Beginners Thread Pin
LongRange.Shooter1-Feb-08 9:50
LongRange.Shooter1-Feb-08 9:50 
QuestionHow to remotely connect multiple PCs(Windows OS based) computers from a single Mac Pin
ctrlnick11-Jan-08 7:16
ctrlnick11-Jan-08 7:16 
AnswerRe: How to remotely connect multiple PCs(Windows OS based) computers from a single Mac Pin
LongRange.Shooter1-Feb-08 9:52
LongRange.Shooter1-Feb-08 9:52 
QuestionHow to control attribute initialization order for controls? Pin
RichardM110-Jan-08 11:32
RichardM110-Jan-08 11:32 

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.