vb.net

Form not submitting and no error is being produced with MVC

I have a form in my MVC application that in theory should submit data back to my database using a Repository class. However, when I submit the form (http://localhost:1028/Admin/NewUser/), the URL changes to where the form should be submitting to, which is fine (http://localhost:1028/Admin/NewUser/Submit), but once it has been submitted,...

VB.Net Running Threading with Reflected Objects

Running into problems creating objects through reflection and then running them on multiple threads. I just cannot seem to figure out what I need to here: For Each WorkerNode As XmlNode In oRunSettings.GetWorkerValues Dim sWorkerName = WorkerNode.Attributes(SETTING_NAME_ID).Value Dim oWorkerT...

SQL Server 2005 - Select From Multiple DB's & Compile Results as Single Query

Ok, the basic situation: Due to a few mixed up starts, a project ends up with not one, but three separate databases, each containing a portion of the overall project data. All three databases are the same, it's just that, say 10% of the project was run into the first, then a new DB was made due to a code update and 15% of the project w...

How to step into VB.NET class code

I am debugging a VB.NET forms program which calls into properties and methods of a class which is part of the same project. I put a break point in the form code but when I step through, it does not step into the class code. Am I missing a setting? ...

What use cases exist for non-static private or protected events?

What purpose do protected or private (non-static) events in .NET really serve? It seems like any private or protected event is more easily handled via a virtual method. I can (somewhat) see the need for this in static events, but not for normal events. Have you had a use case before that clearly demonstrates a need or advantage for ...

Removing certain properties in a user control, i.e. forcing one value and not editable in Design mode

How can I basically lock a default property so the user cannot edit it? For example, if I wanted to lock the BackColor property, how can I make it so the end user of the control can't edit it? This is in vb.net 2008. Thanks for the help! ...

VB.NET equivalent to this C# linq class

Guys, I'm trying to convert something from C# to VB.NET and I'm having trouble finding an equivlent in VB.NET to C#'s yield keyword. I realize 'yield' is not a convertable keyword to VB.NET, so can someone please show me how I would implement this code in VB.NET. I got all of it converted over except for the implemented GetEnumerator() f...

Is there a way to programmatically add a digital signature to a VBA Macro in a word document?

Is there a way to programmatically add a digital signature to a VBA Macro in a word document using C# or VB.Net? There are some similar questions asked already; however, none that I could find answer my question: http://stackoverflow.com/questions/1201195/how-to-programmatically-remove-the-digital-signature-from-vba-macros-in-excel htt...

Java script alert msg in code behind Asp.net 3.5

Hi, How to use Java script alert msg in code behind? This message will be display after save the data. Here is my code, enter code here Protected Sub Add_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Add.Click 'add new class Dim DbClassMst = New ClassMst() Dim dsClass As DataSet Dim status As Int...

WPF & MVVM: Any examples using VB.Net?

Almost every example of MVVM I found is coded in C#, are there any examples/tutorials coded in VB.Net? I'm having a hard time translating C# to VB.Net since I haven't really used C# in any meaningful way... Also, does a MVVM Template/Toolkit for VB.Net exist yet? ...

How to commnicate with a PDA built-in scanner using vb.net smart device?

I am developing an application to run on a PDA. The PDA is running on Windows CE 5.0 and has a barcode scanner integrated. I am using Framework 3.5 VB.Net 2008 smart device project to develop my application. Now, my question is about opening the barcode scanner to read scanned barcodes into my PDA application. I used system.io.ports ...

Exporting data to CSV format

hi,guys......... i am doing a VB program using four for loops to generate a set of numbers using the following code..... For sphere = 1 To 10 For cylinder = 2 To 20 For axis = 3 To 30 For add = 4 To 40 Console.WriteLine("{0} , {1},{2},{3} ", _ sphere, cylind...

Is there any special difference between an exe an dll from .net standpoint?

I have in the past used .net executables as libraries. I'd just add them to the references in visual studio and I was ready to go. Today I tried the same to a new exe (actually mine) and it doesn't seem to work. When I add it to Visual Studio and try to watch its members on the Object Browser, it doesn't show up anything inside that exec...

VB.NET Direct3D Drawing Jpg's BitMap

Hello I have taken on a spare learning project and I am tackling direct3d in vb.net So far I have found initialization code and can draw a black screen or what ever color I want and I have played around with customizing things and learning about what I can find. However my next attempt in my game loop is to at least render an object ...

Code signing certificate

Where can I get a free code signing certificate for signing my applications? Ascertia used to give them out for free but apparently they don't anymore. Mine just expired and I'm looking to get another one? Any ideas? ...

Debugging Web Services in Visual Studio

I am trying to use sample FedEx Web Service code written in VB.NET to retrieve shipping rates. The call returned rate information, but it returned rates that are way too high and do not match those shown on their web site for the same shipping parameters. Their support team is willing to investigate the discrepancy if I can provide the...

How can I use BigInt class in vb.net? (visual studio 2008)

recently i use int64. but it's no more handle my data. so I want something like BigInt. any idea? ...

Why won't these combo boxes update correctly when changing datasource in Windows Forms (VB) ?

In a windows forms project, I have several combo boxes. The first combo box contains a list of objects. Those objects then have several lists which are used as the datasource's for the successive combo boxes, depending on which item is chosen in the first. When the first item is selected, the other combo boxes update correctly. When thi...

Google Map Routing on my site

Hi all, Basically I want to use Routing functionality of Google Map on my system (Not the gadget provided by it) That is i will provide my own text boxes a map and on click of my custom button a route should be calculated and plotted on the map It should also be able to display the turns as in routing in gmap and do you mean thing... ...

Static members in VB.NET

I used to write this: Private Sub Example() Static CachedPeople As List(Of MyApp.Person) If CachedPeople Is Nothing Then CachedPeople = New List(Of MyApp.Person) End If ...rest of code... End Sub But then wondered if I could reduce this to: Private Sub Example() Static CachedPeople As New List(Of MyApp.Person) ...rest of code... ...