vb.net

Check mail attachment

Hi! I am using vb.net to display email from outlook express! Everything work fine but when some message has attachment, i can not display message that email has attachment! This is my code: Private Sub LoginButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LoginButton.Click Dim oItem Dim i As ...

How to get the os name of selected computer in vb.net ?

i want to get the os information for the selected computer name or ip address. i have the list view to display the computers name in LAN,How to get the Selected computer's os details ie (which os,username of the computer) how to do this in vb.net? ...

Support for VB.NET's Imported Namespaces feature in C#

I am use to VB.NET. The game source code I am learning from is written in C#. I find it annoying that I have to add using System.Diagnostics to the source code in order to type Debug.WriteLine.... I checked under project properties, but I cannot find the References tab that allows me to add namespaces to Imported Namespaces. Where do I f...

How to Disable dynamic searching when typing in a listbox

Programming language is vb.net ...

ASP.NET Create User Wizard - Customisation help

Hi folks, I have used the asp membership feature to add user management to my web app. I have modified the default tables to include a couple more fields. On the create user wizard I have turned wizard step one into a customizable template and have added in the controls for the 2 fields. Do I know just modify the stored procedure used...

Validate Div tag seperately...

i have 3 div tags.Each having no. of textboxs and button.Each textbox having validation.For all button causesvalidation property is true.If i click "button1" in "div1" tag will cause validation of other textbox in other div tags.I dont want to do this ? How to avoid this? ...

Help architecting a testable API client

I have to interface with an web API. It accepts post requests and returns XML data. It requires a lot of asynchronous processing on the client side, so that it can retry multiple times in case of failure without interrupting the main client process. The code needs to be well tested. I am creating a mock version of the API to test against...

Redirecting the Standard Output/Input/Error into/from a textbox

I was making a VB.NET application that can be used to edit, compile and run C programs. I used the Process.StartInfo.RedirectStandardOutput property. But I'm unable to redirect it to a textbox, since it is not of the string type. How do I redirect the output coming from the cl.exe process to my textbox? ...

VB.NET class inherits a base class and implements an interface issue (works in C#)

I am trying to create a class in VB.NET which inherits a base abstract class and also implements an interface. The interface declares a string property called Description. The base class contains a string property called Description. The main class inherits the base class and implements the interface. The existence of the Description pro...

KeyUp event works in first winform, but not in second, why?

I have a winform program where I am trying to include PF functionality in tandem with button/mouse-click functionality. On the first screen that opens in the application, the keyup event works. I changed the KeyPreview property to True and wrote the following code: Private Sub Vehicle_KeyUp(ByVal sender As Object, ByVal e As System....

Convert VB.NET code to C#

Hi people, I have three projects written with VB.NET (2005) and have to convert them to C# code. (I know that i don't need to convert codes of .net languages at all). I have no time to rewrite them, need a tool or script to convert. Note: they are console applications. ...

How do I control when a contextMenuStrip is displayed?

In vb.net (2008), I want to be able to control when a contextMenuStrip (context menu) is displayed. I don't want it to always appear when the right mouse button is clicked...only when certain criteria within my program are met. I figure I would use addHandler but I'm not exactly clear on how to completely control the opening of the con...

Why would the VB.NET compiler think an interface isn't implemented when it is?

Update I don't think I was clear enough when I originally posted this quesion. Take a look at these screenshots. (Link to bigger screenshot here) Notice the portions I've boxed in red. The class displayed here does implement INotifyPropertyChanged, but the VB compiler seems to think that the PropertyChanged event as declared does no...

Type 'xxx' is not defined, BC30002 error.

Hello, It is possible to create an instance of a C# class within a aspx.vb codebehind file? When I try this within the Page_Load event: Dim oFlow As New Flow(HttpContext.Current.Request) I get the Type 'Flow' is not defined. The Flow class itself is located here: App_Code/CSCode/Cust/Frm/Flow.cs There's no namespace associated wi...

Custom Event - invokation list implementation considerations

I'm looking for some pointers on implementing Custom Events in VB.NET (Visual Studio 2008, .NET 3.5). I know that "regular" (non-custom) Events are actually Delegates, so I was thinking of using Delegates when implementing a Custom Event. On the other hand, Andrew Troelsen's "Pro VB 2008 and the .NET 3.5 Platform" book uses Collection ...

System.Net.Dns.GetHostAddresses("")

I have an application I have been working on and it can be slow to start when my ISP is down because of DNS. My ISP was down for 3 hours yesterday, so I didn't think much about this piece of code I had added, until I found that it is always slow to start. This code is supposed to return your IP address and my reading of the link suggests...

OleDBException was unhandled

I am trying to debug my program and I am getting an OleDBException Was Unhandled. It then goes to the path where the error is located. The executable is listed in the bin file and I have re-built and built the application several times. The application is supposed to extract data from an external MS Access database. Note my code: Pu...

adding jpegs to vb.net application

i am using itextsharp and creating a PDF with images. currently the images i am using in the application are on my desktop, but i will need to make an installation file that will put the images in a specified directory on the users computer and be able to call them from the specific directory. how do i include pictures with my build?...

Are vb.net eventArgs maintained at a "system" level?

I have a custom developed control I am using that somebody else wrote. For some reason, when the control was written, they did not write an event handler for the "mouseDown" event so when I mouseDown on the control, no event is fired. What I am basically trying to do is capture which mouse button (left or right) is pressed when the con...

Displaying an image.

I am using vb.net running a backend MS.Access database and I am wondering what is the code that I can use to display a picture of an image when the field name is selected. My MS Access "field" name is Cars_Types: in the files I have the data "GM, Chrysler, Toyota, Honda, and Ford". The name of my database is ModelCars.accdb The pict...