vb.net

How to make VB to execute my SQL SP with parameters?

Hi, I have a database in MS SQL Server 2008, I have Stored Procedures. One of them does an INSERT with parameters. It works in Server Management Studio. Now I'd like to make a button in Visual Basic 2008 that executes this SP. I have made a DataSet, it contains my 3 SP's, I can easily use 2 of them, because they return data, but the one...

VB.net Listbox Autoscroll

Well I am trying to autoscroll my ListBox or display everything the opposite way just like a shoutbox. Please post the code here on how to do it. I have tried many ways but they either gave me errors or didn't work. ...

VB.NET to C# Converter

Can somebody please show me a site where there is good conversion available from vb.net to c#? I appreciate your help. Thank you! ...

Convert Null Value to String - C#.NET

foreach (PropertyInfo PropertyItem in this.GetType().GetProperties()) { PropertyItem.SetValue(this, objDataTable.Rows[0][PropertyItem.Name.ToString()], null); } In one of the loops i get this exceptional error: Object of type 'System.DBNull' cannot be converted to type 'System.String'. The error occurs because one...

Visual Basic Edit Tar Archive

Is it possible for vb to extract files from tar(and put them back)? I found this but it says that Dim tar As New ChilkatTar <<<< ChilkatTar does not exist I am trying to edit one xml file(which is not compressed) but if i do that with notepad, the tar becomes corrupt ...

VB.NET compress Decompress String

Hello, How do I compress/decompress a string in VB.NET ? I am trying to send long string through the Network and need them to be as small as possible before sending. Thanks ...

[VB.Net] Typecasting generic parameters.

Hello world! Using the following code: Function GetSetting(Of T)(ByVal SettingName As String, ByRef DefaultVal As T) As T Return If(Configuration.ContainsKey(SettingName), CType(Configuration(SettingName), T), DefaultVal) End Function Yields the following error: Value of type 'String' cannot be converted to 'T'. Any way I coul...

Should new .NET developers start with C# or VB.NET?

Possible Duplicate: Should I learn VB.NET or C#? There are a lot of new .NET developers starting careers or school with little to no previous programming experience, or programmers moving from other languages like Perl. Which .NET language would be the best for new developers to learn in to give them the best learning curve...

i want to delete the first two numbers of the number series vb.net code

i want to delete the first two numbers of the number series vb.net code ...

Microsoft.Win32.TaskScheduler NOT FOUND - I want to import this namespace in VB.NET

I have been looking at sample online code for interfacing with the Windows Task Scheduler, and most of them import the namespace: Microsoft.Win32.TaskScheduler When I go to import it, it's not there within Win32. Does anyone know why I can't import it? I'm assuming something isn't registered correctly on my machine, but I can't fiugr...

which collection should I use

Hello, I have a number of custom objects of type X. X has a number of parameters and must be unique in the collection. (I created my own equals method based on the custom parameters to examine this) In each object of type x, I have a list of objects y. I want to add/remove/modify easily an object y. For example: To write the add meth...

VB.net Insert Environment.NewLine at 20 characters.

Well I have been able to figure this out but what I want to do is make my string have a new line after 20 chars. I know how to find how many chars the string has but not how to insert environment.newline at 20 chars. I am using this to find the string length If string.Length > 20 then 'Need to be able to insert environment.newline at 2...

how to control textbox type to double in visual basic?

Hi, I'd like to make a textbox that accepts only numbers, but not integer, but rather double. I've read here about e.Handled = Not Char.IsDigit(e.KeyChar) and it works, but again, it can be used only for integer, since it declines decimal point. Another thing I've read here is If Not Double.TryParse(TextBox2.Text, value) Then .... and i...

Object Arrays: I have 2 declarations. What's the difference?

Dim MyOrders As Order() Dim MyOrders2() As Order ...

sample code for test kerning in itextsharp

anybody have any samples that we could reference for attempting to get text leading and kerning in textsharp ...

vb.net array for slideshow button

Hey all, i am in the middle of trying to figure out how to go about doing this... I have a form that i call like so: call frmSlideShow.showWhat("1,4,8,9,11,22") Each of the numbers represents a different image slide (slide1.png, slide4.png, etc..). The problem i am having is trying to create a "previous" and "next" button to flip th...

Counting keystrokes and clicks in vb.net

I'm trying to create an application similar to the site WhatPulse, which will generate an image with my clicks and keystrokes. WhatPulse only updates the image once every 24 hours, so I am going to make an application to keep track of that for me, only with realtime stats. How can I count total keystrokes (outside of the application its...

Can anyone help convert this VB Webservice?

I can't figure it out for the life of me.. I'm using SQL DataSet Query to iterate to a Class Object which acts as a Data Model for Flex... Initially I used VB.net but now need to convert to C#.. This conversion is done except for the last section where I create a DataRow arow and then try to add the DataSet Values to the Class (Results C...

How to add folders and files in to MSI and how to access that added files in to custom action of MSI.

Actually I want add some folders and files to MSI. Through custom action i want to copy that added folders and files to some destination/target folder. Any Help please??? ...

LINQ aggregate / SUM grouping problem

I'm having trouble getting my head around converting a traditional SQL aggregate query into a LINQ one. The basic data dump works like so: Dim result = (From i As Models.InvoiceDetail In Data.InvoiceDetails.GetAll Join ih As Models.InvoiceHeader In Data.InvoiceHeaders.GetAll On i.InvoiceHeaderID Equals ih.ID Join p As Mo...