Click here to Skip to main content
15,916,600 members
Home / Discussions / C#
   

C#

 
AnswerRe: RegEx Pin
MarcelloTurnbull6-Jan-09 7:25
MarcelloTurnbull6-Jan-09 7:25 
Questioncalling a matlab function from c# Pin
yrajwan6-Jan-09 2:54
yrajwan6-Jan-09 2:54 
AnswerRe: calling a matlab function from c# Pin
EliottA6-Jan-09 3:18
EliottA6-Jan-09 3:18 
GeneralRe: calling a matlab function from c# Pin
yrajwan6-Jan-09 3:26
yrajwan6-Jan-09 3:26 
GeneralRe: calling a matlab function from c# [modified] Pin
EliottA6-Jan-09 3:28
EliottA6-Jan-09 3:28 
GeneralOT- Welcome in the CP's memorable quotes Pin
CPallini6-Jan-09 6:16
mveCPallini6-Jan-09 6:16 
GeneralRe: OT- Welcome in the CP's memorable quotes Pin
EliottA6-Jan-09 6:23
EliottA6-Jan-09 6:23 
QuestionDataSet Problem ! Pin
Mohammad Dayyan6-Jan-09 2:39
Mohammad Dayyan6-Jan-09 2:39 
Hi guys.
I've added a database in my project. VS2008 SP1 creates a DataSet with Database1DataSet name.
Now I want to update the DataBase with this code :
C++
private void saveButton_Click(object sender, RoutedEventArgs e)
{
    Database1DataSet myDataSet = new Database1DataSet();
    
    DataRow myDataRow = myDataSet.Tables["events"].NewRow();//on this line 
    myDataRow["event"] = "new text";
    myDataRow["date"] = mdCalendar.Time();
    myDataSet.Tables["events"].Rows.Add(myDataRow);

}


but this error has occurred :
Object reference not set to an instance of an object.


I'm sure the events exist in the DataBase.
What's wrong with it ?
Thanks in advance.
AnswerRe: DataSet Problem ! Pin
Wendelius6-Jan-09 2:47
mentorWendelius6-Jan-09 2:47 
AnswerRe: DataSet Problem ! Pin
Jason C Bourne7-Jan-09 11:21
Jason C Bourne7-Jan-09 11:21 
GeneralRe: DataSet Problem ! Pin
Mohammad Dayyan7-Jan-09 23:27
Mohammad Dayyan7-Jan-09 23:27 
QuestionDisable/enable CollectionEditor properties? Pin
kanchoette6-Jan-09 2:35
kanchoette6-Jan-09 2:35 
AnswerRe: Disable/enable CollectionEditor properties? Pin
Henry Minute6-Jan-09 2:58
Henry Minute6-Jan-09 2:58 
GeneralRe: Disable/enable CollectionEditor properties? Pin
kanchoette6-Jan-09 3:32
kanchoette6-Jan-09 3:32 
GeneralRe: Disable/enable CollectionEditor properties? Pin
Henry Minute6-Jan-09 4:25
Henry Minute6-Jan-09 4:25 
GeneralRe: Disable/enable CollectionEditor properties? Pin
kanchoette6-Jan-09 4:30
kanchoette6-Jan-09 4:30 
QuestionShowBalloonTip of notifyicon not working Pin
Tridip Bhattacharjee6-Jan-09 2:08
professionalTridip Bhattacharjee6-Jan-09 2:08 
AnswerRe: ShowBalloonTip of notifyicon not working Pin
Wendelius6-Jan-09 2:19
mentorWendelius6-Jan-09 2:19 
QuestionPanels - Changing their width and dealing with the Horizontal Scroll Bar Pin
Matthew Klein6-Jan-09 2:07
Matthew Klein6-Jan-09 2:07 
AnswerRe: Panels - Changing their width and dealing with the Horizontal Scroll Bar Pin
EliottA6-Jan-09 2:14
EliottA6-Jan-09 2:14 
AnswerRe: Panels - Changing their width and dealing with the Horizontal Scroll Bar Pin
EliottA6-Jan-09 7:28
EliottA6-Jan-09 7:28 
AnswerRe: Panels - Changing their width and dealing with the Horizontal Scroll Bar Pin
#realJSOP6-Jan-09 8:31
professional#realJSOP6-Jan-09 8:31 
GeneralRe: Panels - Changing their width and dealing with the Horizontal Scroll Bar Pin
Matthew Klein6-Jan-09 10:28
Matthew Klein6-Jan-09 10:28 
Questionfilling and adding to byte array [modified] Pin
A4ad6-Jan-09 2:04
A4ad6-Jan-09 2:04 
AnswerRe: filling and adding to byte array Pin
Le centriste6-Jan-09 2:21
Le centriste6-Jan-09 2:21 

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.