I'm having an issue with trying to use VB.NET and the WebRequest object to post some cXML text and an attachment. I believe I am formatting the text of the data I wish to post correctly, as it matches samples Ariba has supplied. What I am uncertain of is if I am correctly using the WebRequest object to do the posting. I am setting the M...
Hello everyone...
I am using vb.net, and in my program I get this 'crossthread operation not valid' error when I run my backgroundworker that will make this textbox enabled true. My main sub will first turn the enabled to false, and when the backgroundworker runs it will turn it back true then exit. Why does it give me an error? FYI: Th...
Hello
I have a .NET DLL that writes to the Trace. But seems that when I call my DLL from a VB6 EXE the trace is not working.
I have created an myApp.config file in the EXE folder with the trace configuration, but this does not solves the issue.
I've also tried creating the Trace objects in code,but doesn't work:
Dim _traceSrc as Trace...
Hello everyone,
I have a really quick question. My program actually downloads a zip file then extracts it onto their desktop. But I need an uninstall feature for it, which is basically deleting multiple folders and containing files. How can I do this in vb.net?
Thanks
...
Hello All,
On a project I'm building for a client, one of the requirements is advanced user tracking. The client would like to know what pages an authenticated user is visiting, and when. I read through this post, which is probably the method I will go with. However, that seems a bit tolling on the database, and being that the client...
have an xml file like this.
<?xml version ="1.0" encoding ="utf-8"?>
<menu>
<menuNode title="Register" value="true">
<menuNode title="Company" value="false">
<menuNode title="Add" value="false" />
<menuNode title="Modify" value="false" />
<menuNode title="Delete" valu...
I want to listen to events in my windows forms .NET application for the following system wide events :
Log Off
Lock Windows
Hibernate Started
Sleep Started
System Resumed
Are these possible?
Thanks
...
How can I implement an openfiledialog, which is able to do multiselecting? Do I need an extra libraray or is it also possible with the WPF-Control OpenFileDialog?
...
All the refactoring tools for C# and VB.Net that I have seen only consider the source code in a single visual studio solution.
For better or worse, our large (many related programs) system is spread over many solution files, however:
All the code is below a single windows folder.
Our nAnt based build system, builds all files in a win...
Hello, I'm a newbie to StackOverflow so please be kind ;)
I'm using Entity Framework in Visual Studio 2010 Beta 2 (.NET framework 4.0 Beta 2). I have created an entity framework .edmx model from my database and I have a handful of many-to-many relationships.
A trivial example of my database schema is
Roles (ID, Name, Active)
Members (...
Hi,
In my app I have a dialog in which the user can select a database backup location. If want to warn the user if the location he/she selected is "probably not secure".
I want to consider the following locations secure:
When selected folder is on a network
(either by a mapped drive (e.g.
"I:\Backup") or UNC notation
(\server2\backup...
We have lots of WCF services that are only used by our own code; the code that uses them is mostly in the same solutions files that contains the services.
However they do not use a shared assembly for the contracts, so each time a data contract is change the reference to the service has to be updated by hand in all projects that use the...
How can I save an Excel-file, which I'd edit with VB.NE, to a file, which already exists? Evertime there is a dialog: File already exists. Do you really want to overwrite? YES|NO|Abort
How can I overwrite without this dialog?
...
When I deploy my app on other machines, this error comes up:
Now if I uninstall my app and re-install it, the error message does not come up. Has anyone else encountered this? I cant make sense of the stack trace either.
...
I heard once that .net introduced an already defined delegate with no parameter that we could use instead of creating one.
I'm having a hard time finding it and for what version of .net. (if it really exists)
Thanks!
...
I recently made the switch to a new job and consequently the switch from VB.NET to C#. One thing that I miss is all the snippets that are available in VB.NET. VB.NET comes with ~400 snippets and C# only comes with ~100. Also, I have noticed that the majority of VB.NET snippets are task oriented which is exceptionally helpful when you ...
We have a multi-line control that we are attempting to prevent the Enter/Return key from being used to create a new line.
Strangely enough, "AcceptsReturn" as False does not prevent this.
So we added the following:
Private Sub txtAddr_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtAddr.K...
I created a Data Source with VB.NET and Visual Studio 2005. I dragged the data source onto my dialog, and VS created the text boxes with the members of my linked Object, a System.Windows.Forms.BindingSource and a System.Windows.Forms.BindingNavigator.
I populate the List (called myList), set myList as the DataSource in the BindingSourc...
I recently inherited a nice size projects with about 100k lines of code and would like to find out what code is actually being run. I've found a number of routines that are not called at all and looking for a fast and automated way to explore the Business Layer to see what other code can be refactored out quickly.
This is an ASP.NET we...
I'm trying to create a property that will allow the setting of a last name based on a variety of inputs. The code that calls this is parsing a name field. In some instances it will have a single last name, in others, a array of last names that need to be concatenated. I want to keep my concatenation code in a single place to make mainten...