frmInicio.vb 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. Public Class frmInicio
  2. Dim ArrastrarVentana As Boolean = False
  3. Dim mousex As Integer
  4. Dim mousey As Integer
  5. Dim FormularioActivo As Form
  6. Sub FormularioHijo(frmHijo As Form)
  7. frmHijo.MdiParent = Me
  8. frmHijo.Show()
  9. End Sub
  10. Private Sub btnPropuestaDeInversion_Click(sender As Object, e As EventArgs) Handles btnPropuestaDeInversion.Click
  11. End Sub
  12. Private Sub btnMinimizar_Click(sender As Object, e As EventArgs)
  13. Me.WindowState = FormWindowState.Minimized
  14. End Sub
  15. Private Sub btnCerrar_Click(sender As Object, e As EventArgs)
  16. Me.Close()
  17. End Sub
  18. Private Sub frmInicio_Load(sender As Object, e As EventArgs) Handles MyBase.Load
  19. End Sub
  20. Private Sub pnlEncabezado_MouseDown(sender As Object, e As MouseEventArgs)
  21. ArrastrarVentana = True
  22. mousex = Cursor.Position.X - Me.Left
  23. mousey = Cursor.Position.Y - Me.Top
  24. End Sub
  25. Private Sub pnlEncabezado_MouseMove(sender As Object, e As MouseEventArgs)
  26. If ArrastrarVentana Then
  27. Me.Top = Cursor.Position.Y - mousey
  28. Me.Left = Cursor.Position.X - mousex
  29. End If
  30. End Sub
  31. Private Sub pnlEncabezado_MouseUp(sender As Object, e As MouseEventArgs)
  32. ArrastrarVentana = False
  33. End Sub
  34. Private Sub pnlEncabezado_DoubleClick(sender As Object, e As EventArgs)
  35. End Sub
  36. Private Sub btnInicio_Click(sender As Object, e As EventArgs)
  37. End Sub
  38. Private Sub btnInverntario_Click(sender As Object, e As EventArgs) Handles btnInverntario.Click
  39. End Sub
  40. Private Sub btnDisponibilidades_Click(sender As Object, e As EventArgs) Handles btnDisponibilidades.Click
  41. End Sub
  42. Private Sub PictureBox3_Click(sender As Object, e As EventArgs)
  43. FormularioHijo(Me.FormularioActivo)
  44. frmPropuestasDeInversion.Modo = "B"
  45. End Sub
  46. Private Sub btnInteractiveBrokers_Click(sender As Object, e As EventArgs) Handles btnInteractiveBrokers.Click
  47. FormularioHijo(frmInteractiveBrokers)
  48. End Sub
  49. Private Sub btnInicio_Click_1(sender As Object, e As EventArgs) Handles btnInicio.Click
  50. End Sub
  51. Private Sub pnlCuerpo_Paint(sender As Object, e As PaintEventArgs)
  52. End Sub
  53. Private Sub Button2_Click(sender As Object, e As EventArgs)
  54. frmBuscarDeLista.Show()
  55. End Sub
  56. Private Sub StatusStrip1_ItemClicked(sender As Object, e As ToolStripItemClickedEventArgs) Handles StatusStrip1.ItemClicked
  57. End Sub
  58. End Class