While I can do DoDragDrop() to initiate a FileDrop from a listview to Windows Explorer, how can I tell anything about the target of the drop? For instance if I wanted to find the path where my files were dropped to?
Example:
1) User clicks and drags listviewitem which turns into a FileDrop with a file's path.
How can I find if a given file is a symbolic link? And once I know that it is, how can I get the target its pointing to? I'm using VB.NET in Visual Studio 2010.
I want to drag-drop single text items from ListView-A to ListView-B (both are in Details mode), but can't see how to read (and hence highlight) the index of the line in ListView-B when the mouse is hovering over it. Easy in a ListBox, but the PointToClient > IndexFromPoint features don't work with ListView controls and I just can't see another way .
During a MouseDown event, I issue a DoDragDrop. In the subsequent DragDrop event, I call a DLL to update a Ms-Access database. The SQL is in error so there is an exception. I can catch the exception in the DLL but not in the MouseDown event. Stangely without any try block, stepping over the ExecuteNonQuery() returns me to the line next to the DoDragDrop without the debugger stopping on the exception. In release mode, the exception is completely ignored. There are posts talking about event being "indirect" but I dont understand.
when I go to the advanced compile options the dropdown box (and label with info) to change the target cpu missing.Do I need to change a setting, or is there an other way to change the target cpu?
I have a media browser program I am building. I am trying to use drag/drop so a user can drag media tracks from one listview to another listview and then use the second list view as a playlist in windows media player com object. Reading at MSDN I have found out that there is no built in support for item re-ordering with the listview control. I have listview1 working correctly but when I try to reorder items in listview2, the dragged item ends up at the end of the list. So basically I need to get the item insertion index corrected. I have tried more than 10 times to get this code right.
Here is my code which includes a form with two listview's.
Public Class Form1
Private Sub ListView_ItemDrag(ByVal sender As Object, ByVal e As _ System.Windows.Forms.ItemDragEventArgs) Handles ListView1.ItemDrag, _ ListView2.ItemDrag
I developed an app using the .net framework 3.5 sp1. I have now been told that the published version must not require sp1 but just the 3.5 framework.
So I uninstalled sp1 from my pc but not cannot publish the app. The app code will run without error but when I build it for publishing I get the error The "RequiresFramework35SP1Assembly" task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with <UsingTask> in the project file, or in the *.tasks files located in the "C:WINDOWSMicrosoft.NETFrameworkv3.5" directory.
I am developing an application that can export a DGV to excel file, so i have some references to MS Office and excel. How can I develope the program to be deployed on a machine that doesnt have Excel.. When I ran it on a new Win7 machine I have without office I couldnt even run debug because office isnt on the computer.I am not asking to be able to create an excel export on a machine without excel, just be able to run the program? Or do I need tow version of the program one for and one without excel
I'm not a daily programmer so these nuances regarding VBnet drive me crazy. I've written my app with a P4, XP, dotnet 3.5 PC using VB express 2008.Does that mean are not NOT compatable with any machine running dotnet 3.5?
When I have the following code, I get an "Expression is a value and therefore cannot be the target of an assignment." error as shown:
Public Class Form1 'Test Project Public Structure Blah Public ID As String
[code].....
But when I change the structure to a class, this works fine:
Public Class Form1 'Test Project Public Class Blah Public ID As String
[code].....
What connection am I missing between the two? I don't understand why the first example doesn't work, but the second does. Everything I know says they should both work just fine.
I've intrested how make webbrowser know the targets and know what to do when the link has got the target. I don't know how to make new window form too because there are functions with targets (sizeable, Adressbar, width,
I want to refactor my existing application to work with as a client/server app, and was looking at introductions to Remoting.I got a simple system up and running 2 days ago, and haven't touched it since until just now, but now I'm getting an error message when trying to instantiate a class from the remoted DLL : "No connection could be made because the target machine actively refused it".The server and client are both actually running on the same machine for simplicity at the moment. I have three "applications" involved - a class library containing the server functionality, a listener application sitting with the server, and then a client applicaition.Most of the articles I can find online referring to this error seem to apply primarily to asp.net but I'm just using traditional vb.net (2008)I initially suspected the cause may be firewall related (as when I first got it running I was prompted to allow access) but I've turned off my McAfee firewall and also my Windows firewall with no joy, and besides - the error message seems to imply that communication with the server has been established but that it doesn't want to play ball.
94.69.250.128:8888 ( My external IP:Port that I've configures the task ) I'm kinda stuck in it, whilst my Chat application is ready, it seems it can't connect to the Internet now. The error is happening on the line :
Error: Trying to revoke a drop target that has not been registered (Exception from HRESULT: 0x80040100 (DRAGDROP_E_NOTREGISTERED))
I am trying to dynamically zoom inout of a pdf document that i'm viewing in a WebBrowser 2.0 control in VB NET 2008. If I navigate to a web URL the following code works fine but if I try the same code while viewing a pdf file the above exception is thrown.
Try Dim MyWeb As Object MyWeb = Me.WebBrowserPDF.ActiveXInstance
I've got a form - CMCConsole It pops up a dialog form for adding a new case.If the matter number in a textbox on that dialog form matches an existing cases matter number I would like to find it in the binding source of the CMCConsole form
Private Function CheckMatter(ByVal MtrNum As String) As Boolean Dim cfIndex As Integer = CMCConsole.caseBS.Find("MatterNumber", MtrNum) Dim cfIndex2 As Integer = CMCConsole.casefileBS.Find("MatterNumber", MtrNum)
[code]....
But it appear the filter for the CASE we were just on that is set on the binding source is keeping the FIND from seeing other cases.
caseBS.Filter = "CaseId=" & e.Node.Tag.ToString
Do I have to clear the filter in order to find a matter number in some other case??
I'm creating a shortcut with my application, and its working successfully, except that the "Target" line is being cut off. Not all the arguments are listed. When I run the target application of this shortcut using process.start and these arguments, it runs fine. Is this simply a limitation of the "Target" textbox? Is it simply not displaying all the arguments, or is it functionally limited in this way?EDIT: I have determined that it is simply not displaying the full string, but seems to work correctly. I would still like to fix this somehow, but if not, not a big deal.There are 259 characters in the textbox, including spaces. Doesn't seem like a significant number to me.Here is the code, but it doesn't really matter, it is working fine:
I'm using the x86 target CPU setting (and .NET 2.0 as target framework if that's important) for all of my projects and components. This worked without any problems with Visual Studio 2008. My developer PC uses a x64 version of Windows 7.But now I have a new project in Visual Studio 2010 where both, the main project as well as the user control component is set to x86 target CPU, but I still get following error when I try to run my main project with the user control placed on the form:
"Could not load file or assembly 'XXX' or one of its dependencies. An attempt was made to load a program with an incorrect format."
This is the normal message e. g. if the main project has a target CPU of "Any CPU" and the component only "x86", but in Visual Studio 2008 it worked fine if I set both to "x86". Why this is not working in Visual Studio 2010 anymore or what I need to change that it works again?
I am running a program that is connected through the internet and i gets disconnected at times.wanted to know how this would be to examine a color of a pixel , If the colour turns changes, my mouse will move to reconnect
I just installed Visual Basic Express 2010. I am doing a project at the moment for college. The project is running fine on the computers at college. But when I try to run it on my home PC I get this error message.QuoteWarning1: Possible problem detected while building assembly 'StockSYS': Referenced assembly 'Oracle.DataAccess.dll' targets a different processor..I have Googled it but when I go to the advanced compiler settings, there is no option to change the target CPU, just an option to change the target framework. I know that this has something to do with trying to run it on a 64-Bit OS. I just don't know how to change the target CPU.
I need a function which can determine the target website of a *.url file.
Currently I develop a web browser. When you drag a file onto the exe in Windows 7 or pass a URL as a parameter to it, it will open that file/website (at least attempt to). I will fix this code and make it only open files that has HTM, HTML, LNK or URL file types, maybe also some picture files and similar as well. Here is the code I currently use to detect the command line parameter:
Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load If Command() = "" Then
My VB.NET 2010 app currently targets .NET 3. I have to update it to target .NET 4 to get around some Locale / CultureInfo issues. What's the difference between .NET 4 Client Profile and the other .NET 4s I have on my machine: Extended and Multi-Targeting Pack? Which flavour of .NET 4 should I target? I want to target the flavour that the average user running Microsoft Office (Excel/Word/Outlook) out in the wild is most likely to already have. Why (on my machine) is there only a regasm.exe for v2.0.50727 and v4.0.30319? Why not a separate version for the other versions installed on my machine? (3, 3.5)
I am currently trying to read the target line of a shortcut file, if you were to right click and view properties of a shortcut, you can see the target line which holds the path of the file for execution. I problem is the target lines have attributes/properties at the end of the target line. The code i have atm reads everything except the most crucial part, the data after the .exe.. For example
Say i have a shortcut file whose target line(if you view properties of the file) is as such:
My current program reads in this part of the target line..
\adminappsVbNetSQLScriptRunner.exe
But i need the last part, its the whole point of the program...why it stops reading when it hits the .exe or how to make it continue till end of the target line. I eventually store each target line returned into an array which ill export to excel later on.The code used to retrieve the target line is below.
Public Function GetTarget(ByVal dt As System.Data.DataTable) Dim path(dt.Rows.Count - 1) Dim wshLink, strPath, wshShell Dim rc As Integer = 0
I recently wrote a quick VB.NET app that injects a DLL into a running process. To test it I was creating my own vb.net Class Library project which simply spawns a "Hello World" message box in hopes of it showing up in the target process once I injected my HelloWorld.DLL.My problem is that the message box never shows up after I inject the HelloWorld.DLL. I'm pretty sure the reason for this is because once my HelloWorld.DLL is injected (since it's a VB.NET DLL) it does not have a DllMain and hence has no idea what to execute and nothing happens.
i am making a program on visual basic 2010 and part of my objective is to calculate the tax, i am trying to calculate the TAX so this is part of my code and this is the only part which gives me errors:[code]
1. Constant cannot be target of an assignment
2. value of type 'string' cannot be converted to 'System.windows.forms.Lebel'.
How would I be ables to copy the content of a directory to multiple target simultaneously, like writing on 4 usb keys at the same time. Is that even possible?
I tried divide the task with threads. I tried to create a thread with:
dim t as thread t = My.Computer.FileSystem.Copydirectory(source, destination) t.start()
but the code doesn't work, "my.computer.filesystem...." won't work.
When i try to build and play my project there is an error:Microsoft Visual Studio cannot start debugging because the debug target "....LCCGDuelArenaVBNETCompatible.exe" is misssing