I have the following routine:
For j = 1 To NumItems
dbValueLookup.Load(j)
Using scope As New TransactionScope()
For i = firstIndex To lastIndex
'dbValueLookup is basically just a Dictionary of items already in the DB
If dbValueLookup.ContainsKey(i) Then
'updateData is a subroutine that updates this row w...
I have a csv file as an attachment to the inbox.
They should be able to view the attachment when they click on the link, but how do I display them the csv attachments??! the browser just parses it and displays the content instead of poping the open/save window.
anyone had to open a csv file as an attachment on web before? thanks.
...
My goal here is to get stack trace information from a dynamically loaded assembly. If the dynamically loaded assembly just throws the error back to the caller, the stack trace information doesn’t tell you the location in the dynamic assembly where the error occurred. If I throw my own exception, passing in the original exception, it wil...
My ultimate goal is to allow users to select a file from a dialog as if they are uploading a file. Instead of file being saved to the server, a hyperlink will be generated from the file's path. This hyperlink will then be used on our intranet page in order to open the file located on our network share. Is there any practical way to ac...
I'm currently using VB.Net 2008.
The project has the "make single instance application" checkbox checked.
The application works by hiding the form when the form is minimized.
Private Sub Form1_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Resize
If Me.WindowState = FormWindowState.Minimized Then
...
Given the following vb.net class:
Friend Class PairCollection(Of TKey, TValue)
Inherits List(Of KeyValuePair(Of TKey, TValue))
Public Overloads Sub Add(ByVal key As TKey, ByVal value As TValue)
Me.Add(New KeyValuePair(Of TKey, TValue)(key, value))
End Sub
Public Function FindByValue(ByVal value As TValue) As Li...
Hi All,
I have generated an xml spreadsheet (*.xls) using XSL.
I have another program that reads this spreasheet and processes it.
Dim sConnectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=" + filnavn + ";" + "Extended Properties=Excel 8.0;"
Dim objCon As OleDbConnection = New OleDbConnection(sCo...
In C# code, we can just right click on the class name and then select refactor and then extract the interface for that class.
I wonder if this could be done on VB. Im using the same IDE VS 2008
...
I am trying to compile my Visual Basic .NET project named Myproject.sln via command line commands.
I need to build and then to compile that solution.
I read all questions here how to do it but I couldn't make it work.
My Visual Basic .NET compiler is called vbc.exe. Any idea how I do that thing?
I am using Visual Studio 2005.
I have...
I'm using the BusinessObjects SDK to interact with objects in its repository.
The File Class has methods for sending/receiving (CopyTo and Overwrite) binary data to/from the File Repository Server (where files like Crystal Reports are stored), both of which have an overload that supports 'Binary data (safearray of VT_UI1)'.
While I don...
Hello all
im coming from unix / server / c++ /java background with no GUI experience
i need to build windows GUI application , i need to build it fast i was told that
the .net family is the exact thing for such job .
but there is VB.net and c# what should i choose what is faster and better for such job ?
what will be easier for none...
Update: (Please vote to close) This question is unresolved, and is likely a list view bug. It can be replicated by using the example code from the MSDN link below, and adding this code after the list view initialization code:
myListView.View = View.Details;
myListView.Columns.Add("Column1");
myListView.Groups.Add...
Hi,
I Want to know which one is preferred while coding to use Static Methods or normal instances, I prefer to use static if they where few but if there was many of them I start to get some doubts
Ex
EmployeeCollection EmpLst = EmployeeManager.GetAllEmployees();
Or
EmployeeManager EmpMgr = new EmployeeManager();
EmployeeCollection E...
Hello everyone,
Ive tried searching for hours now and cannot find out why my code (aka, me.) is failing
Basically... I have a listview control which I'm passing a datatable of products (ID, Name, Description and Price columns), and im trying to make it so that when the "checkout" button is pressed, it parses through all the controls on...
Here's the code on the sending side of my sockets:
Private Sub Send(ByRef Buffer() As Byte)
Dim obj_StateObject As New StateObject
obj_StateObject.WorkSocket = m_tmpSocket
m_tmpSocket.BeginSend(Buffer, 0, Buffer.Length, SocketFlags.None, New AsyncCallback(AddressOf OnClientSendComplete), obj_StateObject)
...
I have a VB.Net web site and on my sign up page I am storing the ViewState in Session. I am using the following code to achieve this.
Private _sessionViewStatePersister As System.Web.UI.PageStatePersister
Protected Overrides ReadOnly Property PageStatePersister() As System.Web.UI.PageStatePersister
Get
If _sessionViewStatePe...
I am totally new to serialization and would greatly appreciate any help.
I am having problems deserializing the response message I receive from the proxy class I created through WSDL.exe. I believe the problem lies in the fact that I am using XmlArrayItem, which has nested items within.
Instead of getting:
<results xmlns="urn:partner...
I'm planning to let my site users upload photos through their mobile devices specifically Iphone.Currently, they can only upload photos through their desktop or laptop.What would be the best approach using ASP.NET 3.5 and Visual Basic?Thanks in advance...
...
Hi, i need to generate an excel sheet from an excel template which contains drop down lists. I need to use the template and populate the with data from datbase and select the appropriate value from the drop down lists and generate the new excel sheet. I am in very bad situation and need it asap.
...
Hi, I'm doing some converting of wav-files to mp3 and I use lame.exe.
Now, when using "lame.exe sourcefile.wav endfile.mp3" in cmd it works great and shows it's own progressbar. But is it possible to have my own progressbar inside my application form to show it's progress? Because when using the command from my application, it just conve...