Drag And Drop In VB 2008

Jan 21, 2010

How do I drag and drop a control (such as a GroupBox) during runtime from one location on a form to another? I simply want to move it around during runtime.

View 6 Replies


ADVERTISEMENT

VS 2008 Listview Drag And Drop (preserving The Listview .tag After Drag And Drop)

May 25, 2011

I am trying to figure out a way to include the listview's tag field when dragging one listview's subitems into another listview. I am hoping someone here has experience with this. My Listview drag code is below - the two listviews that I am dragging subitems into or from are LV1 and LV3. Also, this is being done in Visual Basic 2008 and the project is a windows application.

[Code]...

View 4 Replies

Drag And Drop - Drag Picturebox1 And Drop It In Picturebox2

Nov 18, 2009

I am currently working on a drag and drop project and I was wondering if there is a way to drag picturebox1 and drop it in picturebox2; that will snap to a specific location in the picturebox2?

View 2 Replies

ListView Drag&Drop Allow To Drag&Drop Between Form?

Aug 27, 2009

ListView Drag&Drop allow to Drag&Drop between form??

Public Class frmModule
Private Sub ListView1_ItemDrag(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ItemDragEventArgs) Handles ListView1.ItemDrag[code]....

Can it be drap and drop item to other form control??How to write the event when mouse up at the other form control?

View 2 Replies

VS 2008 Drag And Drop?

Feb 7, 2010

Is it possible for a user to drag and drop a desktop shortcut onto a form (picturebox, panel etc) and launch it by clickin the (picturebox, panel etc) ?

View 7 Replies

VS 2008 Drag And Drop - Folder?

Aug 1, 2010

I have been able to implement drag and drop successfully on my listView object if you were to drop a file on it, however I seem to be having some troubles if the user were to drag the folder onto the object. Is there a simple way to check if the user dropped a folder, and if so, list all of the files in the folder/subfolders?

View 6 Replies

VS 2008 Drag And Drop And Alternatives?

May 20, 2011

I'm working on a small utility program and found that I have a need to copy the contents of listboxes, textboxes and other control from one to another.

I just started playing around with Drag and Drop but it seems lacking a bit...for instance, if I wanted to drag the contents of a listview to a text box, it doesn't look like I can do that easily if at all.

Can you use a drag and drop to copy the contents of different control types easily?I thought about using the drag and drop method for notification of the intent to copy the contents and then I would code the copying.

The idea (although I know it will be slow but that is okay for this utility) to copy the source to a textbox and then from the textbox to the target. The content won't be that large and speed is not a concern at this point.

Here is my issue if I have to do it this way.

1 - How can I use the control names to do this?

2 - How do I get the target control name?

I figured I would create a function that I would pass the source control name and the target control name and based on type, perform the appropriate method of copying the data.

I haven't figured out a way to get the target control name. I can use activecontrol.name for the source.

View 1 Replies

VS 2008 Drag And Drop Assistance?

Jul 9, 2009

I am in the process of creating a dock and I was wondering if somebody would know how I can have programs be dragged and dropped into the dock with the ICON

View 1 Replies

VS 2008 Drag And Drop On DataGridView

Apr 2, 2009

I am trying to implement a DnD interface where the user drags a button onto a DGV & a new row would be inserted at the drop point. My first problem is how can I have the DGV rows highlight as the cursor is dragged over them? And then I need to get the row index when the mouse button is released so that I can insert a row at that point?

View 2 Replies

VS 2008 Drag And Drop On Form

Jun 25, 2009

I was trying to make an app to upload photos to flickr.This is what I'm trying to achieve:

1.User will select many photos and drop it on the form which here acts as a drop box.

2. The app. will upload them to the users account.

How do my app know what files have been dropped and their infos?

View 1 Replies

VS 2008 Drag And Drop On Textbox?

Dec 30, 2010

Is it possible to drag and drop on textbox whose enabled property is false ?i have a textbox when i will drag folder on the textbox it capture the folderlocation path but when i make textbox enabled probperty false it didn't work

View 4 Replies

VS 2008 Drag And Drop To Listbox?

Nov 13, 2009

So i want to drag and drop a file into the list box. All i want to do when i drag the file i want the path to show only.

For example if the user drags a text.txt file into the list box all i want in the list box is the path like C: ext.txt

View 9 Replies

VS 2008 Drag Drop Not Working?

May 30, 2011

i am trying to drag a picture from one picturebox to another, but when i click to drag it shows the circle with the slash mark throught it like: [URL] not-symbol.jpg where my mouse is supposed to be? i cant seem to figure it out. my code is:

[Code]....

View 2 Replies

VS 2008 Free Drag And Drop?

Feb 9, 2010

vb 2008 compared to 2003 is the ability to drag controls onto the web form and place them where I want.With 2008, the form places the control to the left and I have to tab, space, set-up tables or similar techniques to get the control exactly where i want it. Is there a way to make the web form in 2008 work like the one in 2003?Other then this one oversight, I enjoy all other aspects of vb 2008.

View 1 Replies

VS 2008 TabControl Drag And Drop?

Jan 31, 2010

I ahve this code to drag and drop a tab, but my controls don't move with it.When it's moved, the tabpage is empty.How can I fix this?

[Code]...

View 1 Replies

C# - Drag And Drop From Excel Cells To A Drag-enabled Task Pane Programatically?

Oct 31, 2010

I am using Excel 2007, VS2008 Pro.I am building a VSTO Add-in that requires "drag and drop from Excel cells to a drag-enabled task pane".So far I notice that I can only drag and drop within the cells themselves. It does not allow me to drop into the task Pane or drag past the sheet limits.(http:)[url]...

Note: The task pane has drag drop enabled, I ahve already tested I can drag/drop from task pane to excel but I need to do this the other way around?

View 1 Replies

Vb 2008 Drag And Drop Swapping Between 4 Textboxes?

May 20, 2011

vb 2008 drag and drop replacing text in txt1 with text intxt2 and replacing txt2 with txt1 and all the other textboxes. more than one time. So far I h get it to swap the text from txt1 to txt2. example txt1 = "one" and txt2 = "two" after drag and drop txt1 = "two" and txt2 = "one" now we need to keep swapping with 2 more textboxes. Here is the sode so far.

Public
Class Form1
Dim textboxes()

[code]......

View 1 Replies

VS 2008 - Drag And Drop - My Form Now Goes In Front

May 16, 2009

How do I make it so that when a user brings an explorer folder on top of my app - so that they can drag and drop a file into a grid control

[edit] - it's actually a listview that they drag into - but that shouldn't matter [/edit]

That when they drop the file my app fires off a AddFile.ShowDialog pop-up form

I want that AddFile form to be in front of the explorer window

CODE:

View 6 Replies

VS 2008 - Drag And Drop GridView Control

Jul 6, 2009

I am working on visual studio 2008 , when i drag and drop a GridView control, I cant see any way of showing the page index by run time. How do I associate one DataSet object (which has got 10 rows) first 5 rows I need to show in first page rest i need to show in next page, basically I need to divide my dataset information in to two seperate page indexes.

View 3 Replies

VS 2008 - Drag And Drop Image Objects

Feb 12, 2012

I have a form with 2 pictureboxes. 1 is for the canvas and the other is for holding about a dozen images (about 60x60 pixels each), pretty much icons. I would like to drag the images to the canvas and be able to move them around or delete them if necessary. Like setting up a board. Since I am using pictureboxes, what would be the best way to load the images and also the best method to be able to drag them around 1 by 1. This is almost like a paint program with brushes that can be moved around.

View 2 Replies

VS 2008 : Drag And Drop Emails From Outlook?

Dec 2, 2010

dragging and dropping emails from outlook onto a datagridview. Please help me step by step in setting up my form for dropping.So far I get the black circle icon with a slash across the middle, the indicates "this is not allowed"

View 6 Replies

VS 2008 Custom Drag And Drop Cursor

Apr 6, 2009

Is there a way to create a custom cursor when doing a DnD operation? For example, if I'm dragging a button control I would like the cursor to look like a rectangle that is the same size as the button.

View 4 Replies

VS 2008 Drag 'n Drop Windows Folders

Mar 5, 2010

im working on a drag and drop project, currently im able to drag and drop desktop shortcuts and launch them by click on them.Now im wondering how would i be able to drag and drop folders (My Pictures, My Documents) etc. im using multiple pictureboxes , only picturebox 1 code is shown here.[code]

View 1 Replies

VS 2008 Drag And Drop A Picture Box In A Panel?

Jul 16, 2009

I need to drag and drop a picture box in a panel. In my for I created two panels. When I drag the picture box to the panel, I want the picturebox to have the same size as the panel1 or panel2. How do I go about this using the following code?

Private Sub Panel_DragDrop(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles Panel2.DragDrop, Panel1.DragDrop, Me.DragDrop
Dim Px As Point = New Point(e.X, e.Y)
Px = Me.PointToClient(Px)
PictureBox1.Location = Px
End Sub

View 4 Replies

VS 2008 Drag And Drop Drawn Letters?

Sep 11, 2009

1) Draw three letter's 'P' 'B' & 'C' on a form (at a later date mutiples of each wil be added)

2) to be able to drag them anywhere on the form

3) to be able to lassoo them and drag them all at the same time.

For the moment the third option isn't important just as long as l can drag the letters.

View 13 Replies

VS 2008 Drag And Drop File Into Listviewbox

Mar 18, 2010

Is it possible to drag a file into say a listviewbox and then code it to save the file to a location on my network drive?

View 8 Replies

VS 2008 Drag And Drop File On Form?

Jul 20, 2009

The below code msgs me the file path of a file I drag and drop onto the form. How can i restrict it to only allow .watever files to be dropped on the form. MSDN didn't do a good job explaining this.

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.AllowDrop = True
End Sub

Private Sub form1_DragEnter(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles Me.DragEnter
If e.Data.GetDataPresent(DataFormats.FileDrop) Then
e.Effect = DragDropEffects.All
End If
End Sub

[Code]...

View 4 Replies

VS 2008 Drag/Drop Between Two DataBound DataGridViews?

Mar 19, 2010

I have an MDI application that shows MDI forms with a single DataGridView on each form. The grid is bound to a List(Of Item), where Item is some class. Now I need to be able to drag (possibly multiple) items from one grid (in one form) to another grid (in another form).

Unfortunately, I know nothing about DataGridViews and even less about drag and drop, so this is turning into a real pain for me...I have been looking at examples for ages, but none of them work for me. Most of them don't deal with databound items, others don't seem to work at all, and yet others can only deal with a single row at a time (pretty useless for me).

This must be something that people need a lot, so I can't understand why the examples are so 'bad'.

View 4 Replies

VS 2008 Get Info From Multi Drag N Drop

Nov 17, 2009

how would i get the size + (kb,gb,etc)/type(.exe/.png/etc)/name/direc/file icon in a multi drag n drop in a listview and show them

View 12 Replies

VS 2008 Move Checkbox As Drag And Drop?

Feb 28, 2010

I got a form and a checkbox with default name in Visual Basic 2008

I need code to check data of value "link" on the pictures above

if the data is 00 00 00 00 the checkbox will show a check if 1b 00 00 00 or else nothing is showed

I'm new to VS and don't know code formula so please give me some codes with explaination

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved