Click here to Skip to main content
15,923,689 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How to cumulate input values Pin
Dave Kreskowiak9-Sep-05 2:15
mveDave Kreskowiak9-Sep-05 2:15 
GeneralRe: How to cumulate input values Pin
directred9-Sep-05 3:09
directred9-Sep-05 3:09 
QuestionWindows Form Inheritance Issue Pin
Jason Stamp9-Sep-05 0:33
Jason Stamp9-Sep-05 0:33 
Questiongetting homepath for currently logged in user Pin
Shivani Arora8-Sep-05 23:59
Shivani Arora8-Sep-05 23:59 
AnswerRe: getting homepath for currently logged in user Pin
Dave Kreskowiak9-Sep-05 2:10
mveDave Kreskowiak9-Sep-05 2:10 
GeneralRe: getting homepath for currently logged in user Pin
jcrussell11-Sep-05 15:49
jcrussell11-Sep-05 15:49 
Questionsetting the image of crystal report object during the runtime Pin
Hemesh8-Sep-05 20:30
Hemesh8-Sep-05 20:30 
QuestionMovable Toolbar Pin
kenexcelon8-Sep-05 20:25
kenexcelon8-Sep-05 20:25 
Could someone please help me. Here's my code:

Private Sub ToolBar1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles ToolBar1.MouseDown
ToolBar1.DoDragDrop(ToolBar1, DragDropEffects.Move)
End Sub

Private Sub frmRolman_DragEnter(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles MyBase.DragEnter
e.Effect = DragDropEffects.Move
End Sub

Private Sub frmRolman_DragDrop(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles MyBase.DragDrop
Dim myForm As Form
myForm = CType(sender, frmRolman)
Me.ToolBar1.Dock = DockStyle.None
ToolBar1.Left = Me.MousePosition.X
ToolBar1.Top = Me.MousePosition.Y
If Me.MousePosition.Y = Me.Top Then
ToolBar1.Dock = DockStyle.Top
End If
End Sub

My problem is I'm not exactly sure at which position the toolbar should dock at the top, left, etc... With the above code, when I click on the toolbar, it moves. Probably has to do with the mouse_down event, but I'm going off some tutorial code that moved a picture box within the form.
Thank you for your time.
QuestionBYPASS LOGIN Pin
tatchung8-Sep-05 19:35
tatchung8-Sep-05 19:35 
AnswerRe: BYPASS LOGIN Pin
Dave Kreskowiak9-Sep-05 2:01
mveDave Kreskowiak9-Sep-05 2:01 
Questionhoe to access last record in Access 2000 table Pin
Swiss Mantoro8-Sep-05 17:57
Swiss Mantoro8-Sep-05 17:57 
AnswerRe: hoe to access last record in Access 2000 table Pin
crash_cverride8-Sep-05 22:27
crash_cverride8-Sep-05 22:27 
GeneralRe: hoe to access last record in Access 2000 table Pin
Swiss Mantoro8-Sep-05 23:15
Swiss Mantoro8-Sep-05 23:15 
Generalhoe to access last record in Access 2000 table Pin
Swiss Mantoro8-Sep-05 23:21
Swiss Mantoro8-Sep-05 23:21 
Questiondynamic RichTextBox accesing the Selection FontStyle Pin
Taen_Karth8-Sep-05 17:40
Taen_Karth8-Sep-05 17:40 
AnswerRe: dynamic RichTextBox accesing the Selection FontStyle Pin
Christian Graus8-Sep-05 17:59
protectorChristian Graus8-Sep-05 17:59 
GeneralRe: dynamic RichTextBox accesing the Selection FontStyle Pin
Taen_Karth8-Sep-05 18:10
Taen_Karth8-Sep-05 18:10 
GeneralRe: dynamic RichTextBox accesing the Selection FontStyle Pin
Christian Graus8-Sep-05 18:11
protectorChristian Graus8-Sep-05 18:11 
GeneralRe: dynamic RichTextBox accesing the Selection FontStyle Pin
Taen_Karth9-Sep-05 16:40
Taen_Karth9-Sep-05 16:40 
AnswerRe: dynamic RichTextBox accesing the Selection FontStyle Pin
PranjalSharma12-Sep-05 0:28
PranjalSharma12-Sep-05 0:28 
GeneralRe: dynamic RichTextBox accesing the Selection FontStyle Pin
Taen_Karth13-Sep-05 12:39
Taen_Karth13-Sep-05 12:39 
QuestionHow to color each row of datagrid in VB6 Pin
crash_cverride8-Sep-05 16:43
crash_cverride8-Sep-05 16:43 
QuestionAdding a listbox datagridcolumn to datagridcolumnstyles Pin
Member 22599498-Sep-05 10:40
Member 22599498-Sep-05 10:40 
QuestionDrag and Drop Toolbar Pin
kenexcelon8-Sep-05 8:48
kenexcelon8-Sep-05 8:48 
Questionscreensaver application Pin
oakleaf8-Sep-05 8:04
oakleaf8-Sep-05 8:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.