Click here to Skip to main content
15,909,039 members
Home / Discussions / C#
   

C#

 
GeneralRe: EventLog size Pin
Bernhard Hiller17-Jun-10 5:18
Bernhard Hiller17-Jun-10 5:18 
Questionhelp author question Pin
Jassim Rahma16-Jun-10 22:54
Jassim Rahma16-Jun-10 22:54 
Questionchange MessageBox button caption Pin
Jassim Rahma16-Jun-10 22:41
Jassim Rahma16-Jun-10 22:41 
AnswerRe: change MessageBox button caption Pin
Nuri Ismail16-Jun-10 22:57
Nuri Ismail16-Jun-10 22:57 
QuestionHow can i hide or rename the process name in task manager? c# is better Pin
mobasher16-Jun-10 22:28
mobasher16-Jun-10 22:28 
AnswerRe: How can i hide or rename the process name in task manager? c# is better Pin
Eddy Vluggen17-Jun-10 0:03
professionalEddy Vluggen17-Jun-10 0:03 
AnswerRe: How can i hide or rename the process name in task manager? c# is better Pin
Dave Kreskowiak17-Jun-10 1:46
mveDave Kreskowiak17-Jun-10 1:46 
Questionhashtable limitation? Pin
Jassim Rahma16-Jun-10 22:05
Jassim Rahma16-Jun-10 22:05 
I have many parameters in my system_parameters table in SQL and I am populating into a hashtable but it seems it's not reading all (and no error raised!).. it's reading 19 out of 68.. this is my code to read from the sql:

while (sql_reader.Read())
{
    if (_system_parameters_hash.ContainsKey(sql_reader["system_param_name"])) return;

    if (sql_reader["system_param_value"] == DBNull.Value)
    {
        _system_parameters_hash.Add(sql_reader["system_param_name"].ToString(), null);
    }
    else
    {
        if ((string)sql_reader["system_param_type"] == "bit") _system_parameters_hash.Add((string)sql_reader["system_param_name"], Convert.ToBoolean(sql_reader["system_param_value"]));
        else if ((string)sql_reader["system_param_type"] == "string") _system_parameters_hash.Add((string)sql_reader["system_param_name"], (string)sql_reader["system_param_value"]);
        else if ((string)sql_reader["system_param_type"] == "int") _system_parameters_hash.Add((string)sql_reader["system_param_name"], Convert.ToInt32(sql_reader["system_param_value"]));
        else if ((string)sql_reader["system_param_type"] == "int64") _system_parameters_hash.Add((string)sql_reader["system_param_name"], Convert.ToInt64(sql_reader["system_param_value"]));
        else if ((string)sql_reader["system_param_type"] == "short") _system_parameters_hash.Add((string)sql_reader["system_param_name"], Convert.ToInt16(sql_reader["system_param_value"]));
    }
}


and this is a sample rows (parameter name, parameter value then parameter type)

APPOINTMENT_DEFAULT_CLINIC    2    int
APPOINTMENT_DEFAULT_DOCTOR    3    int
BACKUP_DESTINATION_FOLDER    C:\Temp\cure.bak    string
BACKUP_SCHEDULE_DURATION    DAILY    string
BACKUP_SCHEDULE_ENABLED    True    bit



what can I do?
AnswerMessage Closed Pin
16-Jun-10 22:33
stancrm16-Jun-10 22:33 
GeneralRe: hashtable limitation? Pin
Jassim Rahma16-Jun-10 22:36
Jassim Rahma16-Jun-10 22:36 
GeneralMessage Closed Pin
16-Jun-10 22:39
stancrm16-Jun-10 22:39 
GeneralRe: hashtable limitation? Pin
Jassim Rahma16-Jun-10 22:43
Jassim Rahma16-Jun-10 22:43 
AnswerRe: hashtable limitation? Pin
Łukasz Nowakowski16-Jun-10 22:52
Łukasz Nowakowski16-Jun-10 22:52 
AnswerRe: hashtable limitation? Pin
Luc Pattyn17-Jun-10 1:59
sitebuilderLuc Pattyn17-Jun-10 1:59 
GeneralRe: hashtable limitation? Pin
Jassim Rahma17-Jun-10 4:06
Jassim Rahma17-Jun-10 4:06 
GeneralRe: hashtable limitation? Pin
Luc Pattyn17-Jun-10 4:14
sitebuilderLuc Pattyn17-Jun-10 4:14 
GeneralRe: hashtable limitation? Pin
Jassim Rahma17-Jun-10 4:17
Jassim Rahma17-Jun-10 4:17 
GeneralRe: hashtable limitation? Pin
Luc Pattyn17-Jun-10 4:21
sitebuilderLuc Pattyn17-Jun-10 4:21 
QuestionPng Image Saving the original size doubles Pin
VCsamir16-Jun-10 21:39
VCsamir16-Jun-10 21:39 
AnswerRe: Png Image Saving the original size doubles Pin
Luc Pattyn17-Jun-10 2:04
sitebuilderLuc Pattyn17-Jun-10 2:04 
Questionsearch in dataview without filtering Pin
sana_2616-Jun-10 21:13
sana_2616-Jun-10 21:13 
AnswerRe: search in dataview without filtering Pin
Bigdeak16-Jun-10 23:56
Bigdeak16-Jun-10 23:56 
Questionhow to get the methods registered with an eventhandler Pin
prasadbuddhika16-Jun-10 20:06
prasadbuddhika16-Jun-10 20:06 
AnswerMessage Closed Pin
16-Jun-10 21:31
stancrm16-Jun-10 21:31 
GeneralRe: how to get the methods registered with an eventhandler Pin
prasadbuddhika17-Jun-10 19:21
prasadbuddhika17-Jun-10 19:21 

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.