The following code works fine but seems to leave instances of excel.exe running in the background. How do I go about closing out this sub properly?
Private Sub ReadExcel(ByVal childform As Fone_Builder_Delux.frmData, ByVal FileName As String)
' In progress
childform.sampleloaded = False
Dim xlApp As Excel.Application
...
Imports System.Net
Public Class DownloadStuff
Dim downloader As New WebClient()
Private Sub Progress_Validated(ByVal sender As Object, ByVal e As System.EventArgs) Handles Progress.Validated
AddHandler downloader.DownloadProgressChanged, AddressOf DownloadChangedHandler
Dim uri As New Uri("http://www.example.com/...
I am using VB.Net. I have an object class called clsA(of T as clsB). Depending on what T is, I want to do different things. Let's say that clsC and clsD both inherit clsB and therefore can be used for T.
If I have an instance of clsA(of clsC), how can I get the inside type (i.e. clsC) using reflection? Solutions in C#.Net would be fi...
I'm writing out an XML file using VB.net. When I try to create another element to be written past the first, it errors out saying:
"Token StartElement in state EndRootElement would result in an invalid XML document. Make sure that the ConformanceLevel setting is set to ConformanceLevel.Fragment or ConformanceLevel.Auto if you want to...
Here is my problem:
I developed one application in VB.Net in VS 2008 Express Edition on MS Vista. I published the application and created the installation setup.
Now when I install this application on any Vista machine, it runs without any problems, but if I install it on an XP machine, the installation is clean, but when I launch the ap...
Hi,
I have a VB.net application which is using the MS-Access database. I created setup for this application to deploy it on to the other machine. When I connect it to the database it is showing the following error message: "The .Net Framework Data Provider require Microsoft Data Access Components(MDAC). Please install Microsoft Data Acce...
In c# you can have
public class Foo
{
public Foo(string name)
{
//do something
}
public Foo(string name, int bar) : this(name)
{
//do something
}
}
Is there a VB.Net equivalent?
...
Hello,
I am trying to create a textfile if it doesn't exist or append text to it if exists in vb.net.
For some reason, though it is creating the text file I am getting error saying process cannot access file.
And when I run the program it is writing text but how can I make it write in new line.
Dim strFile As String = "C:\ErrorLog_"...
Hi, this is probably pretty simple, but I've noticed that when trying to start the Windows Media Player (AxWMPLib), it takes the "player.url = path", and only then does the player's Play-button get activated. Thing is, I want to play sound files taken from the URL of a column in a database. And when clicking on that row, the mediaplayer ...
I'm experiencing some weird behavior when trying to modify some DataTable objects. Upon the second call to the subroutine, I get the following error when I to copy the source DataTable to a working set:
System.Data.ConstraintException was
caught Message="Column 'pk' is
constrained to be unique. Value
'path0.tag0' is already...
I have a problem with accessing values in the session through pagemethods.
The example below demonstrates the problem in a simple form. There are three buttons on the page and each of these invokes a different pagemethod, that, in turn accesses what I would expect to be the same variable from the session. In fact the value returned is ...
i have a string that looks like this
"Patient Name, Doc Name, Patient ID, something else"
i want to extract each one of these and put it in a variable. such that var1 will equal "Patient Name" var2 will equal "Doc name" etc.. using instr and mid. what is the best way to do it?
...
Hello all,
I have an image upload facility in my asp.net project, when uploaded a thumbnail of the image is generated and saved to disk.
What I would ideally like to do is apply some nice styling effects to this thumbnail image.. similar to the look of the icons on an iPhone.. perhaps a slight gradient, smooth rounded corners, and a bo...
Hi
I need to walk or interact across all nodes and child nodes with VB.NET 2008 and display thru debug.print.
Thanks.
...
I would like to have some explaination about the characteristics of a primary key in the table of such database.This is for vb 2008 express edition,since im new to this language,if this is true, as far as i understand about the characteristic in setting the primary key on each field for true.My question is if you are doing an updates/edi...
I'd like to create a Dictionary that is indexed by Strings: Dictionary(of String, ...)
I'd like the Type after the comma to be an Array of MyObject's.
If all I do is the following:
Dim D as new Dictionary(of String, Array)
I feel like I'm missing out on some performance very time I access a member:
Dim Object1 as MyObject = MyDict...
I'm developing a Silverlight application where I want to simulate a console. There are a lot of ways to represent this - StackPannels, grid of TextBoxes, etc - and I was wondering what the bets fit would be?
Requirements:
Display an 80x20 grid that scales based on parent size
Be able to update an individual cell's character
Be able to...
What is the difference between creating a thead using BackgroundWorker and creating a thread using System.Threading.Thread?
...
This video shows how to add validation for a textbox:
http://msdn.microsoft.com/en-us/vbasic/bb643821.aspx
What about date ? I can't make it work for date.
...
I have a RichTextBox and I need to find the position of the vertical scroll bar.
Is there any way to do this without Pinvoke? If not, what is a way to do this WITH Pinvoke?
I need to return an integer value.
Thanks for the help!
...