Paul Fountain
                                            
                                    
    Top achievements
    
            
                
                Rank 1
            
    
                                        
                                        Paul Fountain
                                        asked on 29 Nov 2010, 11:51 PM
                                    
                                I would like a ToolWindow to always stay on top when it is floating.  I don't see a property for AlwaysOnTop or TopMost on the ToolWindow class, so does anybody out there have some sneaky code that allows you to do this?
                                6 Answers, 1 is accepted
0
                                Accepted
                                                    Richard Slade
                                                    
                                            
    Top achievements
    
            
                
                Rank 2
            
    
                                                
                                                answered on 30 Nov 2010, 12:12 PM
                                            
                                        Hi Paul, 
This should do that for you. 
Hope this helps
richard
Private Sub RadDock1_FloatingWindowCreated(ByVal sender As System.Object, ByVal e As Telerik.WinControls.UI.Docking.FloatingWindowEventArgs) Handles RadDock1.FloatingWindowCreated     e.Window.TopMost = TrueEnd Sub0
                                
                                                    Paul Fountain
                                                    
                                            
    Top achievements
    
            
                
                Rank 1
            
    
                                                
                                                answered on 30 Nov 2010, 08:42 PM
                                            
                                        That worked perfectly Richard, thank you.
                                        0
                                
                                                    kris
                                                    
                                            
    Top achievements
    
            
                
                Rank 1
            
    
                                                
                                                answered on 27 Jan 2011, 11:17 PM
                                            
                                        We are using the TopMost and have run into a problem, the dock/toolwindow are in Excel in our application. When setting TopMost, the window truly stays TopMost - above ALL windows on my Win7 box. Is there some other way to keep the ToolWindow on top of the parent application?
Thanks
                                        Thanks
0
                                
                                                    Richard Slade
                                                    
                                            
    Top achievements
    
            
                
                Rank 2
            
    
                                                
                                                answered on 27 Jan 2011, 11:35 PM
                                            
                                        Hello, 
As far as I'm aware, TopMost is the only property that you can set in this instance.
Regards,
Richard
                                        As far as I'm aware, TopMost is the only property that you can set in this instance.
Regards,
Richard
0
                                
                                                    kris
                                                    
                                            
    Top achievements
    
            
                
                Rank 1
            
    
                                                
                                                answered on 01 Feb 2011, 10:34 PM
                                            
                                        So my solution was to set the new window to TopMost, then SendToBack the other window that was TopMost, then BringToFront the new window. This puts all these windows in the correct order except they all float on top of other application windows. Sounds like MS need to have a TopMost just for the application.
                                        0
                                
                                                    Richard Slade
                                                    
                                            
    Top achievements
    
            
                
                Rank 2
            
    
                                                
                                                answered on 01 Feb 2011, 10:36 PM
                                            
                                        Glad that you have found a workaround Kris. 
Regards,
Richard
                                        Regards,
Richard