vb.net

Determine which mouse was clicked (multiple mice devices) in .NET

Hi, I want to detect when my touchpad is clicked! I normally use a usb mouse, so I don't use the touchpad for anything. Instead I'd like to make it possible to perform an action in .NET, when the touchpad is clicked. This way I can use it as a shortcut: One tap and something cool happens. Is this possible, and if yes, any clue how? I...

WPF + Communicate between multiple application instances

Hi, I need to grab information between two instances of my WPF app (the contents of a public collection, to be precise). Any help? ...

Visual Studio 2010, using VB.NET. Intellisense does not recognize new property until I recompile

I have an ASP.NET VB.NET web project that references a VB.NET class library. I add a new property to a class in the class library, then, from the web app, I expect to be able to use it immediately w/o errors and with full intellisense. It used to work in 2008. When I compile the class library, it becomes available but not until. W...

.Except<T> is throwing an Exception

I have the following code: Public Shared Function GetAvailableManufacturers() As List(Of Manufacturer) 'first get all the live orders and extract their mfrs' Dim sos As List(Of OrderForm) = GetFormsByStatus(StockStatus.Building) Dim unavailableMfrs As New List(Of Manufacturer) For Each so As StockingOrder In sos ...

Please help debug this ASP.Net [VB] code. Trying to write to text file from SQL Server DB.

I am a PHP programmer. I have no .Net coding experience (last seen it 4 years ago). Not interested in code-behind model since this is a quick temporary hack. What I am trying to do is generate an output.txt file whenever the user submits new data. So an output.txt file if exists should be replaced with the new one. I want to write dat...

Report Viewer - Out Of Memory Exception

Hi, i'v got a problem with the Report Viewer form .NET 2008. I'ave to get Some 100000 Records for my company for a year dump report. The problem is i get the OutOfMemory Exception on the design of report. Do you know how can i fix it? I get only the column i need and i use a Dataset to display. Thanks Julien ...

ListBox Control in VB.NET 2008

Hi all, I am currently working on a multi branch desktop based project using VB.NET 2008. My Admin want to see the list of currently working branches and not working branches. Additionally they want to know how long a branch is not working. To display the offline branches I first take a ListBox control named lstListBranch and then upo...

how to attach multiple files as e-mail attachment in vb.net ?

How do I attach multiple files as e-mail attachments in vb.net? I am trying to use a list box where user will select the file and attach which will appear in a listbox. And also I would like to give the option to delete the attachment also. ...

Get contents of local folder in javascript (or ASP.NET VB)

Is it possible for a webpage to popup a open folder dialog, ask the user to select a folder, then show the contents of that folder in a list(or something) in the webpage. It won't write to the files, only read them. The webpage is hosted remotely. Jonathan ...

Converting date to day of week

Hello, is there any ready to go solution within the microsoft framework, regarding conversion of date to day? For example, i would like to convert this string 21/03/2010 (dd/mm/yyyy) to Sunday ...

how to save the compose message text in draft automatically ?

Hello, we have a vb.net application with send and receive mailing also. Now we have added a session timer of 30 min but the users are complaining that they are facing a problem when they write a long text message or while composing they get busy in something else and when they return back to continue composing message , they are redirect...

simple tutorial on how to use sqllite

I'm using VB.NET and MSSQL 2005 to create an application. I was told I should rather use SQLite as I want my application to be a standalone one with embedded database. Can someone please provide me with a step to step tutorial on how to create a standalone application with an embedded database? Sorry, I'm quite new to this. Thanks for r...

Puttting together binding navigators in a project

I am working on a group project in vb.net, in which all my team members are working on individual tables of a database. All of us are using binding navigator,where the GUI is created by drag and drop from the table. Is it possible to attach all these pieces together with imports or references? Will the changes made to the database whil...

LiveJournal xmlrpc date out of order option

I am having an issue adding posts to LiveJournal via the xmlrpc api they provide. I want to add entries older than what I have listed on LiveJournal already. But I get a response saying: "You have an entry which was posted at 2009-09-06 18:32, but you're trying to post an entry before this. Please check the date and time of both entries...

How to make a web browser with tabbed browsing with vb 2008?

I've tried multiple times to create a web browser with tabbed browsing. I know that I have to use "tab control". I have succeeded in creating a semi-tabbed browsing. People are able to add new tabs, but the webbrowser component only appears in one tab page. Coding: Form1_Load: Private Sub Form1_Load(ByVal sender As System.Object, B...

Could not access CDO.Message

How can i resolve this kind of error using vb.net 2003? Could not access CDO.Message Object ...

Create controls from code - VB.NET

Hello everyone, I want to know if I can create a WebBrowser through code in Vb.NET, instead of dragging a webbrowser into the form. Simple enough to say, I would greatly appreciate your help. ...

Events raised by BackgroundWorker not executed on expected thread

A winforms dialog is using BackgroundWorker to perform some asynchronous operations with significant success. On occasion, the async process being run by the background worker will need to raise events to the winforms app for user response (a message that asks the user if they wish to cancel), the response of which captured in an CancelE...

My embedded resource has mysteriously vanished from the assembly, vb.net vs2010

I have an application that has a .sql file in it. The sql file is set to Embedded Resource. When I run the following code, I get an empty string array indicating there are no embedded resources. However this project has been working fine previously. Any ideas? Dim p As String() = Assembly.GetExecutingAssembly().GetManifestResourceName...

How to move to next page in datagridview

How to move to next page in datagridview.I have n number of pages.I enabled autopaging.Its showing ">" link.But when i am clicking it is not moving to next page.My grid is inside a update panel....What is the reason..Pls help me.... ...