User Profile

Collapse

Profile Sidebar

Collapse
nghivo
nghivo
Last Activity: Sep 1 '10, 07:31 PM
Joined: Apr 26 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • The only way to figure out what column header is being dropped is:

    1. Find the area occupied by the header
    Code:
            [DllImport("user32.dll")]
            extern static IntPtr SendMessage(IntPtr hwnd, int message, int wParam, int lParam);
            [DllImport("user32.dll")]
            extern static bool GetWindowRect(IntPtr hwnd, out RECT rect);
    
            const int LVM_GETHEADER = 4127;
    ...
    See more | Go to post

    Leave a comment:


  • Folks:

    Thanks for your help,
    I will contact Microsoft for help and research some more.
    If I find the solution, I will post back here including some code.

    In the meantime, if you have any new idea, please do throw in.
    See more | Go to post

    Leave a comment:


  • Plater:

    Can you elaborate a bit more? I am newbie.

    Thanks
    See more | Go to post

    Leave a comment:


  • What listview event fired when mouse over column header

    I notice that when the mouse is over a column header of a listview control, that column header is focused (or highlighted). In this case, what event is fired ?

    The reason I ask is I have listview control with 14 columns,
    I also have labels that I want to drag-n-drop the labels over the listview column headers. When that occurs, I will change the column header text to the label text.

    I have all the codes done...
    See more | Go to post

  • My problem is what is the first cell in the row goes to the 2nd column, and the 2nd cell goes to the 3rd row, so on. So all the cells in a row shifted to the right by one column.

    I found the problem. It has something to do with the ListViewSubItem .
    There is a weird relationship b/w all ListViewSubItem objects (in a ListViewItem)an d the first ListViewSubItem .

    In order to align all cells properly, I changed my...
    See more | Go to post

    Leave a comment:


  • nghivo
    started a topic LivstView Column not aligned with ListViewItem

    LivstView Column not aligned with ListViewItem

    I created the listview as followed:

    Code:
    ListView lvContent = new ListView();
    
    //Add the column header
    lvContent.Columns.Add("Col1");            
    lvContent.Columns.Add("Col2");
    lvContent.Columns.Add("Col3");
    lvContent.Columns.Add("Col4");
    lvContent.Columns.Add("Col5");
    Then I have a CSV file with 5 columns. ...
    See more | Go to post

  • nghivo
    replied to JDBC DB2 and CLOB
    in DB2
    I run the command db2 get snapshot for locks on mydb at various stages of the process, and I can clearly see that after the update there are additional locks on the table that I update.

    My question is why the lock is not released ? I set my connection to autocommit = true when I create the connection, after the update I close the PreparedStateme nt, and issue another commit but I still have locks.

    There is some additional...
    See more | Go to post

    Leave a comment:


  • nghivo
    replied to JDBC DB2 and CLOB
    in DB2
    Thanks for all the reply

    Here is my DB2 info:

    Informational tokens are "DB2 v9.1.0.4", "s071028", "U811793", and Fix Pack
    "4" on Sun Solaris

    I notice that I did not have the "lock" problem when I insert records but only when I update records.

    First: I did not create auxiliary table and index on the aux table. This is version 9 and...
    See more | Go to post

    Leave a comment:


  • nghivo
    started a topic JDBC DB2 and CLOB
    in DB2

    JDBC DB2 and CLOB

    I am working on a Struts application using DB2 JDBC Type 4 Driver.
    By default, the Java Connection is autocommit and everything works fine for me,
    except with CLOB data type

    I have a table with one CLOB column (32000 bytes). After I update the column, I issue an explicit commit just to make sure. And for some reason, a "lock" is put on that record. I can not select anything from that record any more unless...
    See more | Go to post

  • nghivo
    replied to DB2 Execute Immediate
    in DB2
    I did bind but bound to the wrong objects. The error message is quite ambiguous.
    Everything is all right now.
    See more | Go to post

    Leave a comment:


  • nghivo
    replied to DB2 Execute Immediate
    in DB2
    I figured it out. It has something to do with the BIND process.
    To solve the problem, deverlopers have to make sure that:

    1. the makefile points to the right database.
    2. correct db id/ password uses to connect to database during compilation.
    3. in C code, the EXEC SQL CONNECT must also have the USER id USING pwd portion.

    That will solve the mysterious -805 and 51002 code.
    Please correct...
    See more | Go to post

    Leave a comment:


  • nghivo
    started a topic DB2 Execute Immediate
    in DB2

    DB2 Execute Immediate

    My environment
    DB2 9.1.4 on Sun OS

    I write a C embedded SQL to load data.

    I declare host vars as:
    EXEC SQL BEGIN DECLARE SECTION;
    SQL TYPE IS CLOB(599999) sqlStr;
    EXEC SQL END DECLARE SECTION;

    then set sqlStr and execute sqlStr as

    sprintf(sqlStr. data, "%s, %d, %d, '%s')", staticStr, recId, seqno, data);
    sqlStr.length = strlen(sqlStr.d ata);...
    See more | Go to post

  • nghivo
    replied to Zombie database
    in DB2
    Thanks for your help,

    I just erase everything and start over again.
    See more | Go to post

    Leave a comment:


  • nghivo
    started a topic Zombie database
    in DB2

    Zombie database

    I created a DB2 database, and during the creation process (the step that catalog was created, I guess), my current directory ran out of space.

    After that, I can not drop the database and got the error message:

    SQL1013N The database alias name or database name "TEST" could not be
    found. SQLSTATE=42705

    If I tried to to catalog the database, the I got the message:

    SQL1005N...
    See more | Go to post

  • nghivo
    replied to Ajax Call Tracking failed attempt
    But I tried to synch the Ajax request with the while loop
    while (1)
    {
    if (httpReq.readys tate == 0)
    { ... }
    else { .... setTimeout}
    }

    what is wrong with this code ? Thanks
    See more | Go to post

    Leave a comment:


  • nghivo
    started a topic Ajax Call Tracking failed attempt

    Ajax Call Tracking failed attempt

    I attempted to synchronize async Ajax calls using the following JS blocks:
    =============== =============== =============== =======
    [CODE=javascript]function getXMLHTTPReque st()
    {
    try
    {
    req = window.XMLHttpR equest ? new XMLHttpRequest( ): new ActiveXObject(" Microsoft.XMLHT TP");
    }
    catch (err) { }
    return req;
    }

    // update the window status
    ...
    See more | Go to post
    Last edited by gits; Jul 25 '07, 08:24 PM. Reason: added CODE tags

  • nghivo
    started a topic Calling Shell/Perl script from Struts application
    in Java

    Calling Shell/Perl script from Struts application

    I have a Struts application developed following the MVC method (forms, actions, beans, etc)..

    I have a JSP page with 2 buttons A and B. When B is clicked, a Struts action will be executed.

    But when A is clicked, I want to execute a script (ksh or Perl) on the server and get the response back to my form thru the use of (Javascript AJAX) Http Request object (hence, w/o refreshing my JSP page).

    So far so...
    See more | Go to post
No activity results to display
Show More
Working...