Click here to Skip to main content
16,005,281 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Can i develope Client Server Application with access Pin
rwestgraham12-Apr-05 8:31
rwestgraham12-Apr-05 8:31 
GeneralRe: Can i develope Client Server Application with access Pin
Dave Kreskowiak12-Apr-05 9:08
mveDave Kreskowiak12-Apr-05 9:08 
GeneralRe: Can i develope Client Server Application with access Pin
rwestgraham12-Apr-05 9:57
rwestgraham12-Apr-05 9:57 
GeneralRe: Can i develope Client Server Application with access Pin
Dave Kreskowiak12-Apr-05 12:24
mveDave Kreskowiak12-Apr-05 12:24 
GeneralRe: Can i develope Client Server Application with access Pin
rwestgraham12-Apr-05 14:15
rwestgraham12-Apr-05 14:15 
AnswerRe: Can i develope Client Server Application with access Pin
Abhaypppppppppp12-Apr-05 2:10
sussAbhaypppppppppp12-Apr-05 2:10 
AnswerRe: Can i develope Client Server Application with access Pin
vertig073012-Apr-05 4:10
vertig073012-Apr-05 4:10 
GeneralProblems Displaying Forms Pin
Chris Quick11-Apr-05 18:10
Chris Quick11-Apr-05 18:10 
I am creating an application that will create a notify window similar to outlook 2003 notify popup. I am making an asyncronous remoting call using system.thread that raises an event to show the form. However, the form shows up as a black box and then immediately disappears when the event is called. If I call the function through a menu item or button, it works fine. Here's the popup code:

Private Sub ATU_RetrieveDone(ByVal e As AsyncUpdater.AsyncUpdaterEventArgs) Handles ATU.RetrieveDone
    Me.UpdateTimer.Enabled = False
    If e.Forums Is Nothing Then
        UpdateTopicListView(e.Results) ' Updates a list view and
                                       ' displays the popup.
    Else
        UpdateForumListView(e.Forums)
    End If
    Me.UpdateTimer.Enabled = True
End Sub

Private Sub UpdateTopicListView(ByVal Topics As ResultsCollection)
    For index As Integer = 0 To Topics.Count - 1
        ...
    Next
    Dim Message As String
    Message = "{0} new topic updates have been retrieved from {1}"
    Me.ShowPopup(String.Format(Message, Topics.Count, ClientSettings.WebURL))
End Sub


Private Sub ShowPopup(ByVal Message As String, Optional ByVal TimeOut As Integer = 0)
    Dim displaytime As Integer
    If TimeOut < 1000 Then
        displaytime = ClientSettings.PopupTime * 1000
    Else
        displaytime = TimeOut
    End If
    Dim PW As New PopupWindow
    PW.SetProperties(NewMessagePopup.Blend, Message, displaytime)
    PW.ShowPopup()
End Sub


And here's routine that creates the popup using a seperate windows form.

Public Sub ShowPopup()
    Dim tbl As TaskBarLocation
    Dim workingArea As Rectangle
    Dim pt As Point

    pt = New Point
    pt.X = 0 : pt.Y = 0

    workingArea = SystemInformation.WorkingArea
    tbl = GetTaskBarLocation() ' Gets an enumerator
                               ' indicating the windows task bar
                               ' location.

    Select Case tbl
        Case TaskBarLocation.Bottom
            pt.X = workingArea.Right - Me.Width
            pt.Y = workingArea.Bottom - Me.Height
        Case TaskBarLocation.Left
            pt.X = workingArea.Left
            pt.Y = workingArea.Bottom - Me.Height
        Case TaskBarLocation.Right
            pt.X = workingArea.Right - Me.Width
            pt.Y = workingArea.Bottom - Me.Height
        Case TaskBarLocation.Top
            pt.X = workingArea.Right - Me.Width
            pt.Y = workingArea.Top
    End Select

    Me.Visible = False
    Me.Show()
    Me.Top = pt.Y
    Me.Left = pt.X
    Me.Visible = True
    tmrStartFade.Enabled = True ' Wait until elapsed to begin form fadeout
End Sub


Any ideas why this might be occuring?

Thanks!
GeneralRe: Problems Displaying Forms Pin
Chris Quick12-Apr-05 3:35
Chris Quick12-Apr-05 3:35 
Generalvb6 - SQL via IP Pin
mike2k511-Apr-05 16:03
mike2k511-Apr-05 16:03 
GeneralRe: vb6 - SQL via IP Pin
Dave Kreskowiak12-Apr-05 4:05
mveDave Kreskowiak12-Apr-05 4:05 
GeneralRe: vb6 - SQL via IP Pin
mike2k512-Apr-05 5:59
mike2k512-Apr-05 5:59 
GeneralRe: vb6 - SQL via IP Pin
mike2k512-Apr-05 6:33
mike2k512-Apr-05 6:33 
GeneralRe: vb6 - SQL via IP Pin
Dave Kreskowiak12-Apr-05 6:48
mveDave Kreskowiak12-Apr-05 6:48 
GeneralReading a parallel port - Status Register Pin
add_23_200511-Apr-05 12:59
add_23_200511-Apr-05 12:59 
GeneralRe: Reading a parallel port - Status Register Pin
vertig073011-Apr-05 13:10
vertig073011-Apr-05 13:10 
GeneralRe: Reading a parallel port - Status Register Pin
Anonymous11-Apr-05 16:47
Anonymous11-Apr-05 16:47 
GeneralRe: Reading a parallel port - Status Register Pin
Anonymous11-Apr-05 16:50
Anonymous11-Apr-05 16:50 
GeneralRe: Reading a parallel port - Status Register Pin
Anonymous11-Apr-05 17:07
Anonymous11-Apr-05 17:07 
GeneralIntelligent graphic image analysis and comparison Pin
tempgp11-Apr-05 12:02
tempgp11-Apr-05 12:02 
QuestionCan someone please Help! Pin
joseuri2111-Apr-05 11:15
joseuri2111-Apr-05 11:15 
AnswerRe: Can someone please Help! Pin
vertig073011-Apr-05 13:08
vertig073011-Apr-05 13:08 
AnswerRe: Can someone please Help! Pin
Dave Kreskowiak11-Apr-05 16:48
mveDave Kreskowiak11-Apr-05 16:48 
GeneralShellExecute API Pin
Lisana11-Apr-05 10:26
Lisana11-Apr-05 10:26 
GeneralRe: ShellExecute API Pin
shinay11-Apr-05 10:49
shinay11-Apr-05 10:49 

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.