Click here to Skip to main content
15,892,674 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to put two columns in a combo box Pin
Karthik_Mahalingam17-Nov-17 0:59
professionalKarthik_Mahalingam17-Nov-17 0:59 
GeneralRe: How to put two columns in a combo box Pin
Member 1227854220-Feb-18 1:09
Member 1227854220-Feb-18 1:09 
GeneralRe: How to put two columns in a combo box Pin
Karthik_Mahalingam20-Feb-18 1:11
professionalKarthik_Mahalingam20-Feb-18 1:11 
QuestionActive Directory Questions Pin
Kevin Marois16-Nov-17 7:58
professionalKevin Marois16-Nov-17 7:58 
AnswerRe: Active Directory Questions Pin
Richard Deeming16-Nov-17 9:50
mveRichard Deeming16-Nov-17 9:50 
GeneralRe: Active Directory Questions Pin
Kevin Marois16-Nov-17 10:01
professionalKevin Marois16-Nov-17 10:01 
GeneralRe: Active Directory Questions Pin
Kevin Marois16-Nov-17 10:49
professionalKevin Marois16-Nov-17 10:49 
GeneralRe: Active Directory Questions Pin
Mycroft Holmes16-Nov-17 11:36
professionalMycroft Holmes16-Nov-17 11:36 
AnswerRe: Active Directory Questions Pin
BillWoodruff16-Nov-17 20:44
professionalBillWoodruff16-Nov-17 20:44 
GeneralRe: Active Directory Questions Pin
Richard MacCutchan16-Nov-17 22:54
mveRichard MacCutchan16-Nov-17 22:54 
GeneralRe: Active Directory Questions Pin
Kevin Marois17-Nov-17 4:39
professionalKevin Marois17-Nov-17 4:39 
AnswerRe: Active Directory Questions Pin
Nathan Minier17-Nov-17 1:36
professionalNathan Minier17-Nov-17 1:36 
Generalsession Pin
Ishi Kaushik16-Nov-17 7:04
Ishi Kaushik16-Nov-17 7:04 
AnswerRe: Hello , I am working on three tier architecture based project, i am stuck in writting session code. so please tell me how and where i can write the session code Pin
OriginalGriff16-Nov-17 8:03
mveOriginalGriff16-Nov-17 8:03 
QuestionData type mismatch in criteria expression." in c# Pin
sai.201216-Nov-17 5:54
sai.201216-Nov-17 5:54 
AnswerRe: Data type mismatch in criteria expression." in c# Pin
Gerry Schmitz16-Nov-17 6:35
mveGerry Schmitz16-Nov-17 6:35 
AnswerRe: Data type mismatch in criteria expression." in c# Pin
Eddy Vluggen16-Nov-17 7:07
professionalEddy Vluggen16-Nov-17 7:07 
PraiseRe: Data type mismatch in criteria expression." in c# Pin
sai.201216-Nov-17 9:56
sai.201216-Nov-17 9:56 
GeneralRe: Data type mismatch in criteria expression." in c# Pin
Eddy Vluggen16-Nov-17 10:33
professionalEddy Vluggen16-Nov-17 10:33 
QuestionLicensing a .NET DLL Pin
P.Gnanaraj16-Nov-17 2:17
P.Gnanaraj16-Nov-17 2:17 
AnswerRe: Licensing a .NET DLL Pin
Richard MacCutchan16-Nov-17 3:20
mveRichard MacCutchan16-Nov-17 3:20 
QuestionAsync method/task issue Pin
primem0ver15-Nov-17 7:21
primem0ver15-Nov-17 7:21 
AnswerRe: Async method/task issue Pin
Sascha Lefèvre15-Nov-17 8:33
professionalSascha Lefèvre15-Nov-17 8:33 
A TargetInvocationException[^] always has an InnerException which will give you a better hint at what went wrong - take a look at that in the exception explorer (or however that's called) which you can open from the exception dialog that Visual Studio shows you when it occurs.

If I had to guess I'd say it's probably an invalid cross thread operation on your controls: Controls can only be accessed by the UI thread. See How to: Make Thread-Safe Calls to Windows Forms Controls | Microsoft Docs[^]

On a different note: Usually, when developing applications with a UI, the goal is to separate UI logic from business logic in order to end up with an easily maintainable architecture. That's the point of those patterns like MVC, MVP, MVVM. Your approach looks like the exact opposite (placing the tasks into your custom control classes).
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson

GeneralRe: Async method/task issue Pin
primem0ver15-Nov-17 9:52
primem0ver15-Nov-17 9:52 
GeneralRe: Async method/task issue Pin
Sascha Lefèvre15-Nov-17 10:19
professionalSascha Lefèvre15-Nov-17 10:19 

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.