Click here to Skip to main content
15,914,350 members
Home / Discussions / C#
   

C#

 
GeneralPropertyGrid & UITypeEditor - PLS HELP Pin
deepakpesit18-Jul-05 23:05
deepakpesit18-Jul-05 23:05 
GeneralRe: PropertyGrid & UITypeEditor - PLS HELP Pin
leppie18-Jul-05 23:54
leppie18-Jul-05 23:54 
GeneralRe: PropertyGrid & UITypeEditor - PLS HELP Pin
deepakpesit19-Jul-05 2:22
deepakpesit19-Jul-05 2:22 
QuestionHandshaking with an event inside a DLL? Pin
pcssathik18-Jul-05 22:54
pcssathik18-Jul-05 22:54 
GeneralC# handshaking with a Event inside a DLL Pin
Anonymous18-Jul-05 22:47
Anonymous18-Jul-05 22:47 
GeneralUrgent help about calculator Pin
TA-RS18-Jul-05 22:42
TA-RS18-Jul-05 22:42 
GeneralRe: Urgent help about calculator Pin
tatchung18-Jul-05 22:50
tatchung18-Jul-05 22:50 
GeneralFinal Leg!! Pin
tatchung18-Jul-05 22:40
tatchung18-Jul-05 22:40 
Hello again! I'm on the last stretch of my 1st ever c# program and I really need help in solving this last, yet possibly hardest problem i've encountered yet.

Well I have this program that saves the output of my query in a datagrid into text file. I've accomplished half of it meaning I can save it at a target location but:

1. Why can I only save it in specific folders like c:\Temp? I'm hoping I could save it on the desktop.

2. Why doesn't a command prompt appear when I click the save button? It save directly and doesn't even inform the user that it has been saved although it already is.

3. How do I solve this problem?

I've tried searching the net for possible solutions but failed. Here's my code:

private void btnSave_Click(object sender, System.EventArgs e)

dtMain = objBM.fMain(DropDownList1.SelectedItem.Value,DropDownList2.SelectedItem.Text);
StreamWriter sr = File.CreateText("c://Temp//SSS.txt");
string strout;
if (dtMain.Rows.Count > 0)
{
for (int intptr = 0; intptr <= dtMain.Rows.Count - 1; intptr++)
{
strout = " ";
for (int intptr2 = 0; intptr2 <= dtMain.Columns.Count - 1; intptr2++)
{
strout += dtMain.Rows[intptr].ItemArray[intptr2] + " ";
}
sr.WriteLine(strout);
}
}
sr.Close();
}

Any and all suggestions, reactions and informations would be greatly appreciated. Thanx for all your helps!

thanx
GeneralRe: Final Leg!! Pin
Gavin Jeffrey18-Jul-05 22:54
Gavin Jeffrey18-Jul-05 22:54 
GeneralPredefined Macros Pin
Paul Selormey18-Jul-05 19:36
Paul Selormey18-Jul-05 19:36 
GeneralRe: Predefined Macros Pin
Christian Graus18-Jul-05 19:50
protectorChristian Graus18-Jul-05 19:50 
GeneralRe: Predefined Macros Pin
Paul Selormey18-Jul-05 21:36
Paul Selormey18-Jul-05 21:36 
GeneralRe: Predefined Macros Pin
leppie19-Jul-05 0:05
leppie19-Jul-05 0:05 
GeneralRe: Predefined Macros Pin
Paul Selormey19-Jul-05 4:14
Paul Selormey19-Jul-05 4:14 
GeneralRe: Predefined Macros Pin
Christian Graus19-Jul-05 10:32
protectorChristian Graus19-Jul-05 10:32 
GeneralOptional Parameter in C# Pin
arechno18-Jul-05 18:55
arechno18-Jul-05 18:55 
GeneralRe: Optional Parameter in C# Pin
Christian Graus18-Jul-05 19:02
protectorChristian Graus18-Jul-05 19:02 
GeneralRe: Optional Parameter in C# Pin
arechno18-Jul-05 19:27
arechno18-Jul-05 19:27 
GeneralRe: Optional Parameter in C# Pin
Christian Graus18-Jul-05 19:29
protectorChristian Graus18-Jul-05 19:29 
GeneralRe: Optional Parameter in C# Pin
DavidNohejl19-Jul-05 3:08
DavidNohejl19-Jul-05 3:08 
GeneralRe: Optional Parameter in C# Pin
Dave Doknjas19-Jul-05 16:45
Dave Doknjas19-Jul-05 16:45 
GeneralRe: Optional Parameter in C# Pin
Christian Graus19-Jul-05 16:52
protectorChristian Graus19-Jul-05 16:52 
GeneralMy XmlFile looses its tree hierarchy after saving it Pin
rudy.net18-Jul-05 15:01
rudy.net18-Jul-05 15:01 
GeneralGetLParam function Pin
manhuber18-Jul-05 14:56
manhuber18-Jul-05 14:56 
GeneralRe: GetLParam function Pin
Luis Alonso Ramos18-Jul-05 15:30
Luis Alonso Ramos18-Jul-05 15: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.