Jump to content
Xtreme .Net Talk

sndickens

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by sndickens

  1. I know that I'm resurrecting an old thread here, but I'm looking for answers and hope I can get some. Keep in mind that I'm self-taught and only started about 2 months ago...so if something is blatant that I'm missing feel free to make me feel like an idiot. I downloaded the project above and it worked great for my needs (thanks!). However I am adding buttons to a panel that can then be dragged and dropped. I'm trying to get the painting of the rectangle on the panel instead of the form. Also the rectangle location has to be based on the panel. Here is the code for the painting of the rectangle: Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint If m_selected Then ControlPaint.DrawFocusRectangle(e.Graphics, m_selectionRect) End If End Sub Any help would be appreciated.
×
×
  • Create New...