I have a windows form application written in VB.NET 2005 which opens Excel, imports a text file into a worksheet and e-mails it to the end-user.
Everything works fine when it is on my own system, but when I put the executable file on the server along with all the other files in the bin\release...
I have the following code in Excel VBA that I'm trying to convert to VB.NET:
Workbooks.OpenText(Filename:= _
"C:\temp.txt", Origin:=437, StartRow:= _
1, DataType:=xlDelimited, TextQualifier:=xlDoubleQuote, _
ConsecutiveDelimiter:=False, TAB:=False, Semicolon:=False, Comma:=True _
...
I have an application that has a treeview setup. Depending on the node selected on the treeview a datagrid is loaded with appropriate data from SQL.
At this point the treeview shows with the node highlighted and the datagrid is displayed with the data.
I want to have the cursor positioned in...
I have a program which reads a series of employee names and ID numbers into a dataset and then sets the datasource of a combobox to that dataset. Below is some of the logic:
.cbxEEName.DataSource = ds.Tables("EmpmastTbl")
.cbxEEName.ValueMember = dt.Columns("EmpID").ToString...
I have coded a combo box to auto complete based on a collection of names that I load. The combo box is working great in Windows XP, but when we run the same application in NT the events for the combo box don't seem to all work. Are there some events that do not work in NT but work on 2000 / XP...
I have a combobox populated with 1300+ names. I want to make it easier for my data entry clerk to enter the last name, and it pulls from the list.
I found the following link:
http://support.microsoft.com/default.aspx?scid=kb;en-us;320107
This knowledgebase article lists some code that...
I'm new to SQL and trying to understand what is most likely a simple question.
I'm trying to use UNION to pull together a result set of Name and Employee Number. Unfortunately there are duplicates in the two tables. The UNION syntax is supposed to weed out duplicates, but I have this situation...
This might be a simple question, but I can't seem to find an answer...
I have a tree view with several parent nodes and three child nodes under the last parent.
For all the parents I can change the individual forecolor using the following:
.Nodes(1).ForeColor = System.Drawing.Color.Black
How...
While testing a service we've setup in Visual Studio / VB.NET we've found that the service will start without a problem if the files that it is monitoring are local to the machine the service is running on.
As soon as we try to monitor a file on our network, and start the service, the...
I've found code to display the name of the program that is currently running:
MsgBox(System.Reflection.Assembly.GetExecutingAssembly.GetName.Name)
and I've found code to display the sub routine I'm currently in:
MsgBox(System.Reflection.MethodInfo.GetCurrentMethod.Name)
Does anyone have code...
We have several applications that will be executing on multiple machines. These applications will be placed on our network and setup with an xcopy style of deployment. To accomplish this task, we had to adjust the Framework configuration, Code Access Security for the machine to Full Trust for...
I've setup a deployment project which installs 4 merge modules that a crystal report application uses. This functionality works fine.
The next option I wanted to tackle with the same deployment project was to have the setup install the framework if the client does not already have it. I was...
In our shop two of us have been creating applications using CrystalReports in VB.NET. The development and live environment are both XP SP2.
While testing the applications on our own development systems, everything worked / tested out fine. Upon implementation on the client's PC, we're...
I'm not sure how to find freespace on a diskette. I've searched MSDN, but only found examples of VB6 and scripting examples.
I'm trying to find a VB.NET solution. Does anyone have any sample code where they look up how much space a file will take and then check how much space is available on...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.