Click here to Skip to main content
16,013,322 members
Home / Discussions / C#
   

C#

 
Questionhow to develop mobile application in c#? [modified] Pin
sairam.bhat9-Mar-11 18:44
sairam.bhat9-Mar-11 18:44 
AnswerRe: who was here? Pin
Anubhava Dimri9-Mar-11 18:49
Anubhava Dimri9-Mar-11 18:49 
AnswerRe: who was here? Pin
RobCroll9-Mar-11 18:52
RobCroll9-Mar-11 18:52 
AnswerRe: how to develop mobile application in c#? Pin
Richard MacCutchan9-Mar-11 22:14
mveRichard MacCutchan9-Mar-11 22:14 
AnswerRe: how to develop mobile application in c#? Pin
_Erik_10-Mar-11 0:58
_Erik_10-Mar-11 0:58 
QuestionCalling a function stored in an SQL data field along with text Pin
Nick Listerman9-Mar-11 16:49
Nick Listerman9-Mar-11 16:49 
AnswerRe: Calling a function stored in an SQL data field along with text Pin
PIEBALDconsult10-Mar-11 1:55
mvePIEBALDconsult10-Mar-11 1:55 
QuestionAccessing DataSet getting error Pin
MAW309-Mar-11 14:57
MAW309-Mar-11 14:57 
<
I have setup a DataSet with DataTables in a separate project in which I inialize and load it separately.

public class DataSetA
{
public Trial trial;

public DataSetA()
{
this.trial = new Trial();
}
}



Then when I wish to access the data in another class I use the following I get the following error message "Object reference not set to an instance of an object."

public static class Test
{
public static DataSetA dsA;

static void GetData()
{
Int32 nData = Trial[nRow].nData()
}
}



Can I do the above or do I need to load the DataSet through the constructor as follows.

public class Test
{
public DataSetA dsA;

public Test(DataSetA dsA)
{
dsA = new DataSetA()
}

void GetData()
{
Int32 nData = Trial[nRow].nData()
}
}

If it is a static class I can not do the above.
If alternative methods when do I use the necessary methods.
>

I appreciate any help you can give me.
Thanks in advance,
Michael
Question[Outlook] is It possible to get sender's email address from AppointmentItem? Pin
buffering839-Mar-11 14:53
buffering839-Mar-11 14:53 
AnswerRe: [Outlook] is It possible to get sender's email address from AppointmentItem? Pin
sohail72018-Jul-11 3:29
sohail72018-Jul-11 3:29 
QuestionRandom number generation between a given interval Pin
prakulsol9-Mar-11 6:11
prakulsol9-Mar-11 6:11 
AnswerRe: Random number generation between a given interval Pin
Luc Pattyn9-Mar-11 6:19
sitebuilderLuc Pattyn9-Mar-11 6:19 
GeneralRe: Random number generation between a given interval Pin
prakulsol9-Mar-11 21:41
prakulsol9-Mar-11 21:41 
GeneralRe: Random number generation between a given interval Pin
Luc Pattyn9-Mar-11 21:49
sitebuilderLuc Pattyn9-Mar-11 21:49 
AnswerRe: Random number generation between a given interval Pin
Monjurul Habib9-Mar-11 8:30
professionalMonjurul Habib9-Mar-11 8:30 
GeneralRe: Random number generation between a given interval Pin
prakulsol9-Mar-11 21:44
prakulsol9-Mar-11 21:44 
GeneralRe: Random number generation between a given interval Pin
Pete O'Hanlon9-Mar-11 22:10
mvePete O'Hanlon9-Mar-11 22:10 
AnswerRe: Random number generation between a given interval Pin
RobCroll9-Mar-11 18:58
RobCroll9-Mar-11 18:58 
QuestionHow to convert variable name to string? Pin
Chesnokov Yuriy9-Mar-11 5:58
professionalChesnokov Yuriy9-Mar-11 5:58 
AnswerRe: How to convert variable name to string? Pin
Orcun Iyigun9-Mar-11 6:06
Orcun Iyigun9-Mar-11 6:06 
AnswerRe: How to convert variable name to string? Pin
Pete O'Hanlon9-Mar-11 6:24
mvePete O'Hanlon9-Mar-11 6:24 
GeneralRe: How to convert variable name to string? Pin
Mycroft Holmes9-Mar-11 11:52
professionalMycroft Holmes9-Mar-11 11:52 
AnswerRe: How to convert variable name to string? Pin
Luc Pattyn9-Mar-11 6:26
sitebuilderLuc Pattyn9-Mar-11 6:26 
AnswerRe: How to convert variable name to string? Pin
Chesnokov Yuriy9-Mar-11 23:18
professionalChesnokov Yuriy9-Mar-11 23:18 
AnswerRe: How to convert variable name to string? Pin
SledgeHammer019-Mar-11 6:30
SledgeHammer019-Mar-11 6:30 

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.