Click here to Skip to main content
15,905,414 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: using store procedure to insert selected checkboxlist values into database Pin
Dave Kreskowiak23-Oct-08 2:01
mveDave Kreskowiak23-Oct-08 2:01 
QuestionSFTP activex? Pin
hatemtaleb22-Oct-08 21:27
hatemtaleb22-Oct-08 21:27 
AnswerRe: SFTP activex? Pin
Dave Kreskowiak23-Oct-08 7:18
mveDave Kreskowiak23-Oct-08 7:18 
QuestionVariables.. Pin
Subjugate22-Oct-08 17:34
Subjugate22-Oct-08 17:34 
AnswerRe: Variables.. Pin
Rupesh Kumar Swami22-Oct-08 20:42
Rupesh Kumar Swami22-Oct-08 20:42 
AnswerRe: Variables.. Pin
Jon_Boy23-Oct-08 2:55
Jon_Boy23-Oct-08 2:55 
QuestionProblem with Drag & Drop between list boxes Pin
TheComputerMan22-Oct-08 12:38
TheComputerMan22-Oct-08 12:38 
AnswerRe: Problem with Drag & Drop between list boxes Pin
sumit703422-Oct-08 22:47
sumit703422-Oct-08 22:47 
Hello,

You can try out this code. I have used two Listboxes on a form.

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim i As Integer

For i = 0 To 19

Me.ListBox1.Items.Add("Item " & (i + 1).ToString)

Next

End Sub


Private Sub ListBox1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles ListBox1.MouseDown

Try

ListBox1.DoDragDrop(ListBox1.SelectedItem, DragDropEffects.Copy)

Catch ex As Exception

MsgBox("Drag Error: " & ex.Message)

End Try

End Sub



Private Sub ListBox2_DragDrop(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles ListBox2.DragDrop

ListBox2.Items.Add(e.Data.GetData(DataFormats.Text))

End Sub



Private Sub ListBox2_DragEnter(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles ListBox2.DragEnter

If e.Data.GetDataPresent(DataFormats.Text) Then

e.Effect = DragDropEffects.Copy

Else

MessageBox.Show("No Text Present")
e.Effect = DragDropEffects.None

End If
End Sub

I believe this should assist you.

Regards

Sumit Gupta
GeneralRe: Problem with Drag & Drop between list boxes Pin
TheComputerMan22-Oct-08 23:01
TheComputerMan22-Oct-08 23:01 
GeneralRe: Problem with Drag & Drop between list boxes Pin
Mycroft Holmes22-Oct-08 23:39
professionalMycroft Holmes22-Oct-08 23:39 
GeneralRe: Problem with Drag & Drop between list boxes Pin
TheComputerMan22-Oct-08 23:44
TheComputerMan22-Oct-08 23:44 
QuestionDesignMode Dilemma! [modified] Pin
Saul Johnson22-Oct-08 8:49
Saul Johnson22-Oct-08 8:49 
AnswerRe: DesignMode Dilemma! Pin
Dave Kreskowiak22-Oct-08 11:43
mveDave Kreskowiak22-Oct-08 11:43 
GeneralRe: DesignMode Dilemma! Pin
Saul Johnson24-Oct-08 4:54
Saul Johnson24-Oct-08 4:54 
QuestionLinkLabels and Data Source Pin
KrisnNala22-Oct-08 8:28
KrisnNala22-Oct-08 8:28 
AnswerRe: LinkLabels and Data Source Pin
Wendelius22-Oct-08 9:40
mentorWendelius22-Oct-08 9:40 
GeneralRe: LinkLabels and Data Source Pin
KrisnNala23-Oct-08 7:08
KrisnNala23-Oct-08 7:08 
GeneralRe: LinkLabels and Data Source Pin
Wendelius23-Oct-08 7:55
mentorWendelius23-Oct-08 7:55 
GeneralRe: LinkLabels and Data Source Pin
KrisnNala23-Oct-08 8:22
KrisnNala23-Oct-08 8:22 
GeneralRe: LinkLabels and Data Source Pin
Wendelius24-Oct-08 7:49
mentorWendelius24-Oct-08 7:49 
GeneralRe: LinkLabels and Data Source Pin
KrisnNala24-Oct-08 22:13
KrisnNala24-Oct-08 22:13 
GeneralRe: LinkLabels and Data Source Pin
Wendelius25-Oct-08 0:42
mentorWendelius25-Oct-08 0:42 
QuestionUsing ODBC or OLE to handle database with LONG column? Pin
John Wadleigh22-Oct-08 3:00
John Wadleigh22-Oct-08 3:00 
AnswerRe: Using ODBC or OLE to handle database with LONG column? Pin
Dave Kreskowiak22-Oct-08 5:04
mveDave Kreskowiak22-Oct-08 5:04 
Questionhow to edit appconfig in windows application (C#) Pin
Piyush Vardhan Singh22-Oct-08 2:35
Piyush Vardhan Singh22-Oct-08 2:35 

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.