Release Makes NULL's
Jul 11, 2011When in debug mode This code:[code]I would put out the whole source code but, just the extended browser alone is about 500 lines.
View 2 RepliesWhen in debug mode This code:[code]I would put out the whole source code but, just the extended browser alone is about 500 lines.
View 2 RepliesI have a fairly simple piece of code:
Private _PurchaseDelivery as PurchaseDelivery
Protected Overrides Sub InsertItem(ByVal index As Integer, ByVal item As PurchaseDeliveryItem)
[Code]....
Which is inside a class which overrides a custom list base. The code is occassionaly throwing an unhandled exception, System.NullReferenceException, on this line when used in production:
If _PurchaseDelivery IsNot Nothing AndAlso _PurchaseDelivery.DefaultSKUBinID.HasValue Then
DeafultSKUBinID is declared as an Integer? (Nullable Int) in the PurchaseDelivery class. I cannot see what might be causing this error, why would this be returning an error?
How to check whether a column is null i use the following code but I got this error "Input string was not in a correct format."
[Code]....
When I put a break point to the last if clause in the sub ("If (backOrder < 0) Then", see below) it runs until the break point, if I put the break point further below, I get the following error:
Cannot insert the value NULL into column 'OrderID', table 'WHM.dbo.OrderDetails'; column does not allow nulls. INSERT fails. The statement has been terminated.
I've discovered first hand that it only happens when prodqty is bigger then qtyOnStock, thus executing the if clause.
The code:
Private Sub NCOSubmit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NCOSubmit.Click
Dim sqlText As String = ""
[Code]....
In Visual Basic 6.0 Professional, on some of my programs (probably the simple ones) the File drop-down menu Make option has .vbp instead of .exe extension. How do I force it to compile?
View 1 RepliesI have a data driven application in <acronym title="Visual Basic">VB</acronym> which works with an SQL Server 05 Database.Since this app makes use of many queries and commands, occasionally i'me getting a timeout error as the connection pool is full. So i figured that at a specifc point in time within the app,i'll clear the connection pools using the ClearAllPools method rather than increase max pool size.
I'm using the performance monitor on my XP development machine (NumberOfPooledConnections) however not once do i see the number of Pooled Connections reset to 0 even when that method is called.How can I determine that my solution is working (if it is) before I deploy the update?
I just tried fooling around with a "windows forms" project, and I would like to see the code that creates the form. How would I go about looking at that?I can only edit the code that would occur from GUI events.
View 4 RepliesI am writing an application in VS2010 using VB.net.The application is relatively simple and I would expect the .exe to be less than 1 Meg.I have written a couple of applications that are quite a bit larger that are less than 2 Meg.I am compiling in "Release" mode.The file size is 29,127 KB (in debug mode it is just 29,167 KB)Where do I start looking to find why the .exe is so large?
View 2 RepliesIn a function I have
Do Until PageLoaded() = True
{
Nothing
}
The problem is it freezes up the program and makes it unusable. I fixed it using timers but it makes my program real sloppy and hard to edit.
The question header is clear, i want to know why its different and why, when to select it for my project?
View 6 RepliesCalculate the value between 0 & 180 degrees that makes the function sinx=x
View 6 RepliesI have some coding which basically edits my text file and removes the duplicates. For some reason when I run it, it hangs my application for like 10 seconds - the coding does work just hangs my application..[code]
View 8 Repliesi have a problem.. i use this code to download:Dim dl As New System.Net.WebClient dl.DownloadFile({online_file}, {local_file})now, it does download the file. my work is done. the only downside is that, until the download is finished, the program crashes!if i download a 5kb .txt file, all is ok, you wouldnt even notice
if i try to download a 15MB .rar file though.. now the program crashes for a long time! when the file is fully downloaded it works just fine again.how can i make it so that downloading doesnt make the application non-responsive?(and if possible, how can i make it see how many kb is downloaded? like at this second its 15kb of 2048kb)
I was wondering if it would be possible to monitor a programs audio output and identify when its on / off? I'm coding a carpc frontend and would like to mute the audio when the navigation program speaks directions.
View 1 RepliesIs BindingSource class makes use of Threading to read and write the values in controls and in objects?I mean how bindingsource know when properties of an object changes and sometimes seems not to know? Does it use a kind of BackGroundWorker running to watch changes on bindings objects? And why does it sometimes read and write properties so many times the same value on the same object's property?I found that it's sometimes easier not to use them since it's hard to know why a control do not update but, on the other hand, dealing with control events can be tedious. And what if i tried to make my own BindingSource Class not inherited from the System.Form.BindingSource
View 2 RepliesTry
OleDbConn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\list.mdb")
OleDbConn.Open()
[code]......
here is my script:
Private Sub UpdateThread()
Dim AppDir As String = Application.StartupPath()
My.Computer.Network.DownloadFile(MyUpdate.UpdateFetchURL,
[Code]...
It does perfectly the UpdateThread task, but program just hangs.
I'm have coded some code so that when Ball1 hits objects extra1 or extra2 or extra3 or extra4 or extra5 then that extra what ever value was hit would disappear. But for some reason when ball1 hits one of them they all seem to go.[code]
View 12 RepliesAnother one of my noob questions. How would I assing the enter key to press a certian button? Like I press enter and it presse the go button on my webbrowser.
View 3 RepliesI have a custom NumericUpDownColumn in my DataGridView. Problem is that when I type in a 0 in those cells it automatically changes to DBNull, this causes all sorts of problems with other code. I found the code for the custom column through a google search and don't know enough code to actually go through it and fix the problem myself. If I change the column to a TextBox column instead, it shows a 0 instead of DBNull and everything works as it should. So I figured the problem must be within the code for the custom column. Here's the
[Code]...
Is there any way to change the sound MessageBox makes when it appears? I've written a Hangman game that displays a message box when a player wins, loses, hits an invalid key, or presses the same key twice and it always makes the same sound.
View 4 Replies[code] When I click on the Button that makes the Prog Bar activate then when its all full it spams the MessageBox saying "Hai" Unlimited times.
View 1 RepliesHow do i make a folder that my program makes hidden. I am using (MkDir)
View 5 RepliesI where wondering about it is pausible to make a program that makes a popup on your screen at a time you chose in the program? and then you could choose a text and a icon as a message, so the program reminded you about something?
View 15 Replieshow to make a program that makes all the possible characters and numbers (A-Z & a-z & 0-9) from 5-20 characters, and put them in a list or something?
Someone may think this is bruteforce hacking, but I don't see why I should do that? If I want to find a password on 13 characters, it would be: 62^13 = 200028539268669788905472 possibilities... in other words... it would take forever!
Im building an application in vb 2010 which uses window media player component. When I run the application in debug mode and Press Play button, the application hangs up and stops responding. When I press PAUSE button in vb 2010 the line it shows is
mediaPlayer.URL = curl
i have a text document that is a list of words. How do i code using substring so that it singles out each of these words and makes it into an array?
View 14 Repliesi have an access 2007 database in wich i have a table named abc_PersonalLog, wich also has three columns: Id (auto number), StarDate (text) and LogEntry (Memo). It is a Diary application. So, when the user makes a log entry, the StarDate column receives a string formed of concatenated year, month and day, i.e. if date is 20th march 2012, the string will be 120320, and the Log entry column, the text entered by user in a textbox.My problem is that, somehow, i have to retrieve that data, when the user will want to read log entries he made. I managed to assign the text property of a label to the LogEntry text for a given date.But, if the user makes multiple entries in a single day, the table will have several rows containing the same string in the StarDate field, but different text in the LogEntry fields. How can i display ALL the LogEntry texts for all the rows containing the same StarDate value? Here is my code so far:
[Code]...
I am working on a program which makes tables in MS WORD. But there are many parameters that should be asked. Its so embarrassing to ask all of them with inputbox while codes are working. I made forms for each tables which will be created. While codes are working, when it is the time to create table, form appears and user inputs the datas and press OK button and table is build according to these datas in MS Word. Does anyone has an idea ?
View 1 RepliesVS 2008 Confused - Code Makes All Disappear
View 5 Replies