One Possible (working) Solution:
Private Sub ReadXMLAttributes(ByVal oXML As String)
ReadXMLAttributes(oXML, "mso-infoPathSolution")
End Sub
Private Sub ReadXMLAttributes(ByVal oXML As String, ByVal oTagName As String)
Try
Dim XmlDoc As New Xml.XmlDocument
XmlDoc.LoadXml(oXML)
oFileInfo = New InfoPathDocu...
I am trying to pass parameters from Visual Studio using VB.net to a Crystal report.
I am using the following code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If IsDate(MaskedTextBox1.Text) Then
Dim report As New invoice4
report.SetParameterValue(0, gC...
The following code causes a NullReferenceException
tStartParameter = String.Format(tStartParameter, tTo, tSubject)
tProcess = Process.Start(New ProcessStartInfo(tStartParameter) _
With {.UseShellExecute = True})
tProcess.WaitForExit()
tStartParameter is:
https://mail.google.com/?view=cm&fs=1&tf=1&to=t@example...
Hello,
I am using Subonic in a VB.net application for the first time (I have used it succesfully in a WebSite project plenty of times). I followed the 2nd part of the 'Getting Started' video to actually generate the DAL source files as opposed to the build provider method and everything APPEARS to have gone like expected. However, no...
Hello All,
I am working on a way to send commands to an Arduino board from a web site. The Arduino board is connected to the computer via a USB port (a COM port)
I have managed to connect and control the board using a VB.net program. I also wrote a vb.net class that can instantiate a COM connection and send and receive messages.
My ne...
I have the following regular expression for validating a file name:
^(([a-zA-Z]:|\)\)?(((.)|(..)|(. %5D">^\/:*\?"\|<>. |([^\/:*\?"\|<>][^\/:*\?"\|<>. ]))?))\). %5D">^\/:*\?"\|<>. |([^\/:*\?"\|<>]*[^\/:*\?"\|<>. ]))?$
I can get it to work in VB.NET but not C#. I can't figure out why it works in one but not the other.
VB code:
Regex.Ma...
Ok, so I have a listview on one form, and when a button is pressed it opens up a new form with the contents of the selected listview item and it's subitems in a series of textboxes. The user can then change the data in the textboxes and either press save to make the changes or cancel to close the window.
What command would I use to chang...
This seems to be a great article by Scott Mitchell for creating syndicated feeds in ASP.NET 3.5. The problem for me is that it uses C# and Linq, which I'm not as sharp on at the current time.
http://dotnetslackers.com/articles/aspnet/How-to-create-a-syndication-feed-for-your-website.aspx
Does anyone know where an example might exist f...
I have a DataGridView object to which I've bound a list of objects (of type Asset) returned from a database query.
I'm programming in VB using Visual Studio 2005.
I want to grab two copies of the bound object (calling them oldAsset and newAsset) from the selected row in the DataGridView, update newAsset based on input from other contro...
Is it considered an acceptable practice to use Modules instead of Classes with Shared member functions in VB.Net?
I tend to avoid Modules, because they feel like left over remains from VB6 and don't really seem to fit in anymore. On the other hand, there doesn't seem to be much difference between using a Module and a Class with only Sha...
Hi i am trying to increment a char in vb.net, eg:
Dim letter As Char = "a"c. and i want to make it b, and so on. how can i do this?
...
I have a grideview that displays rows that will be deleted across servers by the click of a delete button in the footer of the grid. This delete will take a long time so i want an updateprogress bar. I'm not really familiar with it so I don't know where to begin.
...
I have a dropdownlist and a textbox with a button on a form. When a button is clicked it does not go to my onclick even in the code but it goes to my dropdownlist's selectedIndexchanged event. How can I fix this?
...
Ok, so I have a base class which declares the event StatusTextChanged. My child class, of course cannot directly raise this event.
So I wind up with something like this (for simplicity sake):
Public MustInherit Class FooBase
Public Event StatusTextChanged(ByVal StatusText As String)
Protected Sub RaiseStatusTextChangedEvent(By...
I'm in a ASP.NET application using Windows Authentication.
I'm using HttpContext.Current.User.Identity.Name to get the username of the currently authenticated user, which gets me a username in the format DOMAIN\USERNAME. This is working fine.
Is there an easy way to convert this to a display name (e.g. "Richard Gadsden") like the one ...
I am still developing this function, but here is what I am intending it to do. This function will accept an Object, then try to determine its type. There are a specific set of types I am looking for: Integer, Boolean, Date, String. What I have so far is pretty privative, but it seems to be working so far:
Private Function DataType(ByVa...
Update: My problem doesn't seem to be with the SQL server. I executed an update statement inside the database manually against the view and I was able to update the Bar table. I'll close this and research the OleDbDataAdapters more since I think the problem lies with them.
This question applies to MS SQL Server 2000. How do I determi...
Is there a way to make VS2008 work with the old (vs2005 crystal reports) assemblies and not require any updates to be installed in the client machines?
We have upgraded a Visual Studio 2005 .net 2.0 solution to Visual Studio 2008. The purpose is to take advantage of the IDE improvements and because it supports multi targeting. The sol...
I'm trying to create a new thread and send multiple parameters as well as a delegate to report back.
In VB8 I always hate to do this because it requires either introducing a new class/structure or a delegate.
Is there any better way to do this in VB9 ?
I'm looking for a solution something like this :
Dim Th As New Thread(AddressO...
Pages have Roles. Users have Roles. A user may only view a page if he and it share one or more roles.
This works:
Dim Allow As Boolean = False
CurrentPage.Roles.Load()
For Each r As Role In CurrentPage.Roles
r.Users.Load()
For Each u As User In r.Users
If u.Id = CurrentUser.Id Then
Allow = True
...