Click here to Skip to main content
15,893,161 members
Home / Discussions / C#
   

C#

 
GeneralRe: create vcf contact file Pin
Jassim Rahma5-Aug-14 20:29
Jassim Rahma5-Aug-14 20:29 
GeneralRe: create vcf contact file Pin
Ravi Bhavnani6-Aug-14 2:17
professionalRavi Bhavnani6-Aug-14 2:17 
GeneralRe: create vcf contact file Pin
Jassim Rahma6-Aug-14 2:23
Jassim Rahma6-Aug-14 2:23 
GeneralRe: create vcf contact file Pin
Ravi Bhavnani6-Aug-14 2:27
professionalRavi Bhavnani6-Aug-14 2:27 
GeneralRe: create vcf contact file Pin
Dave Kreskowiak6-Aug-14 2:29
mveDave Kreskowiak6-Aug-14 2:29 
GeneralRe: create vcf contact file Pin
Jassim Rahma6-Aug-14 2:36
Jassim Rahma6-Aug-14 2:36 
GeneralRe: create vcf contact file Pin
Dave Kreskowiak6-Aug-14 6:38
mveDave Kreskowiak6-Aug-14 6:38 
QuestionRetrieve information from UDL file Pin
Ashfaque Hussain4-Aug-14 20:26
Ashfaque Hussain4-Aug-14 20:26 
Suggestion[Repost] Retrieve information from UDL file Pin
Richard Deeming5-Aug-14 0:59
mveRichard Deeming5-Aug-14 0:59 
QuestionC# how to get count of same and distinct cell values from datagrid view in indexed labels ? Pin
Member 109914914-Aug-14 15:20
Member 109914914-Aug-14 15:20 
AnswerRe: C# how to get count of same and distinct cell values from datagrid view in indexed labels ? Pin
Bernhard Hiller4-Aug-14 20:55
Bernhard Hiller4-Aug-14 20:55 
QuestionNeed help to print a receipt in a WPF project Pin
vanjier4-Aug-14 7:43
vanjier4-Aug-14 7:43 
AnswerRe: Need help to print a receipt in a WPF project Pin
Dave Kreskowiak4-Aug-14 8:03
mveDave Kreskowiak4-Aug-14 8:03 
GeneralRe: Need help to print a receipt in a WPF project Pin
Member 108746935-Aug-14 3:57
Member 108746935-Aug-14 3:57 
GeneralRe: Need help to print a receipt in a WPF project Pin
Dave Kreskowiak5-Aug-14 6:42
mveDave Kreskowiak5-Aug-14 6:42 
GeneralRe: Need help to print a receipt in a WPF project Pin
vanjier5-Aug-14 7:05
vanjier5-Aug-14 7:05 
AnswerRe: Need help to print a receipt in a WPF project Pin
Dilan Shaminda4-Aug-14 18:13
professionalDilan Shaminda4-Aug-14 18:13 
GeneralRe: Need help to print a receipt in a WPF project Pin
vanjier5-Aug-14 7:06
vanjier5-Aug-14 7:06 
AnswerRe: Need help to print a receipt in a WPF project Pin
Jaimin H. Soni4-Aug-14 22:56
Jaimin H. Soni4-Aug-14 22:56 
QuestionHow to convert Date of v.b to DateTime of c# Pin
Dj@y4-Aug-14 3:29
professionalDj@y4-Aug-14 3:29 
AnswerRe: How to convert Date of v.b to DateTime of c# Pin
OriginalGriff4-Aug-14 4:45
mveOriginalGriff4-Aug-14 4:45 
AnswerRe: How to convert Date of v.b to DateTime of c# Pin
jschell4-Aug-14 11:22
jschell4-Aug-14 11:22 
AnswerRe: How to convert Date of v.b to DateTime of c# Pin
V.5-Aug-14 0:05
professionalV.5-Aug-14 0:05 
QuestionDelete file which was in Picture Box before loading another Picture Pin
Alston Antony2-Aug-14 18:02
Alston Antony2-Aug-14 18:02 
I have picturebox and i trying write code when the users loads another image on picturebox the old file which was in picture to be deleted. I trying to find solution for for 24 hrs still i didn't able find fully working solution.

I came up with 1 partial solution and following is partial code

C#
profilePictureBox.Dispose(); // When I use This After The Function Executed
                                 PictureBox Disappears But File Delete Successfully.
 try
                {
                    if (File.Exists(oldfilename))
                    {
                        File.Delete(oldfilename);
                        profilePicPictureBox.Load(picPath);
                    }
                    else
                    {
                        MessageBox.Show("File Not Found");
                    }
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.ToString());
                } 

"old filename" will contain previous filename to delete and "picPath" will contains new path of image user chosen.

and also when tried method like

profilePictureBox.Image = null;
i am getting below error

C#
System.IO.IOExecption:The Process cannot access the file 
'filepath' because it is being      used by another process.

AnswerRe: Delete file which was in Picture Box before loading another Picture Pin
Mycroft Holmes2-Aug-14 22:45
professionalMycroft Holmes2-Aug-14 22:45 

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.