vb.net

sqlexception message display causes error on page

...

page turning animation

Hi, I am building an application. This shows a form, header and footer are to be kept fixed. In the middle there is a Group Box that hold a question with different option. When user clicks Next button at the bottom, Group Box loads next question. I want to make this change animated. I wish to show a page-turning animation that runs wh...

Service created in VB .NET not starting

Hello All, We have service developed in Visul Basic .NET. This service utilizes some COM objects provided by SAP to access SAP database. This has been working fine till yesterday. On this Sunday, we upgraded the SAP system, and subsequently all other programs were also re-builded using the new DLL files (for the COM object). We tried do...

VB.NET ArrayList to List(Of T) typed copy/conversion

I have a 3rd party method that returns an old-style ArrayList, and I want to convert it into a typed ArrayList(Of MyType). Dim udc As ArrayList = ThirdPartyClass.GetValues() Dim udcT AS List(Of MyType) = ?? I have made a simple loop, but there must be a better way: Dim udcT As New List(Of MyType) While udc.GetEnumerator.MoveNext ...

vb.net 2010 Usercontrol scrolling problem

Hi, I have a usercontrol that i am working with based on a project i downloaded that displays a calendar. I am trying to adapt it to show a week to view like in Outlook 2007 where the columns are the days and the rows are 30min segments. The problem i am having is that when i turn on autoscrolling and scroll down, it fails to correctl...

String() variable in VB

I'm trying to modify a program where there is a variable that stores all the specified file types in a String() variable. What I would like to do is to somehow append to this variable in any way if I want to search another directory or just grab another individual file. Any suggestions would be greatly appreciated. //Grab files from a d...

Beginner trying to use StretchBlt.

I have a Shockwave Flash Object in my form. I'm trying to use StretchBlt to magnify the object. Ideally I would like to push a button and have it replace the Flash Object on my form with the magnified version. Any help would be appreciated, even just documentation on how to use StrechBlt because I can't find anything on it. Thank you. ...

How to copy data from dataset to a type dataset using automapper?

Hi, i am trying to copy data from a standard Dataset to a Type Dataset (XSD) of same table structure. i want to use Automapper to do that one. So how can i do that using automapper? ...

VB.NET generic function for checking for a value of null

I am trying to write a generic function that will check each database parameter to see if it is null, and if so, return DBNull; if not, return the object. So here is my function: Public Shared Function CheckForNull(ByVal obj As Object) As Object If obj <> Nothing Then Return obj Else Return DBNull.Value End Function My problem is...

Delete file event for .NET

I want to get an event Before a file is being deleted? How can I do it? ...

Filetype check in VB.NET?

I have an image resized program and it works. The problem is when a user selects a non-image file in the file select dialog, it crashes. How can I check for image files? ...

Formatting Closing Element in XML in VB.NET

Hello all, I'm using VB.NET to generate some XML files from a Dataset. Now when I have an empty field in the dataset, the resulting XML element for it is like: <Example1 /> The problem is that I don't want the tag to look like this! if it's empty, I want it to look like: <Example1></Example1> Any ideas ??? ...

.NET Choose Items Dialog

Is there a standard .NET control for what I call "a two pane picker", or do I have to code it by hand? Two pane picker: The left pane has a list of items. The user can pick items from the left pane to put them in the right pane using buttons between the two panes. Picked items in the right pane can be reordered with buttons. An exam...

How to initialize and use / aggregate the default DNN AspNetMembershipProvider

The idea is to mix two providers, and by default, that's not allowed (either the first, or the defaultProvider will be initialized). So we created MixedMembershipProvider that aggregates two other providers, the default DotNetNuke's AspNetMembershipProvider and our own. Depending on user action, the mixed one decides automatically what t...

Creating a form in a new thread (From an Event)

I have a small form that notifies the user on the completion of events (such as SMO restore). I want this form to appear from various sources (such as the below SMO Restore complete event) so I guess I need to create a new thread before creating the form? As it could be called from outside the UI thread. (I also need to pass a string to...

Detecting if Snipping Tool is open within a web application

Hi, I was just wondering - is it possible to detect, with either .net, SilverLight, Flash or some other plugin, whether or not Snipping Tool is open, or detect when the user opens it (after the page has loaded)? Also is it possible to detect when print screen is pressed even if another window is active? Thanks in advance. Regards, Ri...

What is the code for selecting a Telerik radiobutton?

What code should I write to select a Telerik radiobutton? It doesn't have a .checked property. ...

vb.net dynamic plugin loading question

Hello, I'm using the following code in a vb.net 2008 project to dynamically load dll's (with forms) from a folder, all works great however I can't figure out for the life of me how to call a function or get a public variable from the plugins. Can anyone answer this issue for me? Dim PluginList As String() = Directory.GetFiles(appDir, ...

vb.net - creating array/list from loaded interfaces

Hello, I'm having trouble creating a global array that i can use in other functions. I have this code right under "Public Class myClass": Dim LoadedPlugins As Array Then in a function I have this: Dim PluginList As String() = Directory.GetFiles(appDir, "*.dll") For Each Plugin As String In PluginList Dim Asm As Assembly Dim SysType...

ASP.NET : Avoid multipile clicks on a button

Hi, I'm using devexpress aspxbutton, and I was wondering how can I prevent the user from clicking the button more then once..? basically it does an update/insert statement. Thanks, Tom ...