vb.net

How to save connection string in XML

How to save connection string in XML so that I can subsequently use that string. How is it possible? ...

VB .NET XmlIgnoreAttribute if value is 0 or false

I am trying to ignore a property value (XML Attribute for serialization) if the value is not set. This is easy with most classes using the special PropertyNameSpecified boolean but it doesn't work with some base types that always have a value such as integer and boolean. An integer that has never been set explicitly will still have a v...

NULL values reading from excel file

hi i am not getting the integer values in dataset while reading from an excel files the field which is integer will be showing as NULL.wht should i do to solve this probelm? Thanks in Advance ...

VB.net interface won't compile, why ?

Question: I'm trying out to convert this here: http://support.microsoft.com/kb/828736 to VB.net I got it to work in C#, and it should work without problems in VB.net, the only problem is the managed class won't compile, i get this error: Error Class "ManagedClass" has to implement "Function Add(Number1 As Integer, Number2 As Integer) As...

auto seeking in mediaplayer in vb.net

if i have a video of 70 Seconds and i want to play it directly from 31 seconds to onwards how can i do that in vb.net ...

data type mismatch in criteria expression in vb.net

Please help this would be my last problem in dealing with access database with vb.net if you could help me solve this. I'm trying to update ms access data using vb.net and here's my code: updateuserclass.vb Public Class UpdateUser Dim bankai As New Updater Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As S...

MouseWheel, determining up and down scrolling events

Is there any way to determine if the mouse scrolls up or down using the Mousewheel handler on a sub? eg Private Sub PictureBox1_MouseWheel(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseWheel if mousewheel.scrollup then UserZoom = UserZoom + 0.05 Me.Refresh() end if End Sub I w...

How do you make VB.NET namespaces behave like C#?

I am converting projects from C# to Visual Basic, and the namespaces in VB.NET behave in a weird way. There is some kind of hidden default namespace, and it's annoying. I want it to behave identical to C#, which works as expected - things go into the namespaces you create for them. I've been getting around it usually with say using MyC...

Register a C#/VB.NET COM dll programatically

Question: I have a .NET dll which I use from a C++ program. Now I have to register the dll programmatically on a deployment computer. How do i do that (programmatically! not using regasm) ? I remember, when I once called a VB6 dll from a C++ dll, I had to use DllRegisterServer and DllUnregisterServer. Is that still so with a .NET dll...

no value given for one or more required parameters

What's wrong in here, I always get some nasty errors even if the same code that I used earlier works. But when I apply it to other form it gives me the error above. here's my code: Imports System.Data.OleDb Public Class Updater2 Public adminID As String Public adminName As String Public adminPass As String Private con A...

Strategy for developing a multi function asp.net web application

I'm about to start a new project and want some advice on how to implement. I need a web application which contains a booking module for reserving timeslots, and a time management module which will enable employees to clock in / clock out. If I am writing an update to the time managment module, I don't want to disrupt the booking engin...

User Permission

In my web application we have many users.I want to set permission for each user.In our windows application we used Database to store the Permission(Insert,Modify,delete and View).In web application can anybody tell me about where to store the permission.Somebody told that if we use database it will take so much time?In the case of XML it...

How shall I get more SQL Server and T-SQL Experience...

I'm a developer with over 10 years experience in vb5/6, C#, VB.NET, 3 years of WCF too, design and architecture. I consider myself to be pretty good and can usually solve anything given time (like most good developers). I worked for a company for 8 years and during that time used a database called IBM UniVerse, it's an old Pick style dat...

Use Enter to Submit twice on the same page

I'm adding a extra functionality to an existing program. Its a Login page to manage the time a user came in and out. So first a login is asked, then (on the same page) a list with the login times are shown. The same button is used (just relabelled) for the login and time in/out. The problem exist when users want to use enter to login an...

Call was rejected by callee PowerPoint Automation

Hi, I have a commandbar model which automates powerpoint. i recently faced a strange problem that when powerpoint is opened through my application, and the data is being loaded through my application to populate the menu, if a user right clicks on powerpoint i get the error message: "Call was rejected by callee powerpoint" how do i re...

Casting from Int32 to 'Microsoft.DirectX.Direct3D.VertexShader'

How to solved error Unable to cast object of type 'System.Int32' to type 'Microsoft.DirectX.Direct3D.VertexShader' We want to case ''System.Int32' value into 'Microsoft.DirectX.Direct3D.VertexShader' I tried with CType but not working. Also tried mD3DDevice.VertexShader = CObj(D3DFVF_CUSTOMVERTEX_BOX) but no luck Can you please help...

How fast is VB .net compared to native code for arithmetic?

I need to write software that will do a lot of math. Mostly it will be matrix multiplication with integers to compute DCT. How much faster should I expect the code to run in native c as compared to VB .Net? Factor of 2, factor of 10, factor of 1000...? Has someone tried and collected statistics on this? ...

Help Repainting a Line

I am doing a custom control (inherited from VisualBasic.PowerPacks.LineShape), that should be painted like as standard one, but also having a Icon displayed near it. So, I just overrided OnPaint like this: protected override void OnPaint(System.Windows.Forms.PaintEventArgs e) { e.Graphics.DrawIcon(myIcon, StartPoint.X, StartPoint.Y...

Trigger not executing when a Batch Update runs.

I am using VB.Net 2008 and ADO.Net to do a Batch Update to our Oracle database. The updates are working, but there is a trigger on the table before the row is updated to enforce a member's termination termination date. So if I was trying to set the termination date (via the batch update) to 31-Jan-2010 but the member had a claim that w...

protecting software to run only on one computer in vb.net

I have developed a small application and now i want to protect it. I want to run it only on my own computer and i have developed it for myself. How can i do that? ...