Click here to Skip to main content
14,422,889 members
   

C#

 
GeneralRe: How to scan all pages with one click as below: Pin
Member 1094325619-Nov-19 3:23
MemberMember 1094325619-Nov-19 3:23 
GeneralRe: How to scan all pages with one click as below: Pin
Pete O'Hanlon19-Nov-19 3:37
communityengineerPete O'Hanlon19-Nov-19 3:37 
GeneralRe: How to scan all pages with one click as below: Pin
Pete O'Hanlon19-Nov-19 3:38
communityengineerPete O'Hanlon19-Nov-19 3:38 
GeneralRe: How to scan all pages with one click as below: Pin
Member 1094325619-Nov-19 3:50
MemberMember 1094325619-Nov-19 3:50 
GeneralRe: How to scan all pages with one click as below: Pin
Pete O'Hanlon19-Nov-19 23:40
communityengineerPete O'Hanlon19-Nov-19 23:40 
GeneralRe: How to scan all pages with one click as below: Pin
Member 1094325620-Nov-19 1:35
MemberMember 1094325620-Nov-19 1:35 
GeneralRe: How to scan all pages with one click as below: Pin
Pete O'Hanlon20-Nov-19 1:49
communityengineerPete O'Hanlon20-Nov-19 1:49 
GeneralRe: How to scan all pages with one click as below: Pin
Member 1094325620-Nov-19 5:17
MemberMember 1094325620-Nov-19 5:17 
Dear Pete,
I have also another short question. i will appreciate it if you tell me how to fix this:

1)I have a button to load a photo into a picturebox and extract the code into a text field.(It works well)

2)There is also another button for deleting that image which i mentioned. But when i click on delete button it couldnt delete the image because it said: "Its being used by another process"
I dont know how to delete this image from directory after i saw the qrcode in textbox.
Here are my code:
Thanks

//loading the image from D drive to the picturebox and then extract the QRcode number into textbox2
private void button2_Click(object sender, EventArgs e)
{

    var Path = @"D:\1.jpg";
    pictureBox1.Image = Image.FromFile(Path);
    MessagingToolkit.QRCode.Codec.QRCodeDecoder decoder = new MessagingToolkit.QRCode.Codec.QRCodeDecoder();
    textBox2.Text = decoder.Decode(new QRCodeBitmapImage(pictureBox1.Image as Bitmap));

}

//Deleting 1.jpg
private void button3_Click(object sender, EventArgs e)
{
     if (File.Exists(@"D:\1.jpg"))
    {
        System.IO.File.Delete(@"D:\1.jpg");

    }
}

GeneralRe: How to scan all pages with one click as below: Pin
Pete O'Hanlon20-Nov-19 6:15
communityengineerPete O'Hanlon20-Nov-19 6:15 
GeneralRe: How to scan all pages with one click as below: Pin
Member 1094325619-Nov-19 4:04
MemberMember 1094325619-Nov-19 4:04 
QuestionInsert voice data down SQLServer Pin
Hoang Luc18-Nov-19 5:45
MemberHoang Luc18-Nov-19 5:45 
AnswerRe: Insert voice data down SQLServer Pin
OriginalGriff18-Nov-19 5:46
communityengineerOriginalGriff18-Nov-19 5:46 
Questionadd code text to speech voices windows 7 ? Pin
Member 245846717-Nov-19 22:14
MemberMember 245846717-Nov-19 22:14 
AnswerRe: add code text to speech voices windows 7 ? Pin
Pete O'Hanlon17-Nov-19 23:07
communityengineerPete O'Hanlon17-Nov-19 23:07 
GeneralRe: add code text to speech voices windows 7 ? Pin
Member 245846720-Nov-19 16:45
MemberMember 245846720-Nov-19 16:45 
GeneralRe: add code text to speech voices windows 7 ? Pin
Pete O'Hanlon20-Nov-19 22:47
communityengineerPete O'Hanlon20-Nov-19 22:47 
GeneralRe: add code text to speech voices windows 7 ? Pin
Member 245846724-Nov-19 16:06
MemberMember 245846724-Nov-19 16:06 
QuestionC# How to show my List of data in Pivot format Pin
Mou_kol16-Nov-19 9:17
MemberMou_kol16-Nov-19 9:17 
QuestionRe: C# How to show my List of data in Pivot format Pin
Eddy Vluggen16-Nov-19 10:30
mveEddy Vluggen16-Nov-19 10:30 
AnswerRe: C# How to show my List of data in Pivot format Pin
Richard Deeming17-Nov-19 23:57
communityengineerRichard Deeming17-Nov-19 23:57 
Questionprint statements within a method is not displaying on Rich text box in c# windows form Pin
Member 1465244915-Nov-19 19:35
MemberMember 1465244915-Nov-19 19:35 
AnswerRe: print statements within a method is not displaying on Rich text box in c# windows form Pin
OriginalGriff15-Nov-19 20:57
communityengineerOriginalGriff15-Nov-19 20:57 
GeneralRe: print statements within a method is not displaying on Rich text box in c# windows form Pin
Member 1465244915-Nov-19 23:30
MemberMember 1465244915-Nov-19 23:30 
GeneralRe: print statements within a method is not displaying on Rich text box in c# windows form Pin
OriginalGriff15-Nov-19 23:48
communityengineerOriginalGriff15-Nov-19 23:48 
QuestionGetValueOrDefault() Throws Pin
Kevin Marois15-Nov-19 7:35
professionalKevin Marois15-Nov-19 7:35 

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.