unable to refresh ListView
Hi Dalai,I'm really glad to hear that you solved your problem. Well done!Meanwhile, thanks for sharing the solution here for other members.Best RegardsYichun FengPlease remember to mark the replies as...
View Articleunable to refresh ListView
well I really appreciate all your help but I think I have answered my own question ... just tried all of the above, using a different asynchronous broadcasting method (ActiveX) and no problems. so the...
View Articleunable to refresh ListView
also just tried asynchronous broadcasting method (ActiveX) to update a parent TextBox ... Private Sub as_Update(ByVal asDataUT As String) Handles as.Update frmMain.TextBox1.Text = "msg" End Sub and...
View Articleunable to refresh ListView
anyone know of any restrictions, bugs etc. regarding asynchronous broadcasting events?
View Articleunable to refresh ListView
thanks Yichun, yes I have tried activate and much more but if it stems from the asynchronous broadcasting method (ActiveX) as_Update then it will not update the control."If it receives data in rea-time...
View Articleunable to refresh ListView
If it receives data in rea-time without timer, you can just abort using timer.Please remember to mark the replies as answers if they help and unmark them if they provide no help. Welcome to the...
View Articleunable to refresh ListView
Have you try this? PublicSub UpdateWatch(ByVal numb AsInteger, ByVal txt AsString, ByVal type AsString, ByVal dt AsString, ByVal ws AsString) If frmWatch1 IsNothingThenExitSub...
View Articleunable to refresh ListView
thanks Yichun. yes it is a custom event from an ActiveX control. Does the updating show in time now? data is received in real-ttime
View Articleunable to refresh ListView
Hi Dalai,Is it a custom event?Does the updating show in time now?Please remember to mark the replies as answers if they help and unmark them if they provide no help. Welcome to the All-In-One Code...
View Articleunable to refresh ListView
ok Yichun thanks. how can I tell if the event is invoked in the correct way.
View Articleunable to refresh ListView
Hi Dalai,I think that your as.Update event is not invoked.Are you sure this event is invoked it in the correct way?Does the updating show in time now? Please remember to mark the replies as answers if...
View Articleunable to refresh ListView
thanks Heslacher but with or without Timer1.Start() it still doesn't start the timer.
View Articleunable to refresh ListView
Hi Dalai,i think you have also to use Timer1.Start() in your button1_clickMark the thread as answered if the answer helps you. This helps others who have the same problem !
View Articleunable to refresh ListView
trying to find an easier way to demonstrate the problem using just a timer. form1 has an asynchronous broadcasting method (ActiveX) as_Update which receives data every minute. form1 also has Timer1 and...
View Articleunable to refresh ListView
sorry Yichun didn't explain fully .. I am debugging with breakpoints and the sub Timer1_Tick doesn't get called if enabled with as_Update if I enable Timer1 with a button click then it works.
View Articleunable to refresh ListView
Hi Dalai,You should put the method you want to invoke in Timer_Tick or it will do nothing.Have you tried use frmWatch1.Activate()?Best RegardsYichun FengPlease remember to mark the replies as answers...
View Articleunable to refresh ListView
thanks Yichun but I can probably make this easier to demonstrate now (using VB in Visual Studio 2008): form1 has an asynchronous broadcasting method (ActiveX) as_Update which receives data every...
View Articleunable to refresh ListView
Hi Dalai,Let's talk from Arjun's code. You said it worked. (And it also works on my computer when frmChild is the mdichild of frmMain).So have you applied your project like Arjun's code? If you can't...
View Articleunable to refresh ListView
I don`t know. I didn`t posted any question on this forum right now, so i don`t know if you could change the caption of it to "Microsoft / Moderator i need help" :-)Mark the thread as answered if the...
View Articleunable to refresh ListView
i think: yesMark the thread as answered if the answer helps you. This helps others who have the same problem !
View Articleunable to refresh ListView
in frmChild also tried .. Public Delegate Sub updateWatchDelegate(ByRef numb As Integer, ByRef txt As String, ByVal type as String, ByVal dt as String, ByVal ws as String) Dim updateWD As...
View Articleunable to refresh ListView
also tried watchTimer.Enabled = true frmMain.UpdateWatch(numb, txt, type, dt, ws) and the timer didn't work either
View Articleunable to refresh ListView
ok thanks Heslacher I think this is the problem ... testing frmChild's call to frmMain.UpdateWatch(numb, txt, type, dt, ws) works fine except when it is part of a thread triggered by an asynchronous...
View Articleunable to refresh ListView
Hi Dalai,i think thats the problem ( ActiveX ), because i have searched yesterday about this problem and found something about ActiveX. Unfourtunately i don`t know where anymore. :-(Good luckMark the...
View Articleunable to refresh ListView
ok thanks really appreciate all the help. I'm exploring the possibility of a thread/delegate problem. i.e. not supposed to manipulate WinForms controls from a thread other than the control's parent...
View Articleunable to refresh ListView
Sorry Dalai,need to leave, but maybe someone else can help you.Mark the thread as answered if the answer helps you. This helps others who have the same problem !
View Articleunable to refresh ListView
Last try:you have written that you create your frmChild byPublic Sub CreateChild Dim fc1 As New frmChild fc1.MdiParent = MeEnd SubTry to do the Dim outside the Sub !Dim fc1 as New FrmChildPublic...
View Articleunable to refresh ListView
ok thanks Public Sub UpdateWatchList(ByVal numb As Integer, ByVal txt As String, ByVal type as String, ByVal dt as String, ByVal ws as String) Dim x As Integer For x = 0 to...
View Articleunable to refresh ListView
try to insert me.invalidate just before the exit subMark the thread as answered if the answer helps you. This helps others who have the same problem !
View Articleunable to refresh ListView
ok thanks Public Sub UpdateWatchList(ByVal numb As Integer, ByVal txt As String, ByVal type as String, ByVal dt as String, ByVal ws as String) Dim x As Integer For x = 0 to...
View Articleunable to refresh ListView
ok sorry again (need to slow down) ... if in frmChild I use Dim frTestMain As frmMain = Me.MdiParen frTestMain.UpdateWatch(numb, txt, type, dt, ws) then Public Sub UpdateWatchList(ByVal numb As...
View Articleunable to refresh ListView
Maybe you should replace it with lvWatch.Items Mark the thread as answered if the answer helps you. This helps others who have the same problem !
View Articleunable to refresh ListView
ok sorry. fixed the above with Public Sub UpdateWatchList(ByVal numb As Integer, ByVal txt As String, ByVal type as String, ByVal dt as String, ByVal ws as String) If lvWatch.Items.Count >...
View Articleunable to refresh ListView
sorry last response wrong. when I useDim frTestMain As frmMain = Me .MdiParen frTestMain.UpdateWatch(numb, txt, type, dt, ws) in frmChild, it drops out as shown Public Sub UpdateWatchList(ByVal numb...
View Articleunable to refresh ListView
ok thanks. tried that and still no joy. subitems get set to new value but no display update on refresh
View Articleunable to refresh ListView
Hi Dalai,change in Arjuns Code fromPublicClass frmChildPrivateSub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Monitor(5, "Tst", "ItemType", "DT",...
View Articleunable to refresh ListView
ok thanks yes your project does work. also if I use a temp call to Public Sub UpdateWatch(ByVal numb As Integer, ByVal txt As String, ByVal type as String, ByVal dt as String, ByVal ws as String)...
View Articleunable to refresh ListView
ok 1) in frmMain I have Public Sub CreateChild Dim fc1 As New frmChild fc1.MdiParent = Me End Sub 2) frmWatch is not mdi child 3) frmChild is mdichild 4) if I activate frmWatch with a mouse click...
View Articleunable to refresh ListView
Hi again,i think you should provide a little more information like:- where do you declare the form variables like "Dim fc1 As New frmChild"- which forms are mdichildren like is frmWatch1 a mdichildren...
View Articleunable to refresh ListView
ok thanks will give this a try but only difference is ....frmMain isMDIContainer = true Dim fc1 As New frmChild fc1.MdiParent = Me
View Articleunable to refresh ListView
I tested your code and result is fine, following is the test codeFrmMainPublic Class frmmain Private frmWatch1 As frmWatch Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As...
View Articleunable to refresh ListView
Hi,replace frmWatch.Activate with frmWatch1.ActivateMark the thread as answered if the answer helps you. This helps others who have the same problem !
View Articleunable to refresh ListView
it appears that if an "Activated" event is created by a mouse click then ListView is updated. but if I try in frmMain Public Sub UpdateWatch(ByVal numb As Integer, ByVal txt As String, ByVal type as...
View Articleunable to refresh ListView
ok sorry my last comment was not quite right ... the SubItems in UpdateWatchList take on the new values but just not displayed. to display I need to mouse click a frmChild and then mouse click...
View Articleunable to refresh ListView
Hi Dalai,Please post some infomation about the exception.I have tried this, and it works well:PublicClass Form1Dim f2 As Form2PrivateSub Form1_Load(ByVal sender As System.Object, ByVal e As...
View Articleunable to refresh ListView
ok thanks. the SubItems in UpdateWatchList take on the new values but just not displayed. to display I need to mouse click a frmChild and then mouse click frmWatch.Dim frmOwner as...
View Articleunable to refresh ListView
I suspect this partPublic Class frmChild Public Sub Monitor(ByVal numb As Integer, ByVal txt As String, ByVal type as String, ByVal dt as String, ByVal ws as String) frmMain.UpdateWatch(numb,...
View Article
More Pages to Explore .....