VS 2010 Get Encoding Type Via Drag-drop

Feb 8, 2011

I'm can drag text-files to my app, but how do I get the encoding-type after reading?

[Code]...

View 4 Replies


ADVERTISEMENT

VS 2010 Drag Drop A System.Type From A TreeView

Sep 24, 2010

I am building a 'shape editor' which looks very similar to the Visual Studio form designer. I have a Toolbox control that holds a few 'Shapes' (such as RectangleShape, EllipseShape, TriangleShape, etc) which the user should be able to drag to the design view ("Canvas") in any MDI form. The Toolbox control is just a TreeView except that I add ToolboxItems to it (which are inherited TreeNodes). This dragging however does not seem to work...

[Code]...

View 2 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

Drag And Drop Between Apps In .Net 2010?

Aug 19, 2011

I had a user ask me today if I could make it so they could simply drag and drop text from other programs into the app I've written. I found an old (2002 & 2003) article on drag and drop, but I'm sure things have been made better since then.

Anyone doing this today can point me in the right direction? Is this much of a pain to enable?

View 5 Replies

VS 2010 Overlooking Something On Drag/Drop?

Jul 8, 2010

I am dragging a control over a different control as part of a drag/drop operation. AllowDrop is set for both the dragged control and the drop target. There is a DragDrop handler for the drop target, but when I drop on the target, the handler is never called, and nothing happens. I expect that I am overlooking something simple, but, as might be expected, I can't see it.

When I drag onto a different type of control, it is working correctly, and dragging to the control in question was once working correctly, but not anymore. I did make a bunch of changes, but the fundamental issue is that the dragdrop event is never raised for the control that is the drop target.

View 1 Replies

VS 2010 - Undesirable Drag Drop Effect

Aug 30, 2010

I have a picturebox that has a semi-complex image on it and also has a series of other pictureboxes, most of which are set to not visible. The way the program works, the user can click and drag a couple different items on the parent picturebox. The things they can drag are not actual controls, but parts of the image itself. That is all working fine. While testing, I had all of the subordinate pictureboxes (there are a variable number of them) visible showing a black background. I have now improved their implementation, so I changed the display so that only the subordinate pictureboxes that actually have something in them are visible. For all the others, they have .Visible = False.

The problem is that when I click and drag on one of the items in the parent picturebox, all the invisible pictureboxes become visible. They have no image in them, so they take on the color of the backgroud behind the parent picturebox. This is undesirable. I want the invisible pictureboxes to remain invisible during the drag and drop action. The one solution that seems promising is to set the image of all those pictureboxes to some transparent image such that, though they are visible, they will not appear as anything. A bit of testing shows that this technique would work.

View 4 Replies

VS 2010 Drag & Drop Get File Properties?

Jun 6, 2010

I have finally got the drag and drop to work on my form, so the user can drop files on it. I have used the msdn example so i can get the whole filename (path + filename). But how do i get only the filename? (lol.zip) And maybe the path where it is?

[Code]...

View 5 Replies

VS 2010 Add Nodes Treeview Drag-drop Textfile?

Jun 19, 2011

I have a simple textfile which I want to drag-drop into the treeview. After the drop read the textfile (line by line) and create the nodes. There are no subnodes (what-so-ever). File looks like this:

line1
line2
line3
line4

View 1 Replies

VS 2010 Detecting Mouse Position During Drag & Drop?

Feb 15, 2012

Is there any way of detecting the position where the Mouse Button is released during a Drag & Drop operation. I need to know whether the intended Drop position was not reached when the mouse button is released.

View 8 Replies

VS 2010 Drag Drop Get Filename & Restrict Files?

Jan 28, 2011

1) I'm dragging a file (.txt) into a rtb which works fine, but how do I get the filename? (messagebox whatever)

2) How do I restrict files to drop? (like a .exe)


vb.net
If e.Data.GetDataPresent(DataFormats.FileDrop) Then
Dim Files() As String
Files = e.Data.GetData(DataFormats.FileDrop)
Dim sReader As New StreamReader(Files(0))

View 6 Replies

VS 2010 Drag Drop Treeview (explorer Like Feature)

Jun 5, 2011

I'm able to drag and drop a node. The treeview is loaded with files and folders on the HD. The tag of the node has the path to the file/folder. [code] I only want to be able to drag a node into a folder and not into a file, as it does with this code.

View 1 Replies

Drag And Drop A Button Onto A Split Container In Program 2010?

Mar 3, 2011

I have a button that if a user clicks on the button it creates a new button without the user knowing, and they can drag it to a split container, drop it and edit the button. I am having an issue where I cannot drag or drop the button onto the split container.[code]...

View 3 Replies

VS 2010 - Adding Drag And Drop Support In Renaming Program?

Sep 12, 2011

I am trying to make a renaming program, which I have done, but wanted to add drag and drop support. Firstly, when I drag and drop the files into a listbox they appear to be going in and are ordered randomly. I want them to go into the order they're dragged in. Secondly, instead of having the entire path such as:
D:TVThe Big Bang Theory SeasonSeason 1The Big Bang Theory S01E01 - Pilot
I want just "The Big Bang Theory S01E01 - Pilot" to go into the listbox.

View 11 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

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/Drop Within A Tree And Drag/drop From Tree To Textbox

Oct 20, 2010

drag and drop nodes within the same tree (not between trees) when users drag and drop nodes within the tree, give them the option to move the original node to a new location within the tree OR to just copy the original node in a new location (seems complex but I have a month to figure this out). change the system default blue highlight for selected nodes to another color change the system default cursors for invalid and valid drops (instead of the circle with slash indicating invalid target, i want a red minus) and (instead of the little plus sign with little box indicating a valid target, i want just a big green plus sign) add a red insert line to indicate where the node would be dropped within a tree also drag and drop the text of a node from the tree to a textbox add a "folder" image next to parent nodes and a "document" image next to children nodes

I have looked through the internet but I am having difficulty sorting through all the information available (I see a lot of information for Visual Basic 5 and 6, and those codes don't work for me in visual studio 2008). I can email anyone my code I have so far.

Public Class Form1
Private MouseIsDown As Boolean = False
Public Sub TreeView_ItemDrag(ByVal sender As Object, ByVal e As ItemDragEventArgs)Handles TreeView1.ItemDrag

[Code]....

View 4 Replies

Drag/Drop In A Drop Down List?

Apr 5, 2011

Is it possible to reorder the elements of a drop down list (combobox) via drag and drop?For example, when the list is dropped down, I want the user to be able to drag the items up or down to reorder them. I tried this (and some google searching) but I'm wondering if its just not possible:

Private Sub cmbClassLists_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles cmbClassLists.MouseDown
If cmbClassLists.DroppedDown And Not cmbClassLists.SelectedIndex = -1 Then

[code].....

View 2 Replies

VS 2010 Create Workspace Where Can Drag And Drop Icons And Create Connection

Mar 3, 2012

I Want to develop a software like Yed.i just don know where to start.how we can create a workspace where i can drag and drop icons and create connection etc etc.

View 6 Replies

In .NET When Get A Response Stream From The Server What Type Of Encoding Type Should Use?

Dec 22, 2010

In the following example I m getting a response from the server; however do I need to set ASCII or UTF8 encoding type ?

Dim objURI As Uri = New Uri(URL)
Dim wReq As WebRequest = WebRequest.Create(objURI)
Dim wResp As WebResponse = wReq.GetResponse()

[code].....

View 2 Replies

Can't Drag And Drop Right

Jun 23, 2009

I want to be able to hold CTRL down to select multiple text entries and drag them all to certain text boxes. Or even one at a time, but once I try dragging another word into the box it replace the first one. Is there any way to just have it add to the text box rather than replace it?

And if possible, place a "-" between each entry?

This is the pop-up form with the listbox that contains the words to drag:

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

[Code]....

View 13 Replies

Drag And Drop In Wpf?

Jan 20, 2011

I am wondering how to do simple drag and drop in wpf? All examples I found over the new were in C#

View 8 Replies

Drag-n-Drop Dll And Exe Only?

Feb 23, 2010

How would i set a panel to allow drag-n-drop from explorer to my program, only with dll and exe files though.

View 4 Replies

VB Drag And Drop From LB To DGV

Sep 9, 2009

I am writing a small program that has two list box's which are populated from my sql database. I want to drag an item from LB1 to column1 in a datagridview and drag an item from LB2 to column2 in the same datagridview.

I am getting close, but I am having trouble getting the data to drop. I did some testing and I can drop a string, but I am not able to get the string data from my listbox. I just get a datarowview. I see the string inside the "itemarray", but cannot get to it.

Here is my dodragdrop:

LB_OriginalPallets.DoDragDrop(LB_OriginalPallets.SelectedItems(indexOfOldPalletToDrag), DragDropEffects.Copy)

View 10 Replies

.net - Drag And Drop Objects?

Mar 26, 2012

How to implement Drag and Drop multiple objects in the form in Visual Basic. The drag-able object will be provided within the same form but in a different panel. I must be able to delete the object also.

View 1 Replies

Allow The User To Drag And Drop Them?

Oct 20, 2010

I am trying to generate buttons and allow the user to drag and drop them.

I have this sub:

Sub Form1_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseClick
Dim nodebtn As New Button

[Code]....

Also if I declare the nodebtn as a global variable, I do not face this problem, the button is dragable. However when I click to add new buttons, no new button is generated, instead a button is generated with the count on it.

View 1 Replies

Do Drag/drop Within The Same Form?

Jul 10, 2009

I have this app that gets the files/subdirectories from a selected one (it stores the files with their icon in a listview), I was wondering how could I drag a selected file from the listview into another directory (outside of the form), let's say the desktop.

How can I do this? I have only found examples of how to do drag/drop within the same form.

View 6 Replies

Drag & Drop Into DataGrid

Oct 28, 2009

In my Project I want to Drag the text of the Text Box into any Particular cell of the DataGrid which ever user wants to,

but my problem is I am not able to find the Coordinates of the cell cell in which user will drop the text and hence not able to put the text into desired Cell.

Code snippet below shows the code in the Dragdrop event of the dataGrid

Dim sText As String = ""
Dim nrow As Integer = 'Need to get this rowIndex
Dim nCol As Integer = 'Need to get this ColIndex

[Code].....

View 4 Replies

Drag & Drop To Start An App

Jan 29, 2010

I have an app that usually sits on the desktop. how I can drag & drop a data file onto the icon, which would start the app and load the data file.

View 15 Replies

Drag + Drop Between 2 Forms?

Jun 22, 2009

how can i implement dragdrop between 2 child forms (each containing a listbox)?

View 2 Replies







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