Click here to Skip to main content
15,914,066 members
Home / Discussions / Database
   

Database

 
GeneralRe: How to create and use Alias Name for the Database Pin
Richard Deeming10-Feb-16 1:35
mveRichard Deeming10-Feb-16 1:35 
Questionkilling processes on mysql Pin
Gilbert Consellado6-Feb-16 21:55
professionalGilbert Consellado6-Feb-16 21:55 
AnswerRe: killing processes on mysql Pin
Gilbert Consellado7-Feb-16 23:18
professionalGilbert Consellado7-Feb-16 23:18 
AnswerRe: killing processes on mysql Pin
Gilbert Consellado8-Feb-16 3:02
professionalGilbert Consellado8-Feb-16 3:02 
Questiontextbox help Pin
Member 122873371-Feb-16 2:39
Member 122873371-Feb-16 2:39 
AnswerRe: textbox help Pin
Chris Quinn1-Feb-16 4:10
Chris Quinn1-Feb-16 4:10 
GeneralRe: textbox help Pin
Member 122873371-Feb-16 20:19
Member 122873371-Feb-16 20:19 
AnswerRe: textbox help Pin
Sascha Lefèvre1-Feb-16 4:21
professionalSascha Lefèvre1-Feb-16 4:21 
When you get a NullReferenceException you have to look at the line where it occurs and ask yourself: What could be null here that shouldn't be null? There are two variables involved: TextBox1 and s. TextBox1 could be null but you probably have let it "set up" for you by the designer so it's unlikely. That leaves s. Have you initialized s with an instance of its class Sales, something like Sales s = new Sales(); ?

Edit: Yes, you have. Sorry, I completely missed it.
So then run your App in debug mode and when you hit that line where the exception occurs inspect all variables on that line to find out which one is null.
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson


modified 2-Feb-16 7:17am.

GeneralRe: textbox help Pin
Jörgen Andersson1-Feb-16 21:15
professionalJörgen Andersson1-Feb-16 21:15 
GeneralRe: textbox help Pin
Sascha Lefèvre2-Feb-16 1:10
professionalSascha Lefèvre2-Feb-16 1:10 
GeneralRe: textbox help Pin
Jörgen Andersson2-Feb-16 1:30
professionalJörgen Andersson2-Feb-16 1:30 
GeneralRe: textbox help Pin
Sascha Lefèvre2-Feb-16 1:54
professionalSascha Lefèvre2-Feb-16 1:54 
AnswerRe: textbox help Pin
Richard MacCutchan1-Feb-16 22:00
mveRichard MacCutchan1-Feb-16 22:00 
Questionbinding a textbox Pin
Member 122873371-Feb-16 2:38
Member 122873371-Feb-16 2:38 
Questionstoring image in blob vs text? Pin
Jassim Rahma30-Jan-16 9:34
Jassim Rahma30-Jan-16 9:34 
AnswerRe: storing image in blob vs text? Pin
Mycroft Holmes30-Jan-16 12:36
professionalMycroft Holmes30-Jan-16 12:36 
GeneralRe: storing image in blob vs text? Pin
Eddy Vluggen30-Jan-16 23:40
professionalEddy Vluggen30-Jan-16 23:40 
AnswerRe: storing image in blob vs text? Pin
Eddy Vluggen30-Jan-16 23:39
professionalEddy Vluggen30-Jan-16 23:39 
AnswerRe: storing image in blob vs text? Pin
Jörgen Andersson30-Jan-16 23:57
professionalJörgen Andersson30-Jan-16 23:57 
QuestionSQL Server Query Plan Cache Behavior Pin
Foothill28-Jan-16 10:18
professionalFoothill28-Jan-16 10:18 
AnswerRe: SQL Server Query Plan Cache Behavior Pin
Jörgen Andersson29-Jan-16 3:49
professionalJörgen Andersson29-Jan-16 3:49 
GeneralRe: SQL Server Query Plan Cache Behavior Pin
Foothill29-Jan-16 4:14
professionalFoothill29-Jan-16 4:14 
GeneralRe: SQL Server Query Plan Cache Behavior Pin
Jörgen Andersson29-Jan-16 4:25
professionalJörgen Andersson29-Jan-16 4:25 
GeneralRe: SQL Server Query Plan Cache Behavior Pin
Foothill29-Jan-16 4:32
professionalFoothill29-Jan-16 4:32 
GeneralRe: SQL Server Query Plan Cache Behavior Pin
Jörgen Andersson29-Jan-16 4:33
professionalJörgen Andersson29-Jan-16 4:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.