Form from a DLL in wrong monitor

  • Thread starter Thread starter Alex Cote
  • Start date Start date
A

Alex Cote

Guest
Hi,

so I have this little DLL of mine that act as a notification window. Everything works fine except for one thing I can't figure out.

When using more than one monitor I want to make to display the notification in the same monitor as the program calling this DLL sub.

So in my DLL I have this subroutine that display the window/form:

Private Sub ShowingTheNotification(msgIcon As InfoIcon, winOwner As Object)
_frm.BackColor = GetTheBorderColor(_PanelBorderColor)

Select Case msgIcon
Case InfoIcon.InformationIcon
_picInfo.Image = My.Resources.info

Case InfoIcon.GreenCheckIcon
_picInfo.Image = My.Resources.GreenCheck

Case InfoIcon.WarningIcon
_picInfo.Image = My.Resources.warning

Case InfoIcon.ErrorIcon
_picInfo.Image = My.Resources._error

Case Else
_picInfo.Image = My.Resources.info
End Select

FadeOut = False
_frm.Show()
_frm.BringToFront()
_frm.Opacity = 0.0
TimerFade.Start()
End Sub

How can I get the caller monitor/screen and set my DLL to display in that same screen?

... been googling a lot without any chance.

Thanks

Continue reading...
 
Back
Top