I'm in the process of migrating a VB.NET web application from Visual Studio 2005 (.NET 2.0) to Visual Studio 2008 (.NET 3.5) and while it was mostly straightforward I encountered a problem which took some time to resolve.
The code in question reads:
Dim serviceArray = New SecurityLayer.Model.Service()
serviceArray = new SecurityLayer.S...
How can I send a string to an email with new lines (carriage returns) included?
The problem is that I am sending the string to an email, and the email strips out the carriage returns.
Dim myApp As New Process
emailStringBuilder.Append("mailto:")
emailStringBuilder.Append("&subject=" & tmpID & " - " & subject)
emailString...
Hi Folks.
I have a vbs script which captures file information and then exports it to a csv file. I need to run the script on main drives such as C:\, E:\, I:\ and more, but each time I run for the main directory I get "Permission Denied" when I try to run it for a subfolder example C:\Program Files it works fine. I have tested this on d...
I'm completely new to both VB.NET and JSON, and I'm trying to figure out how to do SQL queries towards an SQL 2005 Express server and format the return value to JSON. I got the queries working using this (perhaps very newbie-like) code;
Imports System
Imports System.Data
Imports System.Data.SqlClient
Imports System.Web.UI
Imports System...
I am testing web services in .NET for the first time. I am almost there, but I can't seem to consume the web service. I know this post is similar to about 5-6 other posts on this site, but I have reviewed them, and still can't get the syntax correct.
So far, I have:
-Create a simple web service that creates a directory
-Worked in develo...
Can anyone tell me out how remove the seams in the skybox implementation I have here:
source code:
http://openglviewcontroller.codeplex.com/SourceControl/list/changesets
I've been trying GL_CLAMP_TO_EDGE to no avail.
...
I have a custom collection, lets says COL, that derives from ObjectModel.Collection.
I have my own collection editor that works fine when a property, of type COL, is Read and Write enabled.
However, if I change the property to ReadOnly, the open editor button stops showing in the property grid.
As a test, I override my custom editor wi...
As you can probably very soon see, I am a complete newbie at VB.NET, and I am having some trouble getting output from a stored procedure in SQL Server 2005.
This is the code I use
Dim con As New SqlConnection
Dim cmd As New SqlCommand("esp_getDates", con)
Dim par As New SqlParameter("@PlaceID", SqlDbType.Int, 3906)
con....
I'm trying to send an HTTP command using VB.NET and I'm not quite sure how to do it. I don't want to actually navigate to the page, just execute the command.
http://xbmc.local/xbmcCmds/xbmcHttp?command=ExecBuiltIn&parameter=XBMC.updatelibrary%28video%29
What I'm doing is building an integrated interface for my XBMC home theater, ...
I need blog software for IIS7 and a SQL Server 2008 backend. I don't know if this is required, but the application (website) I'm hosting is in asp.net (vb.net). Does anyone have any ideas?
I checked out das blog, and graffiticms and they're very old. Thanks in advance.
...
I am attempting to write a VB.net application which will allow users to create their own widget plugins in html/jscript and i would like to set my own security options in the applications settings allowing users to choose what can run or not eg scripts, flash, activex.
I would like to allow activex controls to be used without the window...
I'm not trying to start an argument here, but for whatever reason it's typically stated that VB is case insensitive and C languages aren't (and somehow that is a good thing).
But here's my question: Where exactly is VB case insensitive? When I type...
Dim ss As String
Dim SS As String
...into the VS2008 or VS2010 IDE the second one h...
Let's say we have a value coming in through the URL of a page. Example: www.test.com/page.aspx?&Key=Val. Val is retrievable through Request.Querystring("Key").
Is there an accepted best practice for assigning a QueryString Value to a parameter of a SqlDataSource defined on an ASPX page?
Options that I know of:
Do not include paramete...
Is possible? I plan to backup mysql database using vb.net. If you know any beginner tutorial on how to do this, then please let me know.
...
I've read a few posts here on StackOverflow about task scheduling, but I'm not sure that I get it right. I'm coding (in VB.Net) a backup application, that I'd like to add as a scheduled task (in fact, I'd just like to let the user decide to run it every day at, for example, 3 AM).
I've read posts suggesting to use a windows service for ...
I thought I had type editors and converters nailed until I tried to persist a Readonly Reference type property after editing it in a UITypeEditor.
In my UITypeEditor, because I'm working with a read only property, I'm careful to pass back the original value (after updating the relevant sub property).
This change is reflected immediatel...
Is it possible to encrypt a file/folder in vb.net?
...
Hello everyone!
I'm posting this here since it took a lot of time for me to understand how the whole thing works when trying to hide a form in the systray.
My question basically was: How can I hide a windows form running operations to the system tray?
CFP.
...
Actually i want MAC address of the remote server so i am using SendARP method. But problem is that it is returning "" or "00-00-00-00-00-00".
Actually in my network some PC's having two IP addresses.I think server also having the two IPs. For some PC in the same network my program works fine, only for 2-3 machine its giving this kind o...
Hi all,
I wonder if someone can help me;
In PHP you can use fopen(Path) to read from a file. The Path can be either a local file (in the usual formats /etc/file or c:\file.txt) OR it can be a URL in which case PHP will open a http connection and read from the remote location
I'd like to achieve the same in VB.Net. I'm not aware of any...