Click here to Skip to main content
15,891,136 members
Home / Discussions / C#
   

C#

 
GeneralRe: Minimize to tray bar Pin
Ronni Marker5-Nov-09 22:26
Ronni Marker5-Nov-09 22:26 
GeneralRe: Minimize to tray bar Pin
Ronni Marker5-Nov-09 22:37
Ronni Marker5-Nov-09 22:37 
QuestionSystem.Security.RightsManagement Pin
Joe Rozario5-Nov-09 21:52
Joe Rozario5-Nov-09 21:52 
QuestionTextbox-formatting value using databinding Pin
jogisarge5-Nov-09 21:04
jogisarge5-Nov-09 21:04 
QuestionHow I Show MessegeBox in ClassFile in C#.net Pin
Vikash Yadav5-Nov-09 20:23
Vikash Yadav5-Nov-09 20:23 
AnswerRe: How I Show MessegeBox in ClassFile in C#.net Pin
SUNISU5-Nov-09 20:28
SUNISU5-Nov-09 20:28 
GeneralRe: How I Show MessegeBox in ClassFile in C#.net Pin
Christian Graus5-Nov-09 20:30
protectorChristian Graus5-Nov-09 20:30 
GeneralRe: How I Show MessegeBox in ClassFile in C#.net Pin
Ron Beyer6-Nov-09 10:30
professionalRon Beyer6-Nov-09 10:30 
Christian Graus wrote:
1 - Application.Current.MainWindow works anywhere


Not in applications without UI's...

The simple answer is that DLL's should never try to make messageboxes unless they are part of the UI. Classes that create errors like that should bubble the error up to a UI or logging component using mechanisms like "throw". That way the application can decide how to alert the user, whether through UI pop-ups, log files, etc.

I've also found it very useful to create an application settings file and store error text information in there, rather than hard code error strings in the application. This allows me to ensure that the grammar, punctuation, spelling, and format of errors are all the same throughout the application. It also makes it very easy to edit particular errors if your test team says that the text is incorrect or vague, you just look in the setting file instead of combing through thousands of lines of code to find every instance.
AnswerRe: How I Show MessegeBox in ClassFile in C#.net Pin
Christian Graus5-Nov-09 20:30
protectorChristian Graus5-Nov-09 20:30 
QuestionHttpWebrequest's Proxy property Pin
himuskanhere5-Nov-09 19:20
himuskanhere5-Nov-09 19:20 
QuestionHow to connect a MYSQL datebase which is in a Server in LAN Pin
gopal_bnvs5-Nov-09 18:30
gopal_bnvs5-Nov-09 18:30 
AnswerRe: How to connect a MYSQL datebase which is in a Server in LAN Pin
Christian Graus5-Nov-09 18:55
protectorChristian Graus5-Nov-09 18:55 
GeneralRe: How to connect a MYSQL datebase which is in a Server in LAN Pin
gopal_bnvs5-Nov-09 19:03
gopal_bnvs5-Nov-09 19:03 
GeneralRe: How to connect a MYSQL datebase which is in a Server in LAN Pin
Christian Graus5-Nov-09 20:14
protectorChristian Graus5-Nov-09 20:14 
AnswerRe: How to connect a MYSQL datebase which is in a Server in LAN Pin
dan!sh 5-Nov-09 18:58
professional dan!sh 5-Nov-09 18:58 
GeneralRe: How to connect a MYSQL datebase which is in a Server in LAN Pin
gopal_bnvs5-Nov-09 19:02
gopal_bnvs5-Nov-09 19:02 
GeneralRe: How to connect a MYSQL datebase which is in a Server in LAN Pin
Christian Graus5-Nov-09 20:15
protectorChristian Graus5-Nov-09 20:15 
GeneralRe: How to connect a MYSQL datebase which is in a Server in LAN Pin
dan!sh 5-Nov-09 21:03
professional dan!sh 5-Nov-09 21:03 
Questionmarquee progress bar c# Pin
ghe143lhei5-Nov-09 16:28
ghe143lhei5-Nov-09 16:28 
QuestionHow to place image in the merged cell center Pin
mctramp1685-Nov-09 16:07
mctramp1685-Nov-09 16:07 
AnswerRe: How to place image in the merged cell center Pin
Mycroft Holmes5-Nov-09 16:19
professionalMycroft Holmes5-Nov-09 16:19 
AnswerRe: How to place image in the merged cell center Pin
Shameel5-Nov-09 21:38
professionalShameel5-Nov-09 21:38 
QuestionHow to lock a text file for read and write? Pin
CBenac5-Nov-09 14:23
CBenac5-Nov-09 14:23 
AnswerRe: How to lock a text file for read and write? Pin
Luc Pattyn5-Nov-09 14:32
sitebuilderLuc Pattyn5-Nov-09 14:32 
GeneralRe: How to lock a text file for read and write? Pin
CBenac6-Nov-09 6:42
CBenac6-Nov-09 6:42 

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.