Click here to Skip to main content
15,347,625 members
Home / Discussions / C#
   

C#

 
AnswerRe: How do I add text via c# to an OPEN Excel Workbook? Pin
Richard Deeming18-May-22 23:46
mveRichard Deeming18-May-22 23:46 
GeneralRe: How do I add text via c# to an OPEN Excel Workbook? Pin
Eddy Vluggen20-May-22 8:13
professionalEddy Vluggen20-May-22 8:13 
AnswerRe: How do I add text via c# to an OPEN Excel Workbook? Pin
RedDk20-May-22 9:54
MemberRedDk20-May-22 9:54 
JokeRe: How do I add text via c# to an OPEN Excel Workbook? Pin
Richard Andrew x6421-May-22 4:05
professionalRichard Andrew x6421-May-22 4:05 
GeneralRe: How do I add text via c# to an OPEN Excel Workbook? Pin
Richard MacCutchan21-May-22 6:07
mveRichard MacCutchan21-May-22 6:07 
GeneralRe: How do I add text via c# to an OPEN Excel Workbook? Pin
RedDk21-May-22 7:50
MemberRedDk21-May-22 7:50 
QuestionSend message to Microsoft teams group via connector Pin
sdesilets18-May-22 8:40
Membersdesilets18-May-22 8:40 
AnswerRe: Send message to Microsoft teams group via connector Pin
lmoelleb19-May-22 0:48
Memberlmoelleb19-May-22 0:48 
The first suspicious thing I see is you call an async method SendMsgAsync() without waiting for it. This means your Main method can execute the code following myprog.sendMsg() before the message is put on the network.

No problem you might think: There is no code there.... correct. And what happens to a console application when there is no more code to run. Well... it terminates the process (a bit simplified - you CAN get it to hang around, but you don't do that here, nor should you).

So my guess (without debugging which is how you REALLY find out these things) is that the program simply terminates before it can send any message.

You should make your Main async as well and await the async calls - then it will not terminate before completion (and you will also see any errors). You might also when googling find advise to call .Result or .Wait. Those are excellent advise for people who like to debug why there software occasionally hangs after they make a completely unrelated change. Sure you can use them if you know how it really works under the hood - but that is not a good topic for a beginner.
GeneralRe: Send message to Microsoft teams group via connector Pin
sdesilets19-May-22 4:44
Membersdesilets19-May-22 4:44 
QuestionAnyone have experience porting Wonderware scripting to C#.net? Pin
Bruce Armstrong 202218-May-22 6:36
MemberBruce Armstrong 202218-May-22 6:36 
AnswerRe: Anyone have experience porting Wonderware scripting to C#.net? Pin
Eddy Vluggen20-May-22 4:11
professionalEddy Vluggen20-May-22 4:11 
QuestionIs there any difference in performance when you add a huge amount of data into the database using EF Core (row by row) or using SQL Server stored procedures? Pin
Code4Ever18-May-22 6:25
MemberCode4Ever18-May-22 6:25 
AnswerRe: Is there any difference in performance when you add a huge amount of data into the database using EF Core (row by row) or using SQL Server stored procedures? Pin
Gerry Schmitz18-May-22 7:34
mveGerry Schmitz18-May-22 7:34 
AnswerRe: Is there any difference in performance when you add a huge amount of data into the database using EF Core (row by row) or using SQL Server stored procedures? Pin
Victor Nijegorodov18-May-22 9:27
MemberVictor Nijegorodov18-May-22 9:27 
QuestionHZH_Controls.Controls.UCTextBoxEx Cast Object Error Problem Pin
Eddie You17-May-22 14:15
MemberEddie You17-May-22 14:15 
AnswerRe: HZH_Controls.Controls.UCTextBoxEx Cast Object Error Problem Pin
Richard MacCutchan17-May-22 21:26
mveRichard MacCutchan17-May-22 21:26 
GeneralRe: HZH_Controls.Controls.UCTextBoxEx Cast Object Error Problem Pin
Eddie You17-May-22 21:41
MemberEddie You17-May-22 21:41 
AnswerRe: HZH_Controls.Controls.UCTextBoxEx Cast Object Error Problem Pin
Richard Deeming17-May-22 21:27
mveRichard Deeming17-May-22 21:27 
GeneralRe: HZH_Controls.Controls.UCTextBoxEx Cast Object Error Problem Pin
Eddie You17-May-22 21:46
MemberEddie You17-May-22 21:46 
QuestionUsing Token in a WCF Pin
Luis M. Rojas16-May-22 6:07
MemberLuis M. Rojas16-May-22 6:07 
QuestionSolved!!! Invalid expression term 'uint' Pin
mbah obiora14-May-22 22:41
Membermbah obiora14-May-22 22:41 
AnswerRe: Invalid expression term 'uint' Pin
OriginalGriff15-May-22 0:09
mveOriginalGriff15-May-22 0:09 
GeneralRe: Invalid expression term 'uint' Pin
mbah obiora15-May-22 1:54
Membermbah obiora15-May-22 1:54 
GeneralRe: Invalid expression term 'uint' Pin
OriginalGriff15-May-22 2:05
mveOriginalGriff15-May-22 2:05 
QuestionParse complex numbers from string Pin
Member 1563407112-May-22 8:28
MemberMember 1563407112-May-22 8:28 

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.