Click here to Skip to main content
15,911,327 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to get the Maximum of Value of In a Rows in DataGridView Pin
Shameel23-Nov-11 20:06
professionalShameel23-Nov-11 20:06 
GeneralRe: How to get the Maximum of Value of In a Rows in DataGridView Pin
nassimnastaran24-Nov-11 5:09
nassimnastaran24-Nov-11 5:09 
QuestionTabPage Text Pin
Danzy8323-Nov-11 9:42
Danzy8323-Nov-11 9:42 
AnswerRe: TabPage Text Pin
Luc Pattyn23-Nov-11 10:09
sitebuilderLuc Pattyn23-Nov-11 10:09 
AnswerRe: TabPage Text Pin
BillWoodruff23-Nov-11 21:18
professionalBillWoodruff23-Nov-11 21:18 
QuestionCan we get A Name for the Row of DataGridView ... Pin
nassimnastaran23-Nov-11 8:48
nassimnastaran23-Nov-11 8:48 
AnswerRe: Can we get A Name for the Row of DataGridView ... Pin
PIEBALDconsult23-Nov-11 9:04
mvePIEBALDconsult23-Nov-11 9:04 
GeneralRe: Can we get A Name for the Row of DataGridView ... Pin
nassimnastaran23-Nov-11 9:36
nassimnastaran23-Nov-11 9:36 
GeneralRe: Can we get A Name for the Row of DataGridView ... Pin
PIEBALDconsult23-Nov-11 10:29
mvePIEBALDconsult23-Nov-11 10:29 
GeneralRe: Can we get A Name for the Row of DataGridView ... Pin
nassimnastaran24-Nov-11 5:28
nassimnastaran24-Nov-11 5:28 
AnswerRe: Can we get A Name for the Row of DataGridView ... Pin
Luc Pattyn23-Nov-11 10:10
sitebuilderLuc Pattyn23-Nov-11 10:10 
Questionc# Convert a large bitmap into jpeg format Pin
mgulde23-Nov-11 8:04
mgulde23-Nov-11 8:04 
AnswerRe: c# Convert a large bitmap into jpeg format Pin
darkDercane23-Nov-11 9:00
professionaldarkDercane23-Nov-11 9:00 
AnswerRe: c# Convert a large bitmap into jpeg format Pin
harold aptroot23-Nov-11 9:25
harold aptroot23-Nov-11 9:25 
AnswerRe: c# Convert a large bitmap into jpeg format Pin
Luc Pattyn23-Nov-11 10:17
sitebuilderLuc Pattyn23-Nov-11 10:17 
GeneralRe: c# Convert a large bitmap into jpeg format Pin
mgulde23-Nov-11 22:31
mgulde23-Nov-11 22:31 
GeneralTry/Catch Opinions Pin
mjackson1123-Nov-11 7:08
mjackson1123-Nov-11 7:08 
GeneralRe: Try/Catch Opinions Pin
PIEBALDconsult23-Nov-11 7:16
mvePIEBALDconsult23-Nov-11 7:16 
GeneralRe: Try/Catch Opinions Pin
Not Active23-Nov-11 7:28
mentorNot Active23-Nov-11 7:28 
GeneralRe: Try/Catch Opinions Pin
PIEBALDconsult23-Nov-11 7:37
mvePIEBALDconsult23-Nov-11 7:37 
GeneralRe: Try/Catch Opinions Pin
Not Active23-Nov-11 7:47
mentorNot Active23-Nov-11 7:47 
AnswerRe: Try/Catch Opinions Pin
Eddy Vluggen23-Nov-11 7:45
professionalEddy Vluggen23-Nov-11 7:45 
GeneralRe: Try/Catch Opinions Pin
SledgeHammer0123-Nov-11 7:58
SledgeHammer0123-Nov-11 7:58 
GeneralRe: Try/Catch Opinions Pin
Pete O'Hanlon23-Nov-11 8:37
mvePete O'Hanlon23-Nov-11 8:37 
Indeed, where it's appropriate, a simple check can often save time. Ultimately, as you progress, you end up building a handy set of utility methods that you can use, for instance here's a simplified version of a file create that you could use:
C#
public static FileStream TryCreateFile(string fileToCreate)
{
  string directoryName = Path.GetDirectoryName(fileToCreate);
  if (!Directory.Exists(directoryName))
    Directory.CreateDirectory(directoryName);
  return File.Create(fileToCreate);
}

Forgive your enemies - it messes with their heads

"Mind bleach! Send me mind bleach!" - Nagy Vilmos


My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility



modified 23-Nov-11 15:33pm.

GeneralRe: Try/Catch Opinions Pin
PIEBALDconsult23-Nov-11 9:09
mvePIEBALDconsult23-Nov-11 9:09 

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.