Home All Groups Group Topic Archive Search About
Author
31 Jul 2006 12:20 PM
Bharathi kumar
Hi,

          I have 4 threads running in my windows application. (No. of
threads may increase also)

My application is  an Inventory Management appln.

Customers will place orders, Trade center will serve customer orders,
Warehouses inturn serve Trade centers orders etc.

Customer activities will be running in one thread, Trade center
activities will be running in another thread and Warehouses activities
will be running in another thread.

I have one master thread also that displays the status.

I created user controls for each one (Customer, Retailer, warehouse).
User control displays one image and the inventory values associated
with the entity.

My problem here is while the threads are performing their operation, if
user places mouse on any entity, I should show his current staus in a
tool tip (like baloon help).

In the User control, for mouse over event I added the tool tip code.
But its not showing the tool tip always. When I keep mouse on it for
sometime, sometimes its showing and sometimes its not showing.
Sometimes the tool tip shows immediately when the mouse enters the user
control.

Any ideas please..........

Thanks in advance,
Barti Kumar.

Author
31 Jul 2006 12:33 PM
iwdu15
can you show us how you display the tooltip?
--
-iwdu15
Author
1 Aug 2006 4:15 AM
Bharathi kumar
Hi,
      Please find the code.  RMInvCtrl1 is a user control.

Private Sub RMInvCtrl1_MouseEnter(ByVal sender As Object, ByVal e As
System.EventArgs) Handles RMInvCtrl1.MouseEnter
        If Not RMInvCtrl1.Inventory Is Nothing Then
            ToolTip1.Show(GetToolTipForInvCtrl(RMInvCtrl1.Inventory),
Me, 5000)
        End If
    End Sub


GetToolTipForInvCtrl is a function that returns the current status,

Regards,
Bharti.

iwdu15 wrote:
Show quoteHide quote
> can you show us how you display the tooltip?
> --
> -iwdu15
Author
1 Aug 2006 10:25 AM
Larry Lard
Bharathi kumar wrote:
Show quoteHide quote
> Hi,
>
>           I have 4 threads running in my windows application. (No. of
> threads may increase also)
>
> My application is  an Inventory Management appln.
>
> Customers will place orders, Trade center will serve customer orders,
> Warehouses inturn serve Trade centers orders etc.
>
> Customer activities will be running in one thread, Trade center
> activities will be running in another thread and Warehouses activities
> will be running in another thread.
>
> I have one master thread also that displays the status.
>
> I created user controls for each one (Customer, Retailer, warehouse).
> User control displays one image and the inventory values associated
> with the entity.
>
> My problem here is while the threads are performing their operation, if
> user places mouse on any entity, I should show his current staus in a
> tool tip (like baloon help).

This sounds as if you are sometimes using the UI thread to perform the
work operations. Obviously, if the UI thread is busy, it can't fire the
events that your code listens for to display tooltips etc. To keep all
your UI elements responsive, you need to make sure the UI thread is
never busy.

> In the User control, for mouse over event I added the tool tip code.
> But its not showing the tool tip always. When I keep mouse on it for
> sometime, sometimes its showing and sometimes its not showing.
> Sometimes the tool tip shows immediately when the mouse enters the user
> control.


--
Larry Lard
larryl***@googlemail.com
The address is real, but unread - please reply to the group
For VB and C# questions - tell us which version
Author
2 Aug 2006 4:38 AM
Bharathi kumar
Thank you.


Larry Lard wrote:
Show quoteHide quote
> Bharathi kumar wrote:
> > Hi,
> >
> >           I have 4 threads running in my windows application. (No. of
> > threads may increase also)
> >
> > My application is  an Inventory Management appln.
> >
> > Customers will place orders, Trade center will serve customer orders,
> > Warehouses inturn serve Trade centers orders etc.
> >
> > Customer activities will be running in one thread, Trade center
> > activities will be running in another thread and Warehouses activities
> > will be running in another thread.
> >
> > I have one master thread also that displays the status.
> >
> > I created user controls for each one (Customer, Retailer, warehouse).
> > User control displays one image and the inventory values associated
> > with the entity.
> >
> > My problem here is while the threads are performing their operation, if
> > user places mouse on any entity, I should show his current staus in a
> > tool tip (like baloon help).
>
> This sounds as if you are sometimes using the UI thread to perform the
> work operations. Obviously, if the UI thread is busy, it can't fire the
> events that your code listens for to display tooltips etc. To keep all
> your UI elements responsive, you need to make sure the UI thread is
> never busy.
>
> > In the User control, for mouse over event I added the tool tip code.
> > But its not showing the tool tip always. When I keep mouse on it for
> > sometime, sometimes its showing and sometimes its not showing.
> > Sometimes the tool tip shows immediately when the mouse enters the user
> > control.
>
>
> --
> Larry Lard
> larryl***@googlemail.com
> The address is real, but unread - please reply to the group
> For VB and C# questions - tell us which version