Click here to Skip to main content
15,895,799 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
QuestionHiding a column in a datagridview Pin
steve_rm9-Jan-07 16:02
steve_rm9-Jan-07 16:02 
AnswerRe: Hiding a column in a datagridview Pin
Dave Kreskowiak9-Jan-07 17:27
mveDave Kreskowiak9-Jan-07 17:27 
GeneralRe: Hiding a column in a datagridview Pin
priya_p23310-Jan-07 0:18
priya_p23310-Jan-07 0:18 
AnswerRe: Hiding a column in a datagridview Pin
amaneet9-Jan-07 23:16
amaneet9-Jan-07 23:16 
QuestionGlobal Variables Pin
jacob.vankley9-Jan-07 14:02
jacob.vankley9-Jan-07 14:02 
AnswerRe: Global Variables Pin
Christian Graus9-Jan-07 14:08
protectorChristian Graus9-Jan-07 14:08 
GeneralRe: Global Variables Pin
jacob.vankley9-Jan-07 15:38
jacob.vankley9-Jan-07 15:38 
GeneralRe: Global Variables Pin
Christian Graus9-Jan-07 16:09
protectorChristian Graus9-Jan-07 16:09 
GeneralRe: Global Variables Pin
Colin Angus Mackay9-Jan-07 22:59
Colin Angus Mackay9-Jan-07 22:59 
GeneralRe: Global Variables Pin
Christian Graus9-Jan-07 23:02
protectorChristian Graus9-Jan-07 23:02 
GeneralRe: Global Variables Pin
Colin Angus Mackay10-Jan-07 2:43
Colin Angus Mackay10-Jan-07 2:43 
AnswerRe: Global Variables Pin
Colin Angus Mackay9-Jan-07 22:57
Colin Angus Mackay9-Jan-07 22:57 

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.