vb.net

I want to detect when user close browser window ?

I have Example and i need to kill the session when user close his browser window. i tried page_unload() not working. the example is:i have parent windows and window will open from it i need to delete session when user close the child window. please i need some help. ...

Transparency in splash screen

I saw the splash screen of the Corel-Draw 12 application and lost my mind! What technique do they use? On application start-up they load a transparent image, use windows api or what? How do they achieve this transparency? ...

Changing name of web service class after created

I wrote a quick and dirty web service in VB.NET. And as it always goes, I want to move it to production, but don't want to use the name Service1 for the public class. When I change the name I get an error when trying to reference it. I know there is somewhere else I need to change the class name, something in the code behind but I can...

vb.net: Get to resources of a referenced project

I have a project which contains all custom controls and images; we'll call it projectBase. Now I have created a windows forms project (project1) that references projectBase. I need to access the embedded resource (images) of projectBase in project1. Any idea how i can pull this off? ...

.NET graphics Ghosting

I'm making a sample GUI for a new application we are developing at work. The language has already been decided for me, but I am allowed to use any 3rd party DLLs or add-ins or whatever I need in order to make the GUI work as seamlessly as possible. They want it very mac/ubuntu/vista/Windows 7-like, so I've come up with some very intere...

VB.net dll stops working after SA account disabled

Ok everyone, Got a wierd one here. I've written approx 4 projects that utilize a central DLL for database access. The DLL was written in VB.NET using the .NET 3.1 framework. All the code works great. Recently, I went through all the code and updated the connection strings to use a new username and password since they were using the S...

Visual Basic 2008 - NullReferenceException ERROR?

Hey all, I'm using Visual Basic 2008 here, and I'm debugging my code that connects to my SQL Database and writes something in it. It was working fine and all until I came to an error like this. NullReferenceException was unhandled. What's going on? Here is the code I'm working with: Dim conn As MySqlConnection conn ...

VB6 to VB.net conversion

Exact duplicate: How to switch a large app from VB6 to VB.Net Exact duplicate: Best strategy for moving applications from VB6 to VB.Net Exact duplicate: Conversion tool comparisons for VB6 can any one please tell the tool which converts vb6 to vb.net thanks dagg ...

How to return JSON from ASP.NET .asmx?

I have the following test method: Imports System.Web Imports System.Web.Services Imports System.Web.Services.Protocols <WebService(Namespace:="http://tempuri.org/")&gt; _ <WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _ <System.Web.Script.Services.ScriptService()> _ Public Class DemoService Inherits System.Web.Serv...

Using SqlCommand Object in VB.NET

Can I use two command object with one open connection in one procedure at VB.NET? ...

Hover tooltip on specific words in rich text box?

Hi, I'm trying to create something like a tooltip suddenly hoovering over the mouse pointer when specific words in the richt text box is hovered over. How can this be done? ...

Performance Concerns between DataTable and SqlDataReader to fill Data with FlexGrid

Which one is more faster between DataTable and SqlDataReader while I'm trying to fill Data into FlexGrid with VB.NET? ...

problem in !ispostback

I have problem with !IspostBack i'm working with crystal report and i use (if not ispostback) to set X and in else to retrieve X the problem is its working properly in some pages and not working in others. this code sample. If Not Page.IsPostBack Then Session("VehicleStatusSelectionFormula") = SelectionFormula Else Selectio...

A Plugin architecture in .net and handling Events

Hello, I need to write an app that that will iterate over our database, and perform various anaylsis on each record. In order to do this (partially for the learning exercise in creating plugin support) I want to use a Plugin model. Currently, I have a simple Interface in my main app, which plugins can Implement. My app then loads all...

vb.net - Events with a handled property. Is this way save?

Ok, I have a winforms app and my code works fine. But I want to know if my code is bullet proof or if it only works without load. Let me explain it: I have a windows form where I have overridden the OnKeyDown method: Protected Overrides Sub OnKeyDown(ByVal e As System.Windows.Forms.KeyEventArgs) dim args as new ActionEven...

Returning data from sqldependency

I'm trying to write a vb.net application that uses an sql dependancy. The dependancy will be triggered when data is added to the database. I'm wondering if it's possible to have the dependancy return the data/query that triggered it. currently i have to have the onchange event trigger a select statement to refresh the data i have cach...

Is there an advantage to USING vs. declaring a context variable?

These two snippets do the same thing - is there one that's better than the other, or is it just a matter of preference? Using context As MyDatabaseDataContext = New MyDatabaseDataContext() Dim test = context.Employees.Count End Using vs. Dim context As MyDatabaseDataContext = New MyDatabaseDataContext() Dim test = context.Employe...

Downloaded word file displaying incorrectly

Hi there, I am working on a website at the moment which is displaying a strange bug with generated word documents. The site has a feature on it which allows the user to download a word document containing information related to their visit. This file is generated via some vb.net code and takes an xml template of the final document and i...

Checkbox within a datagrid, findcontrol issue

Keep in mind that for this I am limited to using ASP .NET 1.1, as for this environment I cannot upgrade to 2.0 or beyond Essentially, I have a very simple datagrid that has a checkbox in one of the columns, which is a template column...the code for the datagrid is this: <asp:datagrid id="dgDates" OnItemCommand="gridEventHandler" Bor...

Paste Excel Table in VB.NET application

Hi, How can I create an HTML Table using VBA.Net, which will accept numeric matrix from Excel. ...