vb.net

How do I access files from another computer connected over LAN?

Can anyone provide the resource to learn making connection between computers over the LAN and retrieve files? EDIT: And can I browse the folders like its done in the local machine? ...

Several Daily Excel Files into one using VB

OK, So Ive got several Excel files that come into a folder each day. For example, Ill have 08-26-2010-1.xls, 08-26-2010-2.xls, etc. Each file has the exact same formatting structure, etc. I need to take those daily files and then stitch them together in a Vb console app. Can someone please help put me into the right direction? Ive found...

Launch a winform application from a windows service

Hi, Please let me know how do I run the app under current logged in user from the service. To give you background, I have a VB.NET Windows service whose sole functionality is to run a Winform App at a specified time. Apart from that it also sets a system wakeup timer so that the system can be woken up at the specified time, if it goes ...

How to use reflection to unit-test an internal (Friend in VB) class within an assembly, when the InternalsVisibleToAttribute is not an option?

I have a solution with two projects within: Company.Project.vbproj Company.Project.Tests.vbproj Within the Company.Project.vbproj assembly, I have a class FriendClass.vb which scope is Friend (internal in C#). Now I wish to test this FriendClass.vb from within the Company.Project.Tests.vbproj assembly. I know about the InternalsVisib...

How do I find the file path from a namespace.class name?

I'm programatically looking ito a .aspx file and getting the file class name declared in its CodeBehind. For example, when analyzing myFile.aspx I read in its Page Directive and found its CodeBehind equals "myApplication\myPage.aspx.vb". Then I use the code below: [Code] Dim Assm As System.Reflection.Assembly = System.Reflection.Assem...

****** Modify/Update LDAP Manager Attribute with Asp.Net

Hey Guys, I'm having an issue with modifying MANAGER attribute in Active Directory. I know that manager property is type of DN (distinguishedName). I have no problem updating any other properties like title, department, company(it's type of String), but how do i update DN manager property? Thanx All... Dim de As DirectoryEntry ...

Execute sql script and not wait for completion

I have a sql stored procedure that runs for about 3 minutes, I am looking to execute this stored procedure from asp.net, but I know that if I do, that asp.net will most likely time out. I'm thinking of just creating a job within sql to have it execute that stored procedure, and have asp.net call a stored procedure to call that job. I ha...

C# to VB.net project conversion

I am trying to convert a C# project to a vb.net project but am having some difficulties. The following is the click event of a button: private void button2_Click(object sender, EventArgs e) { Appointment m_App = new Appointment(); m_App.StartDate = dayView1.SelectionStart; m_App.EndDate = day...

How do I create a secondary message loop in vb.net?

I've got an app working semi-background stuff in the GUI thread. Another thread won't work and a timer won't work. But I want the app to be responsive while I'm going my 'background' work. I cound use application.doevents - but that gives me 3 bad choices: loop with no sleeps - end peg an entire CPU (my task waits on stuff besides cal...

In VB.NET, wait for a Timer Or a KeyPress

I have a console application which is intended to just keep running until it is killed. Essentially: <setupCode> Do <doProcessing> Thread.Sleep(<interval>) Loop Essentially this will keep running until the user kills it, obviously. What I'd like to do is replace the Thread.Sleep call with a wait-condition waiting on eith...

DependencyProperty keeps it's value after destruction

Scenario: A VB6 library calls a method in a .NET-Assembly through COM and with that opens a WPF-Dialog, which is contained in another .NET-Assembly that is early bound. This WPF-Dialog got a complex master/detail implementation over a DependencyProperty of type ObservableCollection on this dialog. The DependencyProperty looks something l...

Operation did not succeed because the program cannot commit or quit a cell value change

I know it could be asked several times over SO but i still need your help. My grid is on some another form where its events are written. In an another form i have the following code which from whcih i am accssing the grid via forms object and exception is coming. I got the following error message : "Operation did not succeed because the...

Tab Control needs multiple pages?

I want to create a UI that uses a tab control to display multiple listview controls, one on each tab page. The number of tab pages/listviews is dynamic and could reach around 20. The listviews are in virtual mode and are populated from an object (custom class) in memory. It seems very wasteful to create 20 listviews. I seem to rememb...

How would one create a UI such as this for an application?

Anyone know how I would go about implementing a UI that's very customized, something like this? (Programming in VB.net right now if it matters). Have yet to deviate from the standard windows form look but I've got a project which I would like to visually style out how I want. Thanks in advance :) ...

Workflow Foundation - WCF / Custom entities can't be passed between services

Hello, I've created a workflow which transmits data from one service to another. The problem is that the Entities aren't recognized. Service A : Content provider, contains a custom entity declaration Service B : Transform list of entities declared in A in a new form of entities So in a schematic view : WF -> A -> Entity WF -> B -> A (...

.Net Framework problem

Hi, While trying to install my application, when system tries to install .Net Framework, it gives an error. Is there any source where I could download uninstalled .Net Framework 3.0 and provide my clients with application? Thanks and best regards, Furqan ...

Including .NetFramework in my Setup file

Hi, Is it possible that I could include .NetFramework installation in my setup so when user runs setup, all dependencies including .net framework are installed with that setup? Thanks Furqan ...

VB.net Compile Time Error

Hello All, I am having a problem while compiling one of my projects in vb.net. I have a solution consisting of multiple project,one of which is the exe. Now when i am trying to compile that project i get an error which states "Error 140 Invalid argument. Length cannot be less than zero. Parameter name: length" Can anyone please he...

How to capture input from USB?

Searching found many answers along the lines of it depends on the device driver", but I don't think that it's that way here. I have a cheap & nasty RFID tag reader. You just have to open notepad, touch a tag to the read and its serial number appears in notepad (I have not tried it in Linux). Anyhoo, how can I programatically capture th...

Correct this SQL Query: error "Microsoft Jet database engine cannot find the input table or query 'IF' "

Hi every one, i should say hi experts :D . Help me with this pretty code :) The database: "ID (Primary key)" | "Title" 0 | "title1" 1 | "title2" 2 | "title3" 3 | "title4" Sub AddRecord(ByVal Table As String, ByVal Columns As String, ByVal Record() As String) D...