vb.net

animating a midi file

can someone explain to me how this was done: http://www.youtube.com/watch?v=ipzR9bhei%5Fo&NR=1&feature=fvwp what tool did this person use to analyze the midi file? was it a midi file? how did they turn it into this kind of animation? is it possible to make an application like this in vb.net? ...

Button BackColor Not Working As Expected

I have a form with a split panel. In the one split are a group of buttons which I want to programmatically change the color of the last pressed button. The following loop seems to run correctly and set the colors correctly but the form doesn't represent that. Once the loop is completed and I recheck the button colors, they revert to p...

Using the Exited event in vb.net

Ok, I'm making a very basic vb.net winforms app, essentially you can drag files into it, and it then uses a batch file to process the files. It's pretty simple and everything is going to plan so far, it accepts the right files, it uses the batch file to process them and the batch file does what it is supposed to. The only problem is th...

ASP.NET 2.0: Cannot Convert VarChar to Int

I have an ASP.Net form, where it grabs a value from a textbox: <asp:TextBox ID="txtID" runat="server" maxlength=9></asp:TextBox> The ID HAS to be 9 numbers. After it grabs it, I want to insert it into a database (SQL Server 2005), so I build a parameterized string, 'The Query cmd.CommandText = "insert into table (aid) values ('@aid'...

Writing a Text file from VB.NET (Encoding Problem)

I am writing an application that must generate a plain Text file with fixed sized columns. my current code is: Dim MyFilePath As String = Path & FILE_PREFIX & FileNr & ".TXT" IO.File.Delete(MyFilePath) Dim FileStr As New IO.StreamWriter(MyFilePath, False, <ENCODER HERE>) Do While r.Read FileStr.WriteLine(r("TXTLine")) Loop FileSt...

Can someone convert this Hashing method from C# to VB?

public static string CalculateSHA1(string text, Encoding enc) { byte[] buffer = enc.GetBytes(text); SHA1CryptoServiceProvider cryptoTransformSHA1 = new SHA1CryptoServiceProvider(); string hash = BitConverter.ToString(cryptoTransformSHA1.ComputeHash(buffer)).Replace("-", ""); return hash; } THANKS! VStudio keeps yelli...

How to test user's permissions to the database

I have a simple .NET 3.5 app for changing some database fields using an ODBCDataSet. Now the Feature Creep is asking if I can hide or show tabs and other controls based on the user's database permissions. Ideally, I would like to control the permissions only on the SQL Server using Windows user groups, and the app would not have any bui...

Work Around For PrimativeType.TryParse

Hello All, I have become accustomed to using TryParse for attempting to parse unknown types: Dim b As Boolean Dim qVal As Boolean = If(Boolean.TryParse(Request.QueryString("q").Trim(), b), b, False) or bool b; bool qVal = (Boolean.TryParse(Request.QueryString("q").Trim(), out b) ? b : false; So, just curious if someone knows a bet...

Oracle geospatials tutorials?

I am very interested in applications of geospatials. Is there is a good tutorial? I am a beginner at SQL, can I work with geospatials through the .NET environment? What should I download to use spatials? ...

Namespace references in C# vs. VB.Net

In VB.Net you can do something like the following without any issues... just ignore the fact that this is a pretty useless class :-) Imports System Public Class Class1 Public Shared Function ArrayToList(ByVal _array() As String) As Collections.Generic.List(Of String) Return New Collections.Generic.List(Of String)(_array) ...

how to call web form in vb.net using (asp.net)

I am beginer to ASP.Net. Can u tell how to call new page from the existing page. In VB.net by executing the statement "Form2.show()", New page will be loaded. In the same way how to load new page in ASP.Net ? ...

VB2008 with MySQLConnector .net 6.1

I have the following code: Imports MySql.Data.MySqlClient Imports MySql.Data.Types Public Class FormMain Private Sub FormMain_Load ... ' Open Database Dim objMySQL As New MySqlConnection End Sub End Class I get the compiler error message: error BC30560: "MySqlConnection" ist im Namespace "MySql.Data.MySqlClient" nicht eindeu...

Looking for VB and C# Textbooks/Resources

I currently have some time on my hands at work and want to advance my vb/c# skills. I have found that most of the tutorials/resources on the net are fairly basic. I am looking for intermediate to advanced exercises. I have seen the books that people have recommended in other posts here on Stack Overflow and they look great. It's just t...

If I never once reference System.IO in my program, why does my user get an error?

I have a program which doesn't once reference System.I0, coded in vb.net, yet for some reason my user got this: Description: Stopped working Problem signature: Problem Event Name: CLR20r3 Problem Signature 01: advancedclipboard.exe Problem Signature 02: 1.0.0.0 Problem Signature 03: 4a903bf5 Problem Signature 04: Microsof...

System.IO Versus VisualBasic.FileIO

I typically develop in C# and am quite accustom to using System.IO. I recently ran across the FileIO library and have found that some of the advantages (such as sending an item to the recycle bin) are quite nice to have. Especially in the program I am currently working on. My question is, Does System.IO out perform the VisualBasic.FileIO...

Is there a way to manually raise the PropertyChanged event of an EntityObject?

Hi I am trying to raise the PropertyChanged event of an EntityObject, I don't find a way to do it, is this possible? ...

How to skip record that cannot be inserted in vb.net

Hello, I am looping through several hundred records from a XML file and inserting in SQL server 2008 using LinQ from my Web Service. My question is, for some reason if a record is not inserted it is coming out of the loop and going to the Catch block directly. How do I move to the next record if the insert fails and continue with the ...

datagridview combobox column

Hi. I have a datagridview with two combo boxes, all the cmb are bound to bindingsources The first cmb has the customers where the customers has projects The second cmb has the projects of the customers When I select a customer from the first cmb I do this (between others) If Me.StaffExtraPaymentsDataGridView.CurrentRow.Cells(1).IsIn...

Web Service return value issue in VB.net

Hello friends, I have a Web Service with Just one Web Method that returns a boolean value and a function When a client application consumes this web Service, I first want to return a value true and then continue with the remaining process. I was googling and didn't find anything that I can understand. Please help me out. In one of the ...

IntPtr vs UIntPtr

This should be simple: I see everywhere people use IntPtr, is there any reason I should use UIntPtr, instead? ...