Click here to Skip to main content
15,887,962 members
Home / Discussions / C#
   

C#

 
AnswerRe: WPF DATAGRID IMAGE COLUMN IMAGE CHANGING Pin
Pete O'Hanlon9-Jul-12 22:11
mvePete O'Hanlon9-Jul-12 22:11 
QuestionLink between dataset and datagrid Pin
khaledTawa9-Jul-12 20:07
khaledTawa9-Jul-12 20:07 
AnswerRe: Link between dataset and datagrid Pin
OriginalGriff9-Jul-12 21:04
mveOriginalGriff9-Jul-12 21:04 
AnswerRe: Link between dataset and datagrid Pin
Pete O'Hanlon9-Jul-12 22:12
mvePete O'Hanlon9-Jul-12 22:12 
QuestionAccessing HashTable at ButtonClick Level Pin
mrfalk9-Jul-12 13:28
mrfalk9-Jul-12 13:28 
SuggestionRe: Accessing HashTable at ButtonClick Level Pin
Trak4Net9-Jul-12 17:19
Trak4Net9-Jul-12 17:19 
GeneralRe: Accessing HashTable at ButtonClick Level Pin
mrfalk10-Jul-12 6:02
mrfalk10-Jul-12 6:02 
GeneralRe: Accessing HashTable at ButtonClick Level Pin
Trak4Net10-Jul-12 6:54
Trak4Net10-Jul-12 6:54 
Glad I could be helpful. One thing I'd like to warn of (I have seen this be a huge issue with some developers) is in the initialization of a program global variable. The example I gave might not be the best way to initialize it because it will get initialized when the program starts, if their was something coded wrong or a dependency within that class missing your program would crash without any information as to why (unless your in debugger). I would tend to initialize the way shown below. This really isn't necessary for most simpler variables, but lets say you depended on a file in the constructor of your custom hashtable class, and that dependent file was absent for some reason, and you hadn't wrapped that code in a try catch. Then your program would crash immediately when an exception is thrown trying to access a file that does not exist. With the example below you will catch the exception and can handle it gracefully.

Anyway, just thought I'd give my two cents on that, not sure if it would be helpful for you but maybe others???...Java | [Coffee]

C#
static program
{
   internal MyCustomHashtable mch;
   

   static void main()
   {
     try
     {
        //initialize in a catchable area to avoid unhandled exceptions
        mch = new MyCustomHashtable();
     }
     catch (Exception ex)
     {
       //log or alert of failure to initialize hashtable or other program global variables
     }
   }

}

AnswerRe: Accessing HashTable at ButtonClick Level Pin
Pete O'Hanlon10-Jul-12 7:09
mvePete O'Hanlon10-Jul-12 7:09 
GeneralRe: Accessing HashTable at ButtonClick Level Pin
mrfalk10-Jul-12 11:14
mrfalk10-Jul-12 11:14 
SuggestionRe: Accessing HashTable at ButtonClick Level Pin
Matt T Heffron10-Jul-12 14:22
professionalMatt T Heffron10-Jul-12 14:22 
GeneralRe: Accessing HashTable at ButtonClick Level Pin
mrfalk11-Jul-12 10:46
mrfalk11-Jul-12 10:46 
QuestionQuestion... loading unmanaged dll in x64 system Pin
Blubbo9-Jul-12 9:25
Blubbo9-Jul-12 9:25 
AnswerRe: Question... loading unmanaged dll in x64 system Pin
Ian Shlasko9-Jul-12 9:51
Ian Shlasko9-Jul-12 9:51 
GeneralRe: Question... loading unmanaged dll in x64 system Pin
Luc Pattyn9-Jul-12 10:38
sitebuilderLuc Pattyn9-Jul-12 10:38 
Generalodd Custom control size issue Pin
Blubbo9-Jul-12 6:37
Blubbo9-Jul-12 6:37 
GeneralRe: odd Custom control size issue Pin
Pete O'Hanlon9-Jul-12 7:20
mvePete O'Hanlon9-Jul-12 7:20 
GeneralRe: odd Custom control size issue Pin
Blubbo9-Jul-12 8:09
Blubbo9-Jul-12 8:09 
GeneralRe: odd Custom control size issue Pin
Pete O'Hanlon9-Jul-12 8:51
mvePete O'Hanlon9-Jul-12 8:51 
AnswerRe: odd Custom control size issue Pin
Luc Pattyn9-Jul-12 8:58
sitebuilderLuc Pattyn9-Jul-12 8:58 
QuestionAnimation on ContentPresenter ContenSource Changed Pin
ezazazel9-Jul-12 4:16
ezazazel9-Jul-12 4:16 
QuestionHow to return a DataSet reuslt from LINQ class Pin
Ahmed_Worke9-Jul-12 3:57
Ahmed_Worke9-Jul-12 3:57 
QuestionExcel line-column combination chart using C#. Pin
Member 91698878-Jul-12 21:10
Member 91698878-Jul-12 21:10 
AnswerRe: Excel line-column combination chart using C#. Pin
dan!sh 8-Jul-12 22:07
professional dan!sh 8-Jul-12 22:07 
GeneralRe: Excel line-column combination chart using C#. Pin
Member 91698878-Jul-12 22:58
Member 91698878-Jul-12 22:58 

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.