• Member Avatar for darkagn
    darkagn

    Replied To a Post in how to call function with parameter

    AleMonteiro is correct, it should be `CommandType.Text`. You need to modify your `CommandStr` variable to be valid SQL. Something like `string CommandStr = "SELECT F_Get_Desc(@PDesc)";` and then you reference the …
  • Member Avatar for darkagn
    darkagn

    Replied To a Post in NXN Magic Square - Array / Input File

    Once you have read the file into memory, you should be able to write each line out to the console. If you search for the `Console.WriteLine` function in your favourite …
  • Member Avatar for darkagn
    darkagn

    Replied To a Post in Getting the Identity value from an inserted SQL Row

    ExecuteScalar always returns a single value, so you should use it on any query that is expected to return a single record, single field result set. It's represented as object …
  • Member Avatar for darkagn
    darkagn

    Replied To a Post in Telerik

    I haven't used telerik specifically before but I wanted to mention that there is absolutely nothing wrong with using a third party to solve outstanding problems with a project. Sometimes …
  • Member Avatar for darkagn
    darkagn

    Replied To a Post in need help with java program for a course

    Looks like your professor has given you a fairly good start on what needs to happen inside that for-loop. Did you have a question that you needed help with?
  • Member Avatar for darkagn
    darkagn

    Replied To a Post in Rep for RepIvariant, RepOk

    I'm not sure what you mean by the first question, but I can answer the second. An abstract function is one that defines a method signature without its body so …
  • Member Avatar for darkagn
    darkagn

    Replied To a Post in Would a Typed Reader be useful?

    Certainly being able to parse file input into something meaningful is always useful. To make it even more generic, why not use a Stream input instead? That way you can …
  • Member Avatar for darkagn
    darkagn

    Replied To a Post in What is your preference when checking boolean values in If statements?

    In C# a bool method always returns a boolean value. In other languages such as PHP this is not necessarily the case, but since this question was in regards to …
  • Member Avatar for darkagn
    darkagn

    Gave Reputation to deceptikon in Going back to the same form and updating info (C#)

    That design sounds dicey to me. My preference would be for the main form to manage itself completely, where temporary dialog forms are opened as needed and pass back information …
  • Member Avatar for darkagn
    darkagn

    Replied To a Post in Invoking a method without referencing project

    I would suggest moving the required method to a third dll if possible and referencing that dll from both of your existing projects.
  • Member Avatar for darkagn
    darkagn

    Replied To a Post in Deck of cards

    Either set them to public or pass them in via the constructor. A third option is to have get public but set private. The syntax for this option is as …
  • Member Avatar for darkagn
    darkagn

    Replied To a Post in Threading Problem

    I could be wrong here, but I don't think the MainForm will accept events such as button clicks until it is finished loading, ie until the Load event completes. Have …
  • Member Avatar for darkagn
    darkagn

    Replied To a Post in IAccessible: Get Active url with Access violation

    Are you able to run in the IDE debugger and see which line throws the AV error?
  • Member Avatar for darkagn
    darkagn

    Replied To a Post in PHP Sessions

    Lines 62-64 in login.php don't appear to be doing anything. Can you print the values of the $something variable via var_dump after line 64 and check what is going on? …
  • Member Avatar for darkagn
    darkagn

    Replied To a Post in PHP Sessions

    I don't think you want to close the session in login.php using the call to session_close_write. Also, your session setting is commented out, you will need to set each $_SESSION …
  • Member Avatar for darkagn
    darkagn

    Replied To a Post in writing in richtextbox

    Use the SelectionStart and SelectionLength properties to select a particular part of the text and then apply formatting to it. Example: richtextbox1.SelectionStart = 30; richtextbox1.SelectionLength = 10; richtextbox1.SelectionAlignment = HorizontalAlignment.Left; …
  • Member Avatar for darkagn
    darkagn

    Replied To a Post in Threading Problem

    Without seeing your code it's a bit difficult, but there are some general rules you will need to be aware of when running in a multi-threaded environment. For example, you …
  • Member Avatar for darkagn
    darkagn

    Replied To a Post in SecurityException

    Is there any InnerException by any chance?
  • Member Avatar for darkagn
    darkagn

    Replied To a Post in WPF Mortgage Calculator

    Hi Ahmed_51 and welcome to DaniWeb So, p is principle, r is rate (in percentage) and n is number of years of the loan. I'm not sure I follow your …
  • Member Avatar for darkagn
    darkagn

    Replied To a Post in multiple filtering using store procedure

    Your SP has 4 parameters - @Call_LogID, @StarDate, @EndDate and @Log_code and none of them have default values specified but you are only setting 2 in your C# code - …
  • Member Avatar for darkagn
    darkagn

    Replied To a Post in database connection

    Depends on the type of database engine being used, but if you mean MSSQL then there are a lot of tutorials and sample code on the subject. For example, [this …
  • Member Avatar for darkagn
    darkagn

    Replied To a Post in Was given a task to create a program using stack+queue. Any ideas? Helppp

    Some real life examples of stack and queue: Imagine a person washing dirty plates in a restaurant kitchen. As the waiters clear the tables and bring in the dishes, they …
  • Member Avatar for darkagn
    darkagn

    Replied To a Post in unable to display images from mysql

    [Here](http://www.dreamincode.net/forums/topic/209177-not-able-fetch-the-image-from-mysql-database-and-to-display-it/) is a good approach for displaying an image from a MySQL database using PHP.
  • Member Avatar for darkagn
    darkagn

    Replied To a Post in Detecting mouse button down & up events on the system menu of form.

    Not sure if you can actually track that mouse event but you could handle the FormClosing event instead.
  • Member Avatar for darkagn
    darkagn

    Replied To a Post in putting another column

    You can use `ISNULL` or `COALESCE` to get the first non-null parameter as the result. The `ISNULL` function takes only two parameters and returns the first non-null as the result, …
  • Member Avatar for darkagn
    darkagn

    Replied To a Post in Most important things in C# Sharp

    Hi zaidiSEO and welcome to Daniweb :) It really depends on what you need to accomplish. C# can be used for a console application, a web application, a windows service, …
  • Member Avatar for darkagn
    darkagn

    Replied To a Post in Help needed in "Unit Testing" to test a method!

    Because Shto method is marked as static, you don't need to create a new KlasaDB instance. You do however need an instance of Klasa to pass to the call since …
  • Member Avatar for darkagn
    darkagn

    Replied To a Post in How to do Friend List

    I think `$id3` holds the ID of the user that is logged in. It's `$id2` that holds the value of the friend ID which is what you are trying to …
  • Member Avatar for darkagn
    darkagn

    Replied To a Post in I want to update my combobox from another combobox.

    If you debug your code, what is the value of j in the line that reads `sqlCmd.CommandText = "select cBrandName from brandName where iBno = " + j;`? When stepping …

The End.