Click here to Skip to main content
15,889,462 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: Detecting a messagebox displayed Pin
Kashif Iqbal Khan29-Jul-07 22:20
Kashif Iqbal Khan29-Jul-07 22:20 
AnswerRe: Detecting a messagebox displayed [modified] Pin
Luc Pattyn30-Jul-07 0:06
sitebuilderLuc Pattyn30-Jul-07 0:06 
QuestionFxCop Pin
ellllllllie27-Jul-07 3:53
ellllllllie27-Jul-07 3:53 
AnswerRe: FxCop Pin
Luc Pattyn27-Jul-07 4:28
sitebuilderLuc Pattyn27-Jul-07 4:28 
GeneralRe: FxCop Pin
Scott Dorman27-Jul-07 12:37
professionalScott Dorman27-Jul-07 12:37 
AnswerRe: FxCop Pin
Scott Dorman27-Jul-07 12:34
professionalScott Dorman27-Jul-07 12:34 
QuestionRead/Write to Excel Pin
Elizma26-Jul-07 23:50
Elizma26-Jul-07 23:50 
AnswerRe: Read/Write to Excel Pin
ellllllllie27-Jul-07 3:57
ellllllllie27-Jul-07 3:57 
public void GenerateBOMdata(BOMExportCollection bomexports, string filename)
{
TextWriter csvwriter = null;
try
{
StringBuilder bomdata = new StringBuilder();

// START: NAME: Sopan Take DATE: 20-09-2006 REASON: BUG Fix (ID: 0040788)
csvwriter = new StreamWriter(filename, false, Encoding.Default);
// csvwriter = new StreamWriter(filename, false, Encoding.GetEncoding(Thread.CurrentThread.CurrentCulture.TextInfo.ANSICodePage));

// START: NAME: Sopan Take DATE: 18-10-2006 REASON: BUG Fix (ID: 0043356)
// Headers
AppendTextToStringBuilder(bomdata, resourceManager.GetString("PLCExport.Quantity"));
bomdata.Append(osCulture.TextInfo.ListSeparator);

AppendTextToStringBuilder(bomdata, resourceManager.GetString("PLCExport.PartNumber"));
bomdata.Append(osCulture.TextInfo.ListSeparator);

AppendTextToStringBuilder(bomdata, resourceManager.GetString("PLCExport.Description"));
bomdata.Append(osCulture.TextInfo.ListSeparator);

AppendTextToStringBuilder(bomdata,resourceManager.GetString("PLCExport.UserNote"));
bomdata.Append(Environment.NewLine);

// Add data
foreach(BOMExport bomexport in bomexports)
{
AppendTextToStringBuilder(bomdata, bomexport.Quantity);
bomdata.Append(osCulture.TextInfo.ListSeparator);

AppendTextToStringBuilder(bomdata, bomexport.PartNumber);
bomdata.Append(osCulture.TextInfo.ListSeparator);

AppendTextToStringBuilder(bomdata, bomexport.Description);
bomdata.Append(osCulture.TextInfo.ListSeparator);

// END

AppendTextToStringBuilder(bomdata, bomexport.UserNote);
bomdata.Append(Environment.NewLine);
}
// END

csvwriter.WriteLine(bomdata.ToString());
}
catch
{
throw;
}
finally
{
if(csvwriter!=null)
{
csvwriter.Flush();
csvwriter.Close();
}
}
}

i have copied my code only.plz if something not clear plz feel to reply me ok bye

dghdfghdfghdfghdgh

AnswerRe: Read/Write to Excel Pin
Paul Conrad27-Jul-07 9:47
professionalPaul Conrad27-Jul-07 9:47 
Questionhow to call the click event or cellclick even of datagrid from a button Pin
indian14326-Jul-07 5:19
indian14326-Jul-07 5:19 
AnswerRe: how to call the click event or cellclick even of datagrid from a button Pin
Kschuler26-Jul-07 9:25
Kschuler26-Jul-07 9:25 
GeneralRe: how to call the click event or cellclick even of datagrid from a button Pin
indian14326-Jul-07 20:24
indian14326-Jul-07 20:24 
GeneralRe: how to call the click event or cellclick even of datagrid from a button Pin
indian14326-Jul-07 21:43
indian14326-Jul-07 21:43 
GeneralRe: how to call the click event or cellclick even of datagrid from a button Pin
Christian Graus26-Jul-07 23:18
protectorChristian Graus26-Jul-07 23:18 
GeneralRe: how to call the click event or cellclick even of datagrid from a button Pin
indian14327-Jul-07 0:16
indian14327-Jul-07 0:16 
GeneralRe: how to call the click event or cellclick even of datagrid from a button Pin
Christian Graus27-Jul-07 0:48
protectorChristian Graus27-Jul-07 0:48 
GeneralRe: how to call the click event or cellclick even of datagrid from a button Pin
indian14327-Jul-07 1:00
indian14327-Jul-07 1:00 
GeneralRe: how to call the click event or cellclick even of datagrid from a button Pin
Christian Graus27-Jul-07 12:36
protectorChristian Graus27-Jul-07 12:36 
GeneralRe: how to call the click event or cellclick even of datagrid from a button Pin
indian14328-Jul-07 4:34
indian14328-Jul-07 4:34 
QuestionRe: how to call the click event or cellclick even of datagrid from a button Pin
Christian Graus30-Jul-07 11:05
protectorChristian Graus30-Jul-07 11:05 
QuestionMy clients requirement is Pin
indian14326-Jul-07 2:34
indian14326-Jul-07 2:34 
AnswerRe: My clients requirement is Pin
Pete O'Hanlon26-Jul-07 4:31
mvePete O'Hanlon26-Jul-07 4:31 
GeneralRe: My clients requirement is Pin
indian14326-Jul-07 5:15
indian14326-Jul-07 5:15 
GeneralRe: My clients requirement is Pin
originSH26-Jul-07 5:51
originSH26-Jul-07 5:51 
GeneralRe: My clients requirement is Pin
Dave Kreskowiak26-Jul-07 11:07
mveDave Kreskowiak26-Jul-07 11:07 

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.