vb.net

Date in Dropdown list box

I have 3 drop down list having Date,Month ,Year.So when Updating I want this 3 Field to be a single Datafield in Sql Database. Iam using Asp.Net 2.0 Version(VB.Net).(Now these 3 Dropdown list values are saved as 3 Datafields in sql Database) ...

How to get "extended properties" of Access DB Using OLEDB or ADO connection.

Hi, I am trying to access MS-Access DB extended properties like Author,Owner, Last Modified Date, Last Accessed Date etc. using vb.net. Please help me on this issue... ...

.Net listbox / combobox

Hi, I just wanted to check with you guys if you know what the maximum number of rows - in a combo / list is. I know that VB6 had a 32k limit - I couldn't find anything to confirm with a quick google search so I thought I'd throw it out to the experts. Cheers, Dave ...

What is the best method to find the newest last modified time of a folder of files?

I have a folder with subfolders of files. I would like to get the newest filename by modified time. Is there a more efficient way of finding this short of looping through each folder and file to find it? ...

VB to C# Translate Event Handler that Implements Interface Event

I was looking at code in WPF which is in VB. I am trying to convert it to C#. Eventhough I used VB .Net to C# converter I cannot figure out the correct syntax for the following code in C#. Any ideas how to write this in C#? VB Code: Public Event PropertyChanged As PropertyChangedEventHandler Implements System.ComponentModel.INotifyPro...

I still don't get Delegates

Hi, Isn't the use of delegates to help with some asynchronous cases? I tried the following but my UI still hangs. When on earth do you use delegates? Public Class Form1 Private Delegate Sub testDelegate() Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As _ System.EventArgs) Handles Button1.Click ...

Changing CSS style from ASP.NET code

I need to change the height of a div container(CSS Property Height) from ASP.NET code (VB). How can I do that? Thanks ...

Show a loading screen in vb.net

I need to show a screen or something, saying 'Loading' or whatever while long process are working. I am creating a application with the Windows Media Encoder SDK and it takes awhile to initialize the encoder. I would like for a screen to pop up saying 'Loading' while it is starting the encoder, and then for it to disappear when the enc...

Is there a VB.NET equivalent for C#'s ?? operator?

Is there a VB.NET equivalent for C#'s ?? operator? ...

splash screen w/ load assembly status

Hi, I'm trying to create a splash screen that shows assemblies (all referenced library) loading status. I use AppDomain.AssemblyLoad AssemblyLoadEventHandler delegate to catch what assembly is being loaded but the problem is the event is not triggered when the program initializes. I tried register the event handler in application startu...

How to read ISBN from eBooks on CHM or PDF files

I'm doing a database for storing my eBook collection. Most of them have the ISBN within the text of the book itself. How can I access this contents? Is there any sourcecode or DLLs for doing that? ...

Return value from SQL 2005 SP returns DBNULL - Where am I going wrong?

This is the SP... USE [EBDB] GO /****** Object: StoredProcedure [dbo].[delete_treatment_category] Script Date: 01/02/2009 15:18:12 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO /* RETURNS 0 FOR SUCESS 1 FOR NO DELETE AS HAS ITEMS 2 FOR DELETE ERROR */ ALTER PROCEDURE [dbo].[delete_treatment_category] ( ...

What is the VB.Net Code Equivelant for c# Anonymous Type code?

Can someone tell me what the code equivelant in VB.Net to this C# code is? new {name="value"} ...

How do you Play an MP3 in VB.NET and Determine MS Played?

I need to play an MP3 in the background while generating animation. The audio drives the animation timeline so I have to track MS from the start of the file to keep things in sync. In VB6 I used the MMControl which raised an event at certain intervals and could count the frames from the beginning to always determine my position. Just ...

Could not load file or assembly 'xxxx' or one of its dependencies. The system cannot find the file specified.

Inside VS2005, our whole programming staff gets this error message sporadically and it is always on the BeneControls project. This error message happens multiple times a day and it occurs when going into DESIGN mode for a control. Normally rebuilding the BeneControls fixes the problem but somtime the whole solution has to be rebuilt. H...

Which is faster? ByVal or ByRef?

In VB.NET, which is faster to use for method arguments, ByVal or ByRef? Also, which consumes more resources at runtime? (RAM) Edit: I read through this question, but the answers are not applicable or specific enough. ...

java for vb.net/c# programmer

Duplicate: http://stackoverflow.com/questions/324554 http://stackoverflow.com/questions/323015 I have been a VB.NET /C# programmer for about 5 years now and I think I want to learn the whole Java/J2EE stuff on my own. Do you guys know of any books/sites that help with this? I have taken several java courses in undergrad/graduate scho...

Is Try-Finally to be used used sparingly for the same reasons as Try-Catch?

I just finished reading this article on the advantages and disadvantages of exceptions and I agree with the sentiment that Try-Catch blocks should not be used for "normal" control-flow management (don't use them like a goto). However, one author made (good) points about Maintainability and especially Performance that made me wonder abou...

DependencyObject Array C# to VB.NET

I have a DependencyObject in C# that is used in an array. Example shown below: private KeywordTag[] tags = new KeywordTag[] { new KeywordTag { Tag = "test", IncidenceCount = 2076 }, new KeywordTag { Tag = "oi", IncidenceCount = 2052 }, new KeywordTag { Tag = "hmm", IncidenceCount = 1887 }, new KeywordTag { Tag = "grr", ...

How to return the visual studio currently open soution directory

I have a visual studio solution that comprises of several projects and are separated into different directories. In my c# or vb.net code I want to determine the base directory (or the directory that the solution is in). A dirty solution would be to call the directory parent.parent.parent until I find a file *.sln but I also have seve...