|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
|
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. 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 Bharathi kumar wrote:
Show quoteHide quote > Hi, This sounds as if you are sometimes using the UI thread to perform the > > 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). 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 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
How to change printer's physical print margins thru VB coding?
2 pieces of the same code doing different things Custom Attributes, Shared methods, Derived classes and reflection How to validate Date entries. Placing a .lnk file on the desktop Font with Bold and italic Sending chr(255) to serial port Going from A to Z How to save iamge in database? Positioning Other Applicaitons |
|||||||||||||||||||||||