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

.NET (Core and Framework)

 
General.Net Remoting question - server activated objects Pin
i.chen13-Apr-05 4:09
sussi.chen13-Apr-05 4:09 
GeneralRe: .Net Remoting question - server activated objects Pin
S. Senthil Kumar14-Apr-05 20:53
S. Senthil Kumar14-Apr-05 20:53 
GeneralRe: .Net Remoting question - server activated objects Pin
Anonymous21-Apr-05 0:28
Anonymous21-Apr-05 0:28 
Generalerror when compiling 'System.Xml.XmlException' Pin
yunuskajee12-Apr-05 21:37
yunuskajee12-Apr-05 21:37 
GeneralRe: error when compiling 'System.Xml.XmlException' Pin
Kodanda Pani13-Apr-05 4:28
Kodanda Pani13-Apr-05 4:28 
GeneralRe: error when compiling 'System.Xml.XmlException' Pin
Dave Kreskowiak13-Apr-05 6:22
mveDave Kreskowiak13-Apr-05 6:22 
GeneralRe: error when compiling 'System.Xml.XmlException' Pin
MoustafaS13-Apr-05 15:18
MoustafaS13-Apr-05 15:18 
GeneralPopup Form Class Problems Pin
Chris Quick12-Apr-05 13:06
Chris Quick12-Apr-05 13:06 
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: Popup Form Class Problems Pin
S. Senthil Kumar12-Apr-05 21:53
S. Senthil Kumar12-Apr-05 21:53 
GeneralDotNet reflector Pin
Fad B12-Apr-05 11:50
Fad B12-Apr-05 11:50 
GeneralRe: DotNet reflector Pin
Sebastian Schneider13-Apr-05 1:36
Sebastian Schneider13-Apr-05 1:36 
Generalbidirectional channel .Net Remoting with outbound only firewall Pin
DeepToot12-Apr-05 9:00
DeepToot12-Apr-05 9:00 
GeneralRe: bidirectional channel .Net Remoting with outbound only firewall Pin
Sebastian Schneider13-Apr-05 0:51
Sebastian Schneider13-Apr-05 0:51 
QuestionCaching Block pro's and con's? Pin
J_Dean12-Apr-05 8:07
J_Dean12-Apr-05 8:07 
GeneralO/R mapping Pin
Member 281228412-Apr-05 0:32
Member 281228412-Apr-05 0:32 
QuestionSystem tray icon for windows service? Pin
Nathan Ridley11-Apr-05 14:57
Nathan Ridley11-Apr-05 14:57 
AnswerRe: System tray icon for windows service? Pin
Ray Cassick13-Apr-05 7:47
Ray Cassick13-Apr-05 7:47 
GeneralPerformance issue on drawing Labels Pin
johanhertz10-Apr-05 4:19
johanhertz10-Apr-05 4:19 
GeneralRe: Performance issue on drawing Labels Pin
Sebastian Schneider11-Apr-05 2:41
Sebastian Schneider11-Apr-05 2:41 
GeneralRe: Performance issue on drawing Labels Pin
johanhertz13-Apr-05 8:01
johanhertz13-Apr-05 8:01 
GeneralBorder/Cursor problem Pin
Masaia8-Apr-05 3:16
Masaia8-Apr-05 3:16 
GeneralRe: Border/Cursor problem Pin
MoustafaS12-Apr-05 15:39
MoustafaS12-Apr-05 15:39 
GeneralRe: Border/Cursor problem Pin
[Marc]16-May-05 14:53
[Marc]16-May-05 14:53 
GeneralBinaryWriter/Reader Endian mode Pin
CoderCat7-Apr-05 7:20
CoderCat7-Apr-05 7:20 
GeneralRe: BinaryWriter/Reader Endian mode Pin
Anonymous7-Apr-05 18:54
Anonymous7-Apr-05 18:54 

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.