Click here to Skip to main content
15,897,718 members
Home / Discussions / C#
   

C#

 
AnswerRe: Insert a class instance into a row in data table Pin
Henry Minute21-Apr-09 1:16
Henry Minute21-Apr-09 1:16 
AnswerRe: Insert a class instance into a row in data table Pin
musefan21-Apr-09 1:16
musefan21-Apr-09 1:16 
AnswerRe: Insert a class instance into a row in data table Pin
S. Senthil Kumar21-Apr-09 1:59
S. Senthil Kumar21-Apr-09 1:59 
QuestionCrop a circle image from a square picture Pin
Babita Shivade21-Apr-09 0:43
Babita Shivade21-Apr-09 0:43 
AnswerRe: Crop a circle image from a square picture Pin
Luc Pattyn21-Apr-09 1:31
sitebuilderLuc Pattyn21-Apr-09 1:31 
GeneralRe: Crop a circle image from a square picture Pin
Babita Shivade21-Apr-09 2:06
Babita Shivade21-Apr-09 2:06 
GeneralRe: Crop a circle image from a square picture Pin
Skymir21-Apr-09 2:49
Skymir21-Apr-09 2:49 
QuestionC# -Savefile Dialog to save an image file Pin
vijaywithu21-Apr-09 0:30
vijaywithu21-Apr-09 0:30 
hi friends I am new to .NET,
I have the following code to save an image file in specific location.
It does compile and it is showing that null reference eexception is unhandled
it is asking to create an object instance in this line (System.Drawing.Imaging.ImageFormat)
how can it be done any help please



SaveFileDialog save = new SaveFileDialog();
save.Filter = "JPeg Image|*.jpg|Bitmap Image|*.bmp|Gif Image|*.gif";
save.Title = "Save the File";
save.ShowDialog();
string fName = save.FileName;


if (save.FileName != "")
{
System.IO.Stream fileStream = (System.IO.FileStream)save.OpenFile();

switch (save.FilterIndex)
{
case 1:
this.button7.Image.Save(fileStream, System.Drawing.Imaging.ImageFormat.Jpeg);
break;
case 2:
this.button7.Image.Save(fileStream, System.Drawing.Imaging.ImageFormat.Gif);

break;
case 3:
this.button7.Image.Save(fileStream, System.Drawing.Imaging.ImageFormat.Bmp);
break;
}
fileStream.Close();
}
}
AnswerRe: C# -Savefile Dialog to save an image file Pin
OriginalGriff21-Apr-09 0:53
mveOriginalGriff21-Apr-09 0:53 
AnswerRe: C# -Savefile Dialog to save an image file Pin
Roman Lerman21-Apr-09 1:00
Roman Lerman21-Apr-09 1:00 
QuestionHow to fix the hight of footer control in Report Viewer(RDLC) asp.net Pin
Member 226432921-Apr-09 0:13
Member 226432921-Apr-09 0:13 
AnswerRe: How to fix the hight of footer control in Report Viewer(RDLC) asp.net Pin
Mycroft Holmes21-Apr-09 0:37
professionalMycroft Holmes21-Apr-09 0:37 
QuestionProblem loading assembly from byte[] Pin
Helfdane21-Apr-09 0:03
Helfdane21-Apr-09 0:03 
AnswerRe: Problem loading assembly from byte[] Pin
Rob Philpott21-Apr-09 3:41
Rob Philpott21-Apr-09 3:41 
GeneralRe: Problem loading assembly from byte[] Pin
Helfdane21-Apr-09 3:53
Helfdane21-Apr-09 3:53 
Questionalternative to session use Pin
mudag21-Apr-09 0:00
mudag21-Apr-09 0:00 
AnswerRe: alternative to session use Pin
Le centriste21-Apr-09 1:15
Le centriste21-Apr-09 1:15 
GeneralRe: alternative to session use Pin
Ian McCaul21-Apr-09 4:48
Ian McCaul21-Apr-09 4:48 
GeneralRe: alternative to session use Pin
Le centriste21-Apr-09 5:44
Le centriste21-Apr-09 5:44 
Questionplaying multiple video files using axWindowMediaplayer tool !!! Pin
mist_psycho20-Apr-09 23:19
mist_psycho20-Apr-09 23:19 
AnswerRe: playing multiple video files using axWindowMediaplayer tool !!! Pin
Roman Lerman20-Apr-09 23:57
Roman Lerman20-Apr-09 23:57 
Questioncanvas.Focus does not unfocus textbox Pin
Pauwels Bart20-Apr-09 21:51
Pauwels Bart20-Apr-09 21:51 
AnswerRe: canvas.Focus does not unfocus textbox Pin
Roman Lerman20-Apr-09 22:35
Roman Lerman20-Apr-09 22:35 
GeneralRe: canvas.Focus does not unfocus textbox Pin
Pauwels Bart20-Apr-09 22:51
Pauwels Bart20-Apr-09 22:51 
Questionwhat does this error mean Pin
benson.misi20-Apr-09 21:47
benson.misi20-Apr-09 21:47 

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.