Any Situation Whereby X= Nothing Is Not Same As X Is Nothing?

May 20, 2011

in VB is there any situation whereby x = Nothing is not the same as x is Nothing?Also, x <> Nothing vs x IsNot Nothing.

View 1 Replies


ADVERTISEMENT

Reading From Excel Situation

Jan 4, 2011

i have this code that i am using to read from an excel spreadsheet but it i giving me an error saying that i am not not giving the exact name of the table.i have uploaded the excel spreadsheet as well. [code]

View 5 Replies

Sql Statement Has One Situation Is Crashes

Aug 18, 2011

The following is a function to read a value from a field in a database, then add a value to it, and restore it.The three possible columns it reads from are Hoodoo, Give Them, Snug.It works no probs for hoodoo and snug, but not for Give them..[code]Index Out of Range Exception was unhandled. The text visualizer says that the value of night is give them.I can see the column give them in the database, so what could be going on?

View 3 Replies

Handle Multithread Situation And Don't Lock?

Nov 25, 2009

I have this situation: a Form with a System.Timer in it (with AutoReset = False). The form has its main thread and the timer its own thread too (nothing new here). When the user press a button I need to stop the timer, wait until the timer thread has stopped its execution and do something more.

On the other side, the timer updates an item at the form so BeginInvoke is used. The code looks like this:

Button Code: Private Sub ButtonStop_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonStop.Click

[Code]...

The point is that I wait the main thread to let the timer thread to end its work.The problem is that this code deadlocks when the user clicks the button when the BeginInvoke is going to be called. How a simple thing like this one can be done? Looks like I cannot find a good solution to this problem

View 2 Replies

Is Retrofitting Entity Framework Into App Appropriate For Situation

Sep 14, 2010

So, I have an app that uses a SQL Server express db. I have about 80ish tables all with a primary key but no foreign keys. (The reason we have no foreign keys is because of how we do our sql client-to-server replication. It's not true replication but it's a sync system that was in place when we took over the app. We have no guarantee what records are going to make it to the database first when a client syncs to the server so it is possible that a record would make it to the database with a foreign key that points to a nonexistant record). We use a type-per-model convention. For each of our business objects there is a table in the db. We currently use stored procedures for every database transaction. This means for every new class there is at least 4 new stored procedures (crud). We have abstracted out our data access layer from our business objects. Each business object has a corresponding businessObjectDAO.

My question is, is entity framework feasible for me to move to? With no foreign key relationships I'm going to have to set up every association between tables manually.My biggest hang up right now is trying to figure out how I map my DAOs to the EF partial classes. Should I be creating one big .edmx or multiple? A lot of questions I know. This is my first big architectural type decision and I've been given the go ahead to make the change if I think it is beneficial and feasible. Maybe I should try Linq-to-SQL? NHibernate is out because we're not allowed using open source products in production (stupid, I know).

View 1 Replies

Select XML Elements In This Situation In Program?

Jun 11, 2012

So I have[code]...

It would give me 5 instead 4 results, since <title>My Channel</title> is considered one of the item under channel. I'm just wondering if there is anyway to loop through only the 4 item elements.

View 1 Replies

Check Box That The Use Checks To Indicate That A Specific Situation Is Present

Jan 26, 2012

I have a Check Box that the use checks to indicate that a specific situation is present. When the User checks the box he gets a Message Box reminding him that the condition must be fulfilled. This works fine and the database reflectthe fact that the Check Box is filled.

At a later date, if the user calls this record and fills the form, the Check Box is triggered and the message Box appears in the middle of the form fill operation.

Is there a way to prevent this from happening. I want the Check Box checked but don't want the message box if the change is triggered by the fill process.

View 1 Replies

Create Multiple Dataset Depend On Situation?

Dec 17, 2009

I want to create multiple dataset depend on situation. dataset number may vary each time.how can we create multiple dataset

View 4 Replies

.Cast(Of Double) Extension Method Not Working In A Particular Situation ?

Sep 8, 2011

.Cast(Of Double) extension method not working in a particular situation.However I can get my own extension method .CastToDouble working.Would you call this a Framework bug?see the commented out line of code in the code below.Similar code posted in my last post in this thread: http:[url].....

Option Strict On
Option Explicit On
Option Infer Off[code]......

View 8 Replies

What Situation Will An Item In System.Collections.Generic.List Not Be Removed Successfully

May 20, 2011

in what situation will an item in System.Collections.Generic.List not be removed successfully?url...The way they phrase it makes me think that it is possible that a Remove operation on an item found in the List(Of T) could actually fail.

View 4 Replies

Why The Mouse_Leave Event Fires When Don't Leave The Control With The Mouse Pointer In This Situation

Jun 11, 2011

Anyone know why the Mouse_Leave event fires when you don't leave the control with the mouse pointer?Put a large button on a Form so your mouse pointer does not leave it easily.Then try this codeWhen you do, leave the mouse pointer in the middle of the button and then click the button.By the way, if you uncomment the 1st line of code in the Button Click event and comment out the MessageBox, this does not happen.Can someone please explain this behaviour?

Option Strict On
Option Explicit On
Option Infer Off

[code].....

View 5 Replies

.net - Dll Reference Count In A Circular Reference Situation In C# 4.0?

Sep 19, 2011

Iam maintaining a large code base I have inherited (ported from vb6 to C#.net 1.1, then to .net 2.0/c# and so on). I have this scenario.My main project references two DLLs - DLL-A and DLL-B

DLL-B references DLL-A. Both dll's and my main project are in 3 separate namespaces.

1) Are 2 copies of DLL-A being loaded in memory ? (dll ref count)

2) How do I find out how many copies of a .net dll is loaded in mem ? (which tool is normally used)

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved