vb.net

Accessing MP3 Player / USB Storage device

Hi I'm trying to access a USB Storage device, however the device although appearing in the commputer / Drives section, is not allocated a Drive letter, thus when I itterate through the attached drives link text it does not appear, I've taken the "Location" from a file on the drive (properties) and it comes up as COMPUTER/Q1/Datacasts bu...

How would you copy an ASP.Net project ?

Hi, I have a .Net web application that I want to take a copy of and create a new application that can be worked on independently of the first - i.e. I want to branch the codebase. What is the best way of going about this ? TIA, Tim. ...

Use VB.NET and C# in the same application?

I am developing a GUI based application in MS Visual Studio 2005, I just want to know if it is possible to use both VB.NET and C# in the same project. Or can I include a module written in C# in my VB.NET project? I have a class written in C# which I want to use in my VB.NET based project, so if I can include and call functions from tha...

problem when implementing undo/redo

Hi I have a problem with my code after I click undo I can't draw on the image and I don't know why this is my code Imports System.Drawing.Graphics Imports System.Drawing.Bitmap Imports System.Drawing Public Class FrmChild Dim Xstart As Short Dim Ystart As Short Dim Xend As Short Dim Yend As Short Dim BoolErasin...

VB.NET and AutoDesk Inventor 11 Customization Problems

I've done some looking through the site and on the Internet trying to find a solution to a problem with a VB.NET application I'm attempting to create. Unfortunately, I'm stumped by an error message that has prevented me from moving forward with any Inventor customizations. Tools: Visual Studio 2005 sp1, Inventor 11 Stand Alone install O...

Using aspnet_regsql.exe to set up Windows Authentication on an already matured database

I have a database (using Microsoft SQL Server Management Studio Express) that is currently being used quite heavily in a functioning application. I am porting this application over to Windows Authentication rather than the current basic authentication system (or lack thereof) that exists. The easiest way that I know to set this up invo...

Getting the path of the current assembly

How do I get the path of the current assembly? I need to get data from some paths relative to the location of hte current assembly (.dll). I thought someone told me to use the reflection namespace but I can't find anything in there. Thanks, Scott ...

Dynamic GridView has 0 rows on RowCommand

I have a dynamically-created GridView which to which I'm attaching a handler using the AddHandler command. The problem is that when I try to refer to sender.rows within that function, it won't do anything because it says that sender.rows.count = 0. I've done enough dynamic form creation that I'm pretty sure that I'm creating the contr...

ADO.Net Excel, Checking if a table exists?

I'm using ADO.Net to work with an Excel Document. Essentially, I'm looking up values in a table called "source" and creating a new table called "result" which will be populated with the results of my query. I have a couple of questions.. A) How can I check if a table exists and create a new one if it doesn't? B) Is a table the same ...

Getting Id of a .net dropdownlist in javascript on client click

I need to get the ID of a dropdownlist (ASP.Net Control) So that I can tell if an item has been selected. Right now I am trying to just write the count of the dropdownlist to an alert box as follows: OnClientClick="alert(document.getElementID('<%=ListBox1.ClientID %>').options.length) The error I get is 'document required.' ...

Ajax query not firing, because it's generating the wrong URL

The following code populates a second dropdown when the first dropdown changes (i.e. cascading dropdowns). However, the Ajax call isn't firing, and I can't figure out why. I'm not getting any syntax or runtime errors. When in debug mode, the GetPlans action is never being called. The inner alert is never called, but the outer one is. To ...

what things can you do in vb.net and not in c#

Duplicate of: http://stackoverflow.com/questions/840397/static-variables-in-c http://stackoverflow.com/questions/158229/what-are-the-pros-of-vb-net http://stackoverflow.com/questions/623747/moving-from-c-to-vb-net http://stackoverflow.com/questions/14775/interview-question-on-c-and-vb-net-similarities-differences From TStamper in thi...

Defining more than one variable in a vb2005 for loop

Is it possible to define two variables in a vb2005 For loop in a similar way that jscript does it? the javascript example is for(i=0,l=0;i<20;i++){} ...

How to get the grand parent and great grand parent of xml node

any node above the current node in an hierarchical tree example the parent,grandparent,great-grandparent or the rot node are all ancestors of anode within an xml How might I get the grand parent and great grand parent of a current node xml. I'm using VB.Net in an ASP.NET application. thank wow answers are beautiful can i have somethi...

MySQL connections from client programs persists.

In a college where I'm employed, we are currently testing (dry-run) the new enrollment system I have developed. The application has several modules (accounting, cashiering, course scheduling, admission, advising, grading) installed in different offices. We are using MySQL Server 5.1 and the front end was developed using VB.Net. The sys...

c# to vb conversion object initalization

I am trying to pick up on VB.net and have been programming in c# for a while. I have grasped pretty much most of vb.net but running into some issues with this conversion for object initialization: CustomerParameters customerParameters = new CustomerParameters { ...

Using polymorphism on member of interface

Okay this is a bit of a noobish question, but I ran across this today and it somewhat puzzles me WHY it would be this way. Consider the following structure Public Class Employee Implements IPerson Private _MyManager As Manager Public Property MyManager() As Manager Implements IPerson.TheirLeader Get Return _...

Sort Generic list on two or more values

We have a generic List(Of Product) that must be sorted on two or more properties of the Product class. The product class has the properties "Popular" numeric (asc), "Clicked" numeric (desc), "Name" string (asc). In order of naming the properties we want the list to sort. How can it be sort with an lamba statement? If have found to sort...

Unit Testing the Data Access Layer - Testing Update Methods?

I'm looking into adding some unit tests for some classes in my data access layer and I'm looking at an update routine that has no return value. It simply updates a row based on the id you provide at whichever column name you provide. Inside of this method, we collect the parameters and pass them to a helper routine which calls the st...

Help translation PYTHON to VB.NET

I am coding an application in VB.NET that sends sms. Would you please post PYTHON->VB.NET translation of this code and/or guidelines? Thanks in advance!!! import threading class MessageThread(threading.Thread): def __init__(self,msg,no): threading.Thread.__init__(self) self.msg = msg # text message self.no = no ...