Click here to Skip to main content
15,917,997 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionlistview Pin
johnny19639-Jan-07 21:01
johnny19639-Jan-07 21:01 
AnswerRe: listview Pin
johnny196310-Jan-07 0:45
johnny196310-Jan-07 0:45 
GeneralRe: listview Pin
johnny196311-Jan-07 6:58
johnny196311-Jan-07 6:58 
Questionglobalization/localization Pin
tawiskid099-Jan-07 19:50
tawiskid099-Jan-07 19:50 
AnswerRe: globalization/localization Pin
testy_proconsul9-Jan-07 21:24
testy_proconsul9-Jan-07 21:24 
QuestionGet and Set property in vb.net Pin
amaneet9-Jan-07 19:24
amaneet9-Jan-07 19:24 
AnswerRe: Get and Set property in vb.net Pin
Christian Graus9-Jan-07 20:24
protectorChristian Graus9-Jan-07 20:24 
AnswerRe: Get and Set property in vb.net Pin
Guffa9-Jan-07 22:51
Guffa9-Jan-07 22:51 
AnswerRe: Get and Set property in vb.net Pin
Dave Kreskowiak10-Jan-07 5:09
mveDave Kreskowiak10-Jan-07 5:09 
QuestionI want to get the .txt and .Doc file's contents. Pin
somagunasekaran9-Jan-07 19:08
somagunasekaran9-Jan-07 19:08 
AnswerRe: I want to get the .txt and .Doc file's contents. Pin
Christian Graus9-Jan-07 20:27
protectorChristian Graus9-Jan-07 20:27 
GeneralRe: I want to get the .txt and .Doc file's contents. Pin
somagunasekaran9-Jan-07 23:33
somagunasekaran9-Jan-07 23:33 
GeneralRe: I want to get the .txt and .Doc file's contents. Pin
Christian Graus10-Jan-07 0:22
protectorChristian Graus10-Jan-07 0:22 
QuestionMy.Settings question Pin
sa_runner9-Jan-07 19:06
sa_runner9-Jan-07 19:06 
AnswerRe: My.Settings question Pin
Johan Hakkesteegt11-Jan-07 3:37
Johan Hakkesteegt11-Jan-07 3:37 
Questiondatabase tables search in vb.net Pin
amaneet9-Jan-07 18:42
amaneet9-Jan-07 18:42 
AnswerRe: database tables search in vb.net Pin
testy_proconsul10-Jan-07 0:00
testy_proconsul10-Jan-07 0:00 
GeneralRe: database tables search in vb.net Pin
amaneet10-Jan-07 0:35
amaneet10-Jan-07 0:35 
GeneralRe: database tables search in vb.net Pin
testy_proconsul10-Jan-07 1:25
testy_proconsul10-Jan-07 1:25 
QuestionStrange FileWatch problem? Pin
rudemusik9-Jan-07 18:00
rudemusik9-Jan-07 18:00 
Hello All!

I have two applications in a solution. ServerA and ClientB lets say. I need to be able to open a form on ClientB from ServerA. SoI'm using a Filewatch to do this. First I create a file in the watched folder. I'm doing this by a button click event on ServerA.

Dim TimeStamp As String = Guid.NewGuid.GetHashCode<br />
        Dim TempFile As String = "C:\PlayC\Qtr2\"<br />
             Dim ext As String = ".out"<br />
        Dim FileName As String = TempFile & TimeStamp & ext<br />
           Dim fs As New FileStream(FileName, FileMode.Create)<br />
        fs.Close()<br />
     End Sub

The my Filewatch is like this on ClientB.

AddHandler NKWatch.Created, AddressOf NKWatch_Created<br />
       Try<br />
           NKWatch.Path = "C:\PlayC\Qtr2"<br />
           NKWatch.Filter = "*.out"<br />
           '' NKWatch.IncludeSubdirectories = False<br />
           NKWatch.EnableRaisingEvents = True<br />
       Catch ERR As Exception<br />
           MessageBox.Show(ERR.Message)<br />
       End Try

Then the response once a file gets created in the folder.

Public Sub NKWatch_Created(ByVal sender As Object, ByVal e As System.IO.FileSystemEventArgs)<br />
               Dim frmFour As New frm4th<br />
               <br />
        Me.Hide()<br />
                           frmFour.Show()<br />
            frmFour.GetUID(Me)<br />
   Application.DoEvents()<br />
End Sub


So when my form shows up, it displays, but then freezes up on me. I use to get a white screen when the form came up, but I put in Application.DoEvents, and that seem to help.
I even tried just a plain form with a couple of buttons.
But if I try a message box, it works perfect.

Am I missing something? Any thougts on this, and how I may get this to work? I try to get debug it, but I can't find anything. The server A form is pretty simple, the clientB form has alot of stuff going on, that why I tried a simple blank form. But the same results.
I have two clientB forms, prety much the same, except diffrent labels for the buttons.

Thanks!
Rudy
AnswerRe: Strange FileWatch problem? Pin
Johan Hakkesteegt11-Jan-07 3:28
Johan Hakkesteegt11-Jan-07 3:28 
GeneralRe: Strange FileWatch problem? Pin
rudemusik11-Jan-07 7:05
rudemusik11-Jan-07 7:05 
QuestionHow to redirect IP..? Pin
stupix9-Jan-07 16:45
stupix9-Jan-07 16:45 
AnswerRe: How to redirect IP..? Pin
Dave Kreskowiak9-Jan-07 17:25
mveDave Kreskowiak9-Jan-07 17:25 
GeneralRe: How to redirect IP..? Pin
stupix9-Jan-07 18:07
stupix9-Jan-07 18:07 

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.