Click here to Skip to main content
15,117,549 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# EPPlus resize pictures to fit in the cell Pin
Mou_kol4-Sep-21 3:10
MemberMou_kol4-Sep-21 3:10 
AnswerRe: C# EPPlus resize pictures to fit in the cell Pin
Richard Andrew x644-Sep-21 3:17
professionalRichard Andrew x644-Sep-21 3:17 
AnswerRe: C# EPPlus resize pictures to fit in the cell Pin
BillWoodruff4-Sep-21 3:07
mveBillWoodruff4-Sep-21 3:07 
GeneralRe: C# EPPlus resize pictures to fit in the cell Pin
Mou_kol4-Sep-21 3:11
MemberMou_kol4-Sep-21 3:11 
GeneralRe: C# EPPlus resize pictures to fit in the cell Pin
BillWoodruff4-Sep-21 3:13
mveBillWoodruff4-Sep-21 3:13 
GeneralRe: C# EPPlus resize pictures to fit in the cell Pin
Mou_kol4-Sep-21 3:29
MemberMou_kol4-Sep-21 3:29 
QuestionHaving an issue accessing a bitmap region from two different threads. Pin
Herboren2-Sep-21 18:43
MemberHerboren2-Sep-21 18:43 
AnswerRe: Having an issue accessing a bitmap region from two different threads. Pin
OriginalGriff2-Sep-21 21:12
mveOriginalGriff2-Sep-21 21:12 
It's probably pretty simple: only code that is running on the main (UI) thread can access any control in any way: since you moved it to a BackgroundWorker it isn't running on that thread any more, so when you try to access the Image or similar it's failing with an exception. Start by adding a try...catch block with Debug.WriteLine statements to check that and consider either Invoking the relevant controls or moving the Control related code back to the UI thread via the Progress reporting mechanism of the BackgroundWorker.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!

GeneralRe: Having an issue accessing a bitmap region from two different threads. Pin
Herboren4-Sep-21 6:11
MemberHerboren4-Sep-21 6:11 
QuestionWindows Service Pin
DoxMan30-Aug-21 7:37
MemberDoxMan30-Aug-21 7:37 
AnswerRe: Windows Service Pin
Dave Kreskowiak30-Aug-21 8:41
mveDave Kreskowiak30-Aug-21 8:41 
AnswerRe: Windows Service Pin
mverbeke31-Aug-21 4:40
Membermverbeke31-Aug-21 4:40 
Questionusing Rect, Vertex, Point in windowsbase.dll: better performance compared to the usual ? Pin
BillWoodruff25-Aug-21 16:34
mveBillWoodruff25-Aug-21 16:34 
QuestionC# and Excel don't work in a computer without Visual Studio Pin
Ismael Oliveira 202124-Aug-21 13:57
MemberIsmael Oliveira 202124-Aug-21 13:57 
AnswerRe: C# and Excel don't work in a computer without Visual Studio Pin
RedDk24-Aug-21 14:56
MemberRedDk24-Aug-21 14:56 
AnswerRe: C# and Excel don't work in a computer without Visual Studio Pin
Richard MacCutchan24-Aug-21 22:43
mveRichard MacCutchan24-Aug-21 22:43 
GeneralRe: C# and Excel don't work in a computer without Visual Studio Pin
Ismael Oliveira 202125-Aug-21 13:20
MemberIsmael Oliveira 202125-Aug-21 13:20 
GeneralRe: C# and Excel don't work in a computer without Visual Studio Pin
Richard MacCutchan25-Aug-21 22:58
mveRichard MacCutchan25-Aug-21 22:58 
GeneralRe: C# and Excel don't work in a computer without Visual Studio Pin
Ismael Oliveira 202126-Aug-21 5:03
MemberIsmael Oliveira 202126-Aug-21 5:03 
GeneralRe: C# and Excel don't work in a computer without Visual Studio Pin
Ismael Oliveira 202126-Aug-21 5:51
MemberIsmael Oliveira 202126-Aug-21 5:51 
GeneralRe: C# and Excel don't work in a computer without Visual Studio Pin
Richard MacCutchan26-Aug-21 5:55
mveRichard MacCutchan26-Aug-21 5:55 
GeneralRe: C# and Excel don't work in a computer without Visual Studio Pin
Ismael Oliveira 202126-Aug-21 11:41
MemberIsmael Oliveira 202126-Aug-21 11:41 
GeneralRe: C# and Excel don't work in a computer without Visual Studio Pin
Dave Kreskowiak26-Aug-21 6:08
mveDave Kreskowiak26-Aug-21 6:08 
GeneralRe: C# and Excel don't work in a computer without Visual Studio Pin
Ismael Oliveira 202126-Aug-21 20:46
MemberIsmael Oliveira 202126-Aug-21 20:46 
AnswerRe: C# and Excel don't work in a computer without Visual Studio Pin
Dave Kreskowiak25-Aug-21 13:22
mveDave Kreskowiak25-Aug-21 13:22 

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.