vb.net

What are the real benefits of Resharper for Visual Studio and are they worth the price?

Duplicate of: Using Resharper…Time Saver? (and others) I have been hearing alot about the resharper product and I have read the benefits on their website. I would like to know from actual users of the product what they consider to be the invaluable & cannot live without benefits. Are the benefits worth the purchase especially if yo...

Using Microsoft Search Server 2008 with asp.net/vb.net

I'm installing Microsoft Search Server 2008 express with a view to indexing some content for an intranet application. Having not used Search Server before, i am looking at ways of my asp.net app (.net 3.5) querying the search server. I'm just starting to look into Search Community Toolkit to see if it is relevant to what i want to achi...

Order by not working for more than 10 items

I am trying to sort a xml using linq queries using the following code Dim SortedFields = From field In feedXML.Descendants("fields") Dim sFieldList = From field In SortedFields.Descendants("field") Order By field.@position The xml is shown below, but the issue is it is ordering it in the following order 1,10,11,12,13,14...19,2,3,4,5,6...

Signing a VB.NET application

Do I have to sign my VB.NET applications? I'm getting an error: SignTool reported an error 'Keyset does not exist' But have no interest in signing anything as the project is small and will only be used internally to my department. I could create a temporary key. But why would I want to? Thanks. ...

Alias in Function Declaration overloaded?

I have some VB6 code that I am converting to VB.net and came across this section Declare Function TmSendByLen Lib "tmctl.dll" Alias "TmSendByLength"(ByVal id As Integer, ByRef msg As Any, ByVal blen As Integer) As Integer 'snip' Function TmSendByLength(ByVal id As Integer, ByVal msg As String, ByVal blen As Integer) As Integer TmSend...

How to hide the caret in a RichTextBox?

Just like the title: I've searched the web for an answer, but i was not able to find a way to hide the caret of a RichTextBox in VB.NET. I've tried to set the RichTextBox.Enabled property to False and then change the background color and foreground color to non-grey ones but that did not do the trick. Thanks in advance. ...

Consuming Web Services - going from a Manual method to an automatic one using third party provided WSDL

A bit long, but, shorter than the first draft :) We have a small VB.net application that basically pulls information from our dBase and then exports this information to an .xls file. From this .xls file, in house agents then manually update a third party listing service (which maintains our current inventory) with the information conta...

Setting objects to nothing

This is something i seeem to get a different answer for, every time i ask a developer. So i thought it would be a good question for the overflow to see what everyone does. If you have a sqlClient.sqlconnection object, in the cleanup code (finally block etc) do you dispose of the object or do you set it to nothing, or both? I've always...

EditingControlShowing events firing multiple times

Hi there. I have a DGV in VB.Net 2008 connected to an Access DB table. The DGV is not Read Only, but is full of read-only columns except for one, which contains a combo box. The combo box allows the user to select an outcome for that particular row, and then the program copies in a pre calculated value into the "Profit" column depending...

How do I call an ASHX from inside an ASPX.VB function?

I need to get a value from an API I made with ASHX and normally it is called from javascript but I need to call it right in ASP.NET I figured this shouldn't be a problem but I'm not sure the syntax. ...

VB.Net Start-up window changes based on App.config setting, how is it changing?

I have this VB.Net 1.1 project that I have to make some changes to. There is a flag in the App.config file. If it is false, the page just loads a splash screen and runs the program normally. If it is true it first opens a login window. VB.Net is not something I've ever worked with before. I can't for the life of me figure out wher...

VB.NET Infinite For Loop

Is it possible to write an infinite for loop in VB.NET? If so, what is the syntax? ...

What is LenB actually doing on none string parameters

I have this bit of code that is being converted from vb6 to vb.net. I need to know what LenB is doing in this bit of code. Dim singleValue As Single 'var for conversion use(4byte -> 1single)' Dim bytes() As Byte Dim valueB() As Byte 'this gets set elsewhere and is redim-d to its size' For n = 0 To CDbl(ItemNumberCombo.Text) - 1 'bytes...

Things a .NET developer needs to know when using a MYSQL backend.

With the economy the way it is my team and I have been looking into using MYSQL to reduce our licensing costs. I am wondering if there are any gotchas or issues that may crop up. Is there anything we need ot do special to get .NET to talk to mysql as opposed to MsSQL? When developing for it will LINQ to SQL have issues? Any caveats we...

Reset IIS on multiple servers at once instead of looping through

I am trying to reset IIS on a set of servers all at one time instead of looping through and resetting each one individually, but I can't seem to figure out how to do it. Could someone please give me an example? Thank you I am using System.Diagnostics With m_Process.StartInfo .FileName = strFileName ...

Need to create a custom wizard control.

I have been asked to build a custom wizard control in VB.NET for a windows forms project. It has been made very clear to me that I am not "allowed" to utilize existing wizard controls on the internet due to some obscure logic surrounding copyrights. It has also been made clear to me that we are not "allowed" to use usercontrols in the ...

What is the best approach to calculate a formula which changes value each day?

I use the following columns stored in a SQL table called tb_player: Date of Birth (Date), Times Played (Integer), Versions (Integer) to calculate a "playvalue" (integer) in the following formula: playvalue = (Today - Date of Birth) * Times Played * Versions I display upto 100 of these records with the associataed playvalue on a webpa...

combobox in vb.net

how to hide or disable items in one combobox on the basis of selected item in another combobox in vb.net? ...

Loading relations in linq2entities automatically

When i have a relation between two entities in my model: [GroupMember] (*) ----- (1) [User] and tries to select items from this relation with LINQ: From entity in _user.GroupMember select entity I always get an empty result unless I load the relation first with following statement: _user.GroupMember.Load() Is there a way to avoid l...

How to prevent ENTER keypress to submit a web form?

I just want to know how to prevent a 'ENTER' key pressed to submit a form in a web based application. I need a detailed answer. ...