frmInicio.vb 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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 InicializarDisenioDeControles()
  7. 'Me.FormBorderStyle = FormBorderStyle.None
  8. 'Me.pnlCuerpo.Dock = DockStyle.Fill
  9. End Sub
  10. Sub FormularioHijo(frmHijo As Form)
  11. 'If Me.pnlCuerpo.Controls.Count > 0 Then
  12. ' Me.pnlCuerpo.Controls.RemoveAt(0)
  13. 'End If
  14. 'frmHijo.TopLevel = False
  15. ''frmHijo.FormBorderStyle = FormBorderStyle.None
  16. 'frmHijo.Dock = DockStyle.Fill
  17. 'Me.pnlCuerpo.Controls.Add(frmHijo)
  18. 'Me.pnlCuerpo.Tag = frmHijo
  19. 'frmHijo.FormBorderStyle = FormBorderStyle.None
  20. 'frmHijo.BackColor = System.Drawing.Color.WhiteSmoke
  21. 'frmHijo.Show()
  22. frmHijo.MdiParent = Me
  23. frmHijo.Show()
  24. End Sub
  25. Private Sub btnPropuestaDeInversion_Click(sender As Object, e As EventArgs) Handles btnPropuestaDeInversion.Click
  26. End Sub
  27. Private Sub btnMinimizar_Click(sender As Object, e As EventArgs)
  28. Me.WindowState = FormWindowState.Minimized
  29. End Sub
  30. Private Sub btnCerrar_Click(sender As Object, e As EventArgs)
  31. Me.Close()
  32. End Sub
  33. Private Sub frmInicio_Load(sender As Object, e As EventArgs) Handles MyBase.Load
  34. InicializarDisenioDeControles()
  35. 'FormularioHijo(frmDashboards)
  36. 'frmDashboards_tmp.MdiParent = Me
  37. 'frmDashboards.WindowState = FormWindowState.Maximized
  38. 'frmDashboards.FormBorderStyle = FormBorderStyle.FixedToolWindow
  39. 'frmDashboards_tmp.Show()
  40. End Sub
  41. Private Sub pnlEncabezado_MouseDown(sender As Object, e As MouseEventArgs)
  42. ArrastrarVentana = True
  43. mousex = Cursor.Position.X - Me.Left
  44. mousey = Cursor.Position.Y - Me.Top
  45. End Sub
  46. Private Sub pnlEncabezado_MouseMove(sender As Object, e As MouseEventArgs)
  47. If ArrastrarVentana Then
  48. Me.Top = Cursor.Position.Y - mousey
  49. Me.Left = Cursor.Position.X - mousex
  50. End If
  51. End Sub
  52. Private Sub pnlEncabezado_MouseUp(sender As Object, e As MouseEventArgs)
  53. ArrastrarVentana = False
  54. End Sub
  55. Private Sub pnlEncabezado_DoubleClick(sender As Object, e As EventArgs)
  56. 'Me.WindowState = FormWindowState.Normal
  57. End Sub
  58. Private Sub btnInicio_Click(sender As Object, e As EventArgs)
  59. 'FormularioHijo(frmDashboards_tmp)
  60. End Sub
  61. Private Sub btnInverntario_Click(sender As Object, e As EventArgs) Handles btnInverntario.Click
  62. 'FormularioHijo(frmInversiones_Buscar)
  63. 'Me.FormularioActivo = frmINV
  64. 'Aplicacion.FormularioHijo(FormularioActivo)
  65. End Sub
  66. Private Sub btnDisponibilidades_Click(sender As Object, e As EventArgs) Handles btnDisponibilidades.Click
  67. 'FormularioHijo(frmDisponibilidades)
  68. End Sub
  69. Private Sub PictureBox3_Click(sender As Object, e As EventArgs)
  70. FormularioHijo(Me.FormularioActivo)
  71. frmPropuestasDeInversion.Modo = "B"
  72. End Sub
  73. Private Sub btnInteractiveBrokers_Click(sender As Object, e As EventArgs) Handles btnInteractiveBrokers.Click
  74. FormularioHijo(frmInteractiveBrokers)
  75. End Sub
  76. Private Sub btnInicio_Click_1(sender As Object, e As EventArgs) Handles btnInicio.Click
  77. 'FormularioHijo(frmDashboards)
  78. End Sub
  79. Private Sub pnlCuerpo_Paint(sender As Object, e As PaintEventArgs)
  80. End Sub
  81. Private Sub Button2_Click(sender As Object, e As EventArgs)
  82. frmBuscarDeLista.Show()
  83. End Sub
  84. Private Sub StatusStrip1_ItemClicked(sender As Object, e As ToolStripItemClickedEventArgs) Handles StatusStrip1.ItemClicked
  85. End Sub
  86. End Class