Advertisement
CryptoJones

Get Top Quote

Jan 11th, 2016
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.30 KB | None | 0 0
  1.   Friend Function GetTopmostQuote() As QuoteForm
  2.     If ActiveMdiChild Is Nothing Then Return Nothing
  3.     Dim f() As Form = MdiChildren
  4.     For x As Integer = f.GetUpperBound(0) To 0 Step -1
  5.       If TypeOf f(x) Is QuoteForm Then Return LastActivatedQuote
  6.     Next
  7.     Return Nothing
  8.   End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement