Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
GeneralRe: setting a font Pin
leppie29-Dec-04 23:21
leppie29-Dec-04 23:21 
General.net Remoting Pin
Anil_gupta29-Dec-04 18:21
Anil_gupta29-Dec-04 18:21 
GeneralRe: .net Remoting Pin
leppie29-Dec-04 23:22
leppie29-Dec-04 23:22 
GeneralRe: .net Remoting Pin
Adam Goossens30-Dec-04 1:13
Adam Goossens30-Dec-04 1:13 
GeneralRe: .net Remoting Pin
Adam Goossens30-Dec-04 16:48
Adam Goossens30-Dec-04 16:48 
Generalobject and layers design question Pin
ppp00129-Dec-04 17:50
ppp00129-Dec-04 17:50 
GeneralOverrated Pin
Paul Watson29-Dec-04 21:45
sitebuilderPaul Watson29-Dec-04 21:45 
Generala small doubt ,pls urgent Pin
dhol29-Dec-04 17:12
dhol29-Dec-04 17:12 
Hi,
I did a program and in that part i have given a loop. This is a program which reads any xml schema file and according to their datatypes , It creates 200 values in a xml file. Each values should differ from the other. I have done it for other datatypes. But for DateTime, I dont know how to change the data, Pls have a look through and sent me. Its very urgent for me now. I ma sending the loop part alone and I will mark my dobtful part alone in bold . just give an idea how to do.

private void button2_Click(object sender, System.EventArgs e)
{
dataSet1.ReadXmlSchema(txtSchema.Text);
foreach (DataTable dTbl in dataSet1.Tables)
{
for(int j = 0; j <= 200; j++)
{
object[] oValues = new object[dTbl.Columns.Count];
int i = 0 ;
foreach (DataColumn dColmn in dTbl.Columns)
{
switch(dColmn.DataType.ToString())
{
case "System.String":
oValues[i] = (string) "This is string" + j;
break;

case "System.DateTime":
oValues[i] = new DateTime(2004,10,12) ;
break;

}
i = i+1;
}
dTbl.Rows.Add(oValues);
}
}
}

santhosh
GeneralRe: a small doubt ,pls urgent Pin
Paul Watson29-Dec-04 21:52
sitebuilderPaul Watson29-Dec-04 21:52 
GeneralRe: a small doubt ,pls urgent Pin
dhol30-Dec-04 1:42
dhol30-Dec-04 1:42 
GeneralOpening a browser page from C# windows... Pin
new_phoenix29-Dec-04 15:33
new_phoenix29-Dec-04 15:33 
GeneralDiagnostic.Process Pin
Paul Watson29-Dec-04 21:50
sitebuilderPaul Watson29-Dec-04 21:50 
GeneralRe: Diagnostic.Process Pin
new_phoenix31-Dec-04 5:35
new_phoenix31-Dec-04 5:35 
GeneralRe: Diagnostic.Process Pin
Paul Watson1-Jan-05 10:19
sitebuilderPaul Watson1-Jan-05 10:19 
GeneralGlobal Shortcut Pin
elitecodex29-Dec-04 12:21
elitecodex29-Dec-04 12:21 
GeneralRe: Global Shortcut Pin
Adam Goossens29-Dec-04 14:50
Adam Goossens29-Dec-04 14:50 
GeneralRe: Global Shortcut Pin
elitecodex30-Dec-04 0:24
elitecodex30-Dec-04 0:24 
GeneralCLosing threads Pin
Ista29-Dec-04 11:56
Ista29-Dec-04 11:56 
GeneralRe: CLosing threads Pin
Adam Goossens29-Dec-04 14:35
Adam Goossens29-Dec-04 14:35 
GeneralRe: CLosing threads Pin
Ista30-Dec-04 4:53
Ista30-Dec-04 4:53 
GeneralRe: CLosing threads Pin
Adam Goossens30-Dec-04 13:03
Adam Goossens30-Dec-04 13:03 
GeneralThread and Not Responding Pin
brunoconde29-Dec-04 9:48
brunoconde29-Dec-04 9:48 
GeneralRe: Thread and Not Responding Pin
Tom Larsen29-Dec-04 10:49
Tom Larsen29-Dec-04 10:49 
GeneralRe: Thread and Not Responding Pin
Heath Stewart29-Dec-04 11:23
protectorHeath Stewart29-Dec-04 11:23 
GeneralRe: Thread and Not Responding Pin
Tom Larsen30-Dec-04 4:29
Tom Larsen30-Dec-04 4:29 

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.