Click here to Skip to main content
15,793,277 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionWinforms VS 2015 Community with encrypted SQLite Pin
Member 1271965811-Jan-17 4:08
Member 1271965811-Jan-17 4:08 
QuestionAddind hide information to a file of NTFS Pin
Alex Can Work4-Jan-17 19:35
Alex Can Work4-Jan-17 19:35 
AnswerRe: Addind hide information to a file of NTFS Pin
Midi_Mick4-Jan-17 20:27
professionalMidi_Mick4-Jan-17 20:27 
GeneralRe: Addind hide information to a file of NTFS Pin
Richard MacCutchan4-Jan-17 23:02
mveRichard MacCutchan4-Jan-17 23:02 
AnswerRe: Addind hide information to a file of NTFS Pin
Richard MacCutchan4-Jan-17 23:02
mveRichard MacCutchan4-Jan-17 23:02 
QuestionWindows server OnTimedEvent Pin
byka24-Oct-16 6:40
byka24-Oct-16 6:40 
AnswerRe: Windows server OnTimedEvent Pin
Eddy Vluggen24-Oct-16 7:13
professionalEddy Vluggen24-Oct-16 7:13 
GeneralRe: Windows server OnTimedEvent Pin
byka24-Oct-16 7:38
byka24-Oct-16 7:38 
Here is what I did:
1.Add new sub: RetryOnTimeout
2. Add retry in Catch.
Is this what you suggested ?

VB
Private Sub OnTimedEvent(source As Object, e As ElapsedEventArgs)
       Try

           RetryOnTimeout(source, e)

       Catch ex As Exception
            While _currentRetry < 3
               RetryOnTimeout(source, e)
               _currentRetry = _currentRetry + 1


           End While
           modCommon.SendEmailExceptionToDev("OnTimedEvent Exception", ex)
           Err.Clear()
End Try

   End Sub
   Private Sub RetryOnTimeout(source As Object, e As ElapsedEventArgs)
       Try

           aTimer.Stop()
           Dim fileName As String = String.Empty

           While queueList.Count > 0
               If _SFTP.Connected = False OrElse _SFTP.SFTPState = Dart.Ssh.ConnectionState.Closed Then
                   _SFTP.Connect()
               End If

               fileName = queueList.Dequeue.ToString
               If Not fileName Is Nothing AndAlso fileName <> String.Empty Then
                   ProcessFile(fileName)
               End If
           End While

           If _SFTP.Connected = True Then
               _SFTP.Disconnect()
           End If

           aTimer.Start()
       Catch ex As Exception
           modCommon.SendEmailExceptionToDev("OnTimedEvent Exception", ex)
           Err.Clear()
       End Try
   End Sub


modified 24-Oct-16 12:45pm.

GeneralRe: Windows server OnTimedEvent Pin
Eddy Vluggen24-Oct-16 8:23
professionalEddy Vluggen24-Oct-16 8:23 
GeneralRe: Windows server OnTimedEvent Pin
byka24-Oct-16 8:26
byka24-Oct-16 8:26 
GeneralRe: Windows server OnTimedEvent Pin
Eddy Vluggen24-Oct-16 8:54
professionalEddy Vluggen24-Oct-16 8:54 
GeneralRe: Windows server OnTimedEvent Pin
bogel bogel11-Dec-16 1:27
bogel bogel11-Dec-16 1:27 
GeneralRe: Windows server OnTimedEvent Pin
Eddy Vluggen11-Dec-16 1:32
professionalEddy Vluggen11-Dec-16 1:32 
QuestionHow to secure local database for windows form c# Deploy Pin
salar136928-Jun-16 7:46
salar136928-Jun-16 7:46 
AnswerRe: How to secure local database for windows form c# Deploy Pin
Eddy Vluggen28-Jun-16 8:06
professionalEddy Vluggen28-Jun-16 8:06 
AnswerRe: How to secure local database for windows form c# Deploy Pin
Eric P Schneider28-Jan-19 11:53
Eric P Schneider28-Jan-19 11:53 
QuestionAdd Code Singning Certificate to Project Setup created using Install Shield in Visual Studio 2012. Pin
Jaimesh.241112-May-16 1:49
Jaimesh.241112-May-16 1:49 
Rant[REPOST] Add Code Singning Certificate to Project Setup created using Install Shield in Visual Studio 2012. Pin
Richard Deeming12-May-16 3:04
mveRichard Deeming12-May-16 3:04 
QuestionWindows Client for my portal. Pin
ashu20014-Mar-16 20:28
ashu20014-Mar-16 20:28 
GeneralRe: Windows Client for my portal. Pin
Richard MacCutchan4-Mar-16 23:12
mveRichard MacCutchan4-Mar-16 23:12 
GeneralRe: Windows Client for my portal. Pin
ashu20017-Mar-16 19:30
ashu20017-Mar-16 19:30 
GeneralRe: Windows Client for my portal. Pin
Richard MacCutchan7-Mar-16 22:56
mveRichard MacCutchan7-Mar-16 22:56 
AnswerRe: Windows Client for my portal. Pin
dan!sh 7-Mar-16 19:59
professional dan!sh 7-Mar-16 19:59 
GeneralRe: Windows Client for my portal. Pin
ashu20018-Mar-16 17:46
ashu20018-Mar-16 17:46 
GeneralRe: Windows Client for my portal. Pin
dan!sh 8-Mar-16 18:30
professional dan!sh 8-Mar-16 18:30 

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.