Click here to Skip to main content
15,912,329 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralFormula Evaluation in C# / Reports Pin
Brady Kelly21-Oct-09 6:43
Brady Kelly21-Oct-09 6:43 
GeneralRe: Formula Evaluation in C# / Reports Pin
Abhishek Sur24-Oct-09 7:34
professionalAbhishek Sur24-Oct-09 7:34 
QuestionThe virtual path '/Templates/mysite/Main.master' maps to another application, which is not allowed Pin
uttam201020-Oct-09 23:21
uttam201020-Oct-09 23:21 
AnswerRe: The virtual path '/Templates/mysite/Main.master' maps to another application, which is not allowed Pin
Not Active21-Oct-09 4:07
mentorNot Active21-Oct-09 4:07 
QuestionOle DB command not working Pin
W4Rl0CK4720-Oct-09 10:00
W4Rl0CK4720-Oct-09 10:00 
QuestionProblems with VB6 Winsock connection and Senddata Pin
she-Developer20-Oct-09 4:58
she-Developer20-Oct-09 4:58 
AnswerRe: Problems with VB6 Winsock connection and Senddata Pin
dan!sh 20-Oct-09 7:20
professional dan!sh 20-Oct-09 7:20 
AnswerRe: Problems with VB6 Winsock connection and Senddata Pin
Eddy Vluggen20-Oct-09 10:50
professionalEddy Vluggen20-Oct-09 10:50 
VB6 has some rudimentary error-handling. Wait a sec, try to connect, and if it fails then try again in two seconds. Repeat for three to five times, and show a message that there's connectivity-problems if you cannot connect after that.

I haven't got a VB6-IDE at home, but this should give you a basic idea;
Private Sub WaitForAwhile(howLong as Int)
  Dim currentTime
  currentTime = timeGetTime
  While (timeGetTime - currentTime) < howLong
    DoEvents
  Wend
End Sub
This should allow a pauze while processing continues. Next, to the connection-routine;
Private Sub TryConnect()
  On Error Goto myErrorHandler
  Dim Tries%
  Tries% = 0

TryAgain:
  Winsock1.Connect
  WaitForAwhile(1000)  
  Winsock1.SendData ("I will gladly beam down to the planet, Captain!")
  Exit Sub

myErrorHandler:
  Tries% = Tries% + 1
  If Tries% < 5 Then
    Goto TryAgain
  Else
    MsgBox "Cannot connect, try the sneakernet :)"
  End If
End Sub


I are Troll Smile | :)

GeneralRe: Problems with VB6 Winsock connection and Senddata Pin
she-Developer20-Oct-09 21:40
she-Developer20-Oct-09 21:40 
GeneralRe: Problems with VB6 Winsock connection and Senddata Pin
Eddy Vluggen20-Oct-09 22:45
professionalEddy Vluggen20-Oct-09 22:45 
AnswerRe: Problems with VB6 Winsock connection and Senddata [modified] Pin
MatthysDT21-Oct-09 20:33
MatthysDT21-Oct-09 20:33 
QuestionProblem serializing to SOAP when using System.Object [modified] Pin
annathor20-Oct-09 1:36
annathor20-Oct-09 1:36 
QuestionInterop Questions Pin
#realJSOP20-Oct-09 1:02
professional#realJSOP20-Oct-09 1:02 
AnswerRe: Interop Questions Pin
NormDroid20-Oct-09 1:35
professionalNormDroid20-Oct-09 1:35 
GeneralRe: Interop Questions Pin
#realJSOP20-Oct-09 3:49
professional#realJSOP20-Oct-09 3:49 
AnswerRe: Interop Questions Pin
freakyit20-Oct-09 1:35
freakyit20-Oct-09 1:35 
AnswerRe: Interop Questions Pin
Richard MacCutchan20-Oct-09 1:36
mveRichard MacCutchan20-Oct-09 1:36 
QuestionOracle 10 g user id passwords Pin
manish.m.meshram19-Oct-09 18:30
manish.m.meshram19-Oct-09 18:30 
QuestionHow to get Default Mail Application name? (like microsoft office outlook) Pin
CeremBeyazit19-Oct-09 12:39
CeremBeyazit19-Oct-09 12:39 
AnswerRe: How to get Default Mail Application name? (like microsoft office outlook) Pin
N a v a n e e t h19-Oct-09 16:40
N a v a n e e t h19-Oct-09 16:40 
QuestionUnusual Problem: Listbox Not Updating Pin
raineym19-Oct-09 7:50
raineym19-Oct-09 7:50 
AnswerRe: Unusual Problem: Listbox Not Updating Pin
Luc Pattyn19-Oct-09 7:57
sitebuilderLuc Pattyn19-Oct-09 7:57 
GeneralRe: Unusual Problem: Listbox Not Updating [modified] Pin
raineym19-Oct-09 8:52
raineym19-Oct-09 8:52 
GeneralRe: Unusual Problem: Listbox Not Updating Pin
Luc Pattyn19-Oct-09 9:11
sitebuilderLuc Pattyn19-Oct-09 9:11 
GeneralRe: Unusual Problem: Listbox Not Updating Pin
raineym19-Oct-09 10:34
raineym19-Oct-09 10:34 

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.