hi i searched a lot in the forums but really i can't find a proper solution
what i am trying to do is simple
i have a forms splitted in 2, left side is a navigation bar (imagine something like outlook) and right side content. now every few seconds with the time i am checking for some data changes, and i wish to display those as notifications.
i have created an AlertControl just by code not on the UI designer, and i am trying to show the alerts on another background thread to prevent UI from freezing.
i tried everything but nothing works, my main UI on the left when the timer checks and trys to desplay the alert its freezes until the alert.show is done.
me.invoke me.begininvoke
i tried calling it like that to force another thread still freezes, i even tried the backgroundworker the same
plz any other ideas? thanks
Open in popup window
Dispatcher.CurrentDispatcher.BeginInvoke(Sub() ShowNotifications())
Open in popup window
Dim AlertC As New DevExpress.XtraBars.Alerter.AlertControl()
With AlertC
.AutoFormDelay = 5000
.FormDisplaySpeed = DevExpress.XtraBars.Alerter.AlertFormDisplaySpeed.Fast
.FormLocation = DevExpress.XtraBars.Alerter.AlertFormLocation.BottomRight
.FormMaxCount = 3
.FormShowingEffect = DevExpress.XtraBars.Alerter.AlertFormShowingEffect.FadeIn
.AllowHotTrack = False
End With
Aucun commentaire:
Enregistrer un commentaire