Click here to Skip to main content
15,923,557 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to package and deploy Ms SQL express Pin
Simon P Stevens17-Jun-08 23:11
Simon P Stevens17-Jun-08 23:11 
Questionunhandeled exception occure when form is open , running from exe in c#. Pin
nomi17-Jun-08 21:52
nomi17-Jun-08 21:52 
AnswerRe: unhandeled exception occure when form is open , running from exe in c#. Pin
dan!sh 17-Jun-08 22:06
professional dan!sh 17-Jun-08 22:06 
QuestionRe: unhandeled exception occure when form is open , running from exe in c#. Pin
nomi17-Jun-08 22:27
nomi17-Jun-08 22:27 
AnswerRe: unhandeled exception occure when form is open , running from exe in c#. Pin
dan!sh 17-Jun-08 22:37
professional dan!sh 17-Jun-08 22:37 
GeneralRe: unhandeled exception occure when form is open , running from exe in c#. Pin
nomi17-Jun-08 22:53
nomi17-Jun-08 22:53 
QuestionRegarding ActiveX Pin
Member 477486817-Jun-08 21:30
Member 477486817-Jun-08 21:30 
QuestionDisplay image on Bitmap Pin
asma_panjabi17-Jun-08 20:28
asma_panjabi17-Jun-08 20:28 
i am trying to pick a image file from open dialog box and send to other user in C#.net
private System.Windows.Forms.OpenFileDialog openFileDialog1 = new OpenFileDialog();
openFileDialog1.RestoreDirectory = true;
openFileDialog1.FileName = "";
openFileDialog1.Filter = "Graphic Interchange Format (*.gif)|*.gif|" +
"JPEG File Interchange Format (*.jpg;*.jpeg)|*.jpg;*.jpeg";
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
string filename = openFileDialog1.FileName.Substring(openFileDialog1.FileName.LastIndexOf("\\") + 1);
File.Copy(openFileDialog1.FileName, Application.StartupPath + "\\Temp\\" + filename, true);
string fname = Application.StartupPath + "\\Temp\\" + filename;
if(File.Exists(fname))
WhiteBoard1.iSelected = fname;

FileInfo info = new FileInfo(WhiteBoard1.iSelected);
long filesize = info.Length;
if(filesize>0)
{

WhiteBoard1.strConfid = strConfid;
WhiteBoard1.LoadImage();
}
}

In whiteboard class

public void LoadImage()
{
try
{
Graphics grphs = CreateGraphics();

if(File.Exists(iSelected))
{
Image img1 = Image.FromFile(iSelected);
pict.Image=img1;
}
}
catch(OutOfMemoryException)
{

MessageBox.Show(msg.ToString());

}
}


I get exception as

OutofMemory Exception


AnswerRe: Display image on Bitmap Pin
N a v a n e e t h17-Jun-08 21:28
N a v a n e e t h17-Jun-08 21:28 
GeneralRe: Display image on Bitmap Pin
asma_panjabi17-Jun-08 21:32
asma_panjabi17-Jun-08 21:32 
AnswerRe: Display image on Bitmap Pin
asma_panjabi17-Jun-08 23:54
asma_panjabi17-Jun-08 23:54 
AnswerRe: Display image on Bitmap Pin
Anthony Mushrow18-Jun-08 0:13
professionalAnthony Mushrow18-Jun-08 0:13 
GeneralRe: Display image on Bitmap Pin
asma_panjabi18-Jun-08 0:33
asma_panjabi18-Jun-08 0:33 
AnswerRe: Display image on Bitmap Pin
asma_panjabi18-Jun-08 3:32
asma_panjabi18-Jun-08 3:32 
QuestionIs it possible to change order of nodes in treeview? Pin
chakran17-Jun-08 19:34
chakran17-Jun-08 19:34 
AnswerRe: Is it possible to change order of nodes in treeview? Pin
Joe Woodbury17-Jun-08 19:47
professionalJoe Woodbury17-Jun-08 19:47 
AnswerRe: Is it possible to change order of nodes in treeview? Pin
Corinna John17-Jun-08 21:58
Corinna John17-Jun-08 21:58 
QuestionGood Day!! Pin
maRk_maGic17-Jun-08 19:22
maRk_maGic17-Jun-08 19:22 
AnswerRe: Good Day!! Pin
Rajesh R Subramanian17-Jun-08 19:31
professionalRajesh R Subramanian17-Jun-08 19:31 
AnswerRe: Good Day!! Pin
MarkB77717-Jun-08 20:32
MarkB77717-Jun-08 20:32 
AnswerRe: Good Day!! Pin
Ashfield17-Jun-08 21:09
Ashfield17-Jun-08 21:09 
AnswerGood Day, Wrong Forum, Bad Question! Pin
CPallini17-Jun-08 21:18
mveCPallini17-Jun-08 21:18 
AnswerRe: Good Day!! Pin
Paul Conrad20-Jun-08 11:08
professionalPaul Conrad20-Jun-08 11:08 
QuestionPermisions in windows vista Pin
arslanjatt17-Jun-08 18:53
arslanjatt17-Jun-08 18:53 
AnswerRe: Permisions in windows vista Pin
Travis D. Mathison17-Jun-08 21:46
Travis D. Mathison17-Jun-08 21:46 

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.