vb.net

Any real example of using interface related to multiple inheritance

I m trying to understand Interfaces so that I can implement them in my programs but I m not able to imagine how should i use them. Also give me some eg of using them with multiple inheritance in C# ...

Problem with TabControl alignment in VB.NET

Hi there, I'm having a weird behaviour with a left-aligned TabControl in VB.NET. Screenshot: What I wanted was to have the tabs literally the same way they would be if rotated 90 degrees to the left. Does it have something to do with the fact I'm not (god forbid) using the standard XP theme? Any solution to just make it work? (Even...

Post IDictionary Back to MVC Model...

I am fairly new to MVC so please don't hesitate to suggest a better/cleaner/simpler way of achieving what I am trying to do in a more "MVC" friendly fashion. Here goes... To make this easier I will use a concrete example using movies and genres. A genre can be associated with many movies. Genres can increase over time and so can movi...

Application locks up when it should get a runtime error during debug

I develop windows applications in VB.NET using Visual Studio 2008. Recently I reloaded my pc and moved from XP to Windows 7 64 bit. Now when I am debugging, when I should get a runtime error, the executable instead locks up when it should bring up the code with the line that it crashed on like you'd expect in debug. This doesn't happen ...

.NET web service. (ASMX) How can I shape the request and response messages?

I'm building a web service to accept notifications from a company. The company informed me that the service is incorrectly structured and provided me the .asmx of a working web service. It looks like this: Request: <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...

how to duplicate whole project in VB

hi i am using Visual Basic 2010 Express. i tried to copy project folder and rename it to duplicate one of my project. but it acts like my old project. i tried change root namespace and assembly name but no luck. how can i duplicate my whole project like "save as"? thanks ...

creating a deskband (WMP style taskbar toolbar) in vb net

I have searched and searched how to do this but everything leads back to Appbars (dockable forms) which is not what i need. I want a toolbar that goes into the taskbar, like WMP, itunes, language toolbar. Preferably in vbnet, but if its in C# then thats fine. ...

Best Way to Store Data from a Desktop App?

I'm writing an app in vb.net and was wondering wath the best way to store/retrieve data was? ...

How can I get my TCP listener service to terminate correctly?

I'm writing a Windows service which starts a TCP listener. The core code works fine, but I'm having several problems with the mechanics of a Windows service. Right now, when my service starts up, it creates a thread and starts the TCP listener in the thread. Then, when the service stops, it terminates that thread: Public Class txnSoc...

how to create exe file in vb.net

how can i create exe file for vb.net project.i tried with file->New project->setup and deployment->setup wizard. but i cannt include sql server 2000 database.showing error "Error Unable to find source file 'C:\Program Files\Microsoft SQL Server\MSSQL\Data\eg_Log.LDF' for file 'eg_Log.LDF', located in '[TARGETDIR]', the file may be a...

Splash Screen Problems

I'm coding a splash screen in VB.Net that displays for 3 seconds then shows a login screen. But the splash shows up even when login shows and I have told the splash to hide. Here is my code: Public Class frmSplash Private Sub frmSplash_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ...

VB.Net Visual Studio Error When Showing Form

I get the following exception when showing a form: InvalidOperationException was unhandled Mixed mode assembly is build against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information. Dont really know why this isnt working. Any help? ...

What's an elegant and easy way to construct XML from a custom object?

I need to construct an XML transaction of the following format: <RateV3Request USERID="MyId"> <Package ID="1ST"> <Service>ALL</Service> <FirstClassMailType>LETTER</FirstClassMailType> <ZipOrigination>06226</ZipOrigination> <ZipDestination>06231</ZipDestination> <Pounds>0</Pounds> <Ounc...

Preserve something I drew on a Form?

So yeah, Basically I drew something on a form using Graphics. Now if I move a window over the form the stuff I drew gets erased. Is there a way to preserve the drawing? (I'm using Windows.Forms) ...

how to delete records from ms access in vb.net

Ive seen tutorials on the net on how to do it, but the tutorial is not applicable on the program that I wish to do. The tutorial tells you to add 4 navigation buttons so that you can navigate the database(first, last, back, and forward). Then an update and delete button. But if this is what I will do, it would take 10 years to navigate ...

Writing a String Variable To Database

I am trying to write the value of 3 variables (Username, Email, Password) to an SQLite Database. I can write text to the database but not a variable. How would I do this? My Code: SQCommand.CommandText = "INSERT INTO login_data (username, password, email) VALUES (Username, Password, Email)" ...

VB6 DLL takes callback as Integer, VB.NET requires delegate reference type

I have an issue with a third-party COM+ DLL meant to be used from VB6, where it has a function to set a Callback for a hardware event. However, I'm using VB.NET, and AddressOf now returns a reference type instead of an integral type, which means that the setCallback function on the COM+ DLL apparently can't be used. Is there a way arou...

Basic WPF question: How to add a custom property trigger?

I am using Expresion Blend 3 and created a new user control in my project. I want a storyboard to run if a custom property of that user control is triggered like with the ones shown here in the list.. I learnt you need a dependency property, but my understanding there is limited. Here's the basic code I set up with property "IsAwesome...

ImageMagickObject with .Net

Hi folks, Still trying to resolve some image manipulation issues in .Net and I've come across ImageMagickObject.dll mentioned with some .Net projects - is this something usable with an application rather than a website? I have an .net application I'm trying to bridge with ImageMagick or one of its wrappers but not having much luck as my...

Fixed-size character encoding

Hello world ! I am developing, in VB.Net, an application that reads from text files using a FileStream Object. I do not use a StreamReader, since the buffering it does makes it impossible to use Seek. Those text files form a database, with both index and data files. In index files, all fields are fixed-length, which is not the case in ...