Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
T

thanh_bkhn

@thanh_bkhn
About
Posts
39
Topics
8
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • C# shuffle one column out of two
    T thanh_bkhn

    You could do this as below: 1. Create a new List to store all values of ID_STATION 2. Use Random class to generate a random index from 0 to upper bound value of the above List 3. Add the value corresponding to this index into a new List 4. Remove the value from the old List 5. Repeat from 2 until the old List become empty. 6. Update every record in your table Update tableName set ID_STATION = stationList[i] where ID_EMPLOYEE = employeeList[i]

    "Never memorize something that you can look up." - Albert_Einstein

    C# csharp database visual-studio tutorial

  • First 10 or 20 lessons
    T thanh_bkhn

    I used Google, and I found some sites: http://www.cprogramming.com[^] http://www.learn-c.org/[^] http://www.w3schools.in/c-programming-language/intro/[^] I think you found these, too. But didn't they satisfy you yet?

    "Never memorize something that you can look up." - Albert_Einstein

    C / C++ / MFC question learning

  • DeleteFile() Function Failure
    T thanh_bkhn

    There are some reasons lead to DeleteFile() failure: 1. File not found 2. Path not found 3. Access denied The first two reason maybe avoidable, but when you delete a large amount of file, depending on the disk status, there is a possibility that the access error happens. I also encountered this error when manually delete a directory which contains a large amount of files and sub directories, so I have to retry several times. If you use DeleteFile() in your program, I think you should use catch and retry deleting several times before give it up.

    "Never memorize something that you can look up." - Albert_Einstein

    C / C++ / MFC c++ debugging question

  • Calculating a total from a form
    T thanh_bkhn

    I think the problem is at your javascript declare statement. Wrong:

    <script type="type/javascript" src="j/exercise5-3.js">

    Right:

    <script type="text/javascript" src="j/exercise5-3.js">

    JavaScript javascript html css tools architecture

  • Radio button default checked
    T thanh_bkhn

    You got error because of [runat="server"]. I can't understand why a radio got deselected by itself. Can you post your complete HTML code?

    Web Development question

  • Radio button default checked
    T thanh_bkhn

    I still have no idea about why your radio button got deselected by its own. But as you describe, if you want all your radio buttons act like a "group", you should set a name for all of them, like:

    <input type="radio" id="rdList" name="myRadio" value="1"/>
    <input type="radio" id="rdList" name="myRadio" value="2"/>
    <input type="radio" id="rdList" name="myRadio" value="3"/>

    Web Development question

  • Resize bitmap from Clipborad?
    T thanh_bkhn

    Assume you have a HBITMAP hbitmap which already contains your clipboard data. Then you can StretchBlt that data to a destination HDC hdc as below: 1. Create a compatible HDC in memory with your destination hdc

    HDC memDC= CreateCompatibleDC(hdc);

    2. Select your hbitmap into the memory DC

    HBITMAP hOldBmp = (HBITMAP)SelectObject(memDC, hbitmap);

    3. Use StretchBlt to resize it

    StretchBlt(hdc, 0, 0, new_Width, new_Height, memDC, 0, 0, org_Width, org_Height, SRCCOPY);

    4. Restore the old bitmap and free memory

    SelectObject(memDC, hOldBmp);
    DeleteDC(memDC);

    Hope it helps :)

    C / C++ / MFC graphics tutorial question

  • Radio button default checked
    T thanh_bkhn

    What does "uncheck by itself" means? Do you have the refresh interval or element regenerate interval? Btw, your radio buttons have "rdList" in their id, but you used "myradio" to access them.

    Web Development question

  • How to express this in a Regex?
    T thanh_bkhn

    I think the Text portion could be:

    (?<Text>((?!\d+\r\n).*\r\n)*)

    (?!\d+\r\n) will exclude any line with number only .* will include any line (except the lines with number only, as excluded by (?!\d+\r\n)) Btw, I noticed you don't have ? before <TCEnd> :)

    Visual Basic regex help tutorial question

  • Connection to SQL using JDBC in Java
    T thanh_bkhn

    You should check the port where sqlserver is installed and specify the port number. Ex jdbc:sqlserver://localhost:1433;databaseName=paytest;user=PC;password=;integratedSecurity=true

    Java csharp c++ java database com

  • How to achieve this type of Images [ like animated waves over Images ] from AdobeFlasPlayer 11.7.700.224 on VS - 2010?
    T thanh_bkhn

    It's not an image, it's a flash animation. To download a flash animation, you can take a look at here[^]. To create a flash animation, you must use a software such as Adobe Flash.

    ASP.NET adobe csharp visual-studio com tutorial

  • MSN style links
    T thanh_bkhn

    I think you could have the same effect by applying the CSS pseudo-class for the anchor. Below is the example from W3Schools

    a:link {color:#FF0000;} /* unvisited link */
    a:visited {color:#00FF00;} /* visited link */
    a:hover {color:#FF00FF;} /* mouse over link */
    a:active {color:#0000FF;} /* selected link */

    active defines the effect on mouse down event.

    JavaScript javascript com question

  • OnLButtonDown not getting called for Slider Control in MFC.?
    T thanh_bkhn

    In the OnHScroll, the UINT nSBCode parameter contains the code message. nSBCode == TB_THUMBTRACK when you use the mouse to drag it.

    C / C++ / MFC help c++ question

  • Wanna to write article but always rejected from codeproject :(
    T thanh_bkhn

    Take a look at here[^] and here[^]

    Article Writing

  • OnLButtonDown not getting called for Slider Control in MFC.?
    T thanh_bkhn

    Do you really need a OnLButtonDown on a Slider control? If you just want to handle whenever its value get changed, you can try OnHScroll or OnVScroll instead.

    C / C++ / MFC help c++ question

  • How to display the multiple images - VS 2010 ?
    T thanh_bkhn

    I think it's not about ASP.NET. You need Javascript to control it. There are many ways to achieve it, but there is a very easy way using jQuery as described here[^]

    ASP.NET csharp asp-net visual-studio design help

  • how can i use url-re-writing
    T thanh_bkhn

    This is a topic on MSDN about URL rewriting in ASP.NET: http://msdn.microsoft.com/en-us/library/ms972974.aspx[^]

    ASP.NET question

  • how to start
    T thanh_bkhn

    Could you clarify which operation you have to perform? What is USB drive on other computer/local computer?

    C / C++ / MFC tutorial question

  • Capturing mouse input outside a dialog
    T thanh_bkhn

    May be you just want to capture the mouse position, and you have no problem in finding the colour, then you can set a new Timer, then in the OnTimer function, you may try GetCursorPos() to retrieve the mouse's position. If you want to capture other mouse's action like mouse click... then take a look at global hook, as described in this Mouse and KeyBoard Hooking utility with VC++[^]

    C / C++ / MFC c++ php com help tutorial

  • Calling a function from within a function question
    T thanh_bkhn

    Hi there, I think there is a problem when you call setSpeed(): You clear interval by calling

    clearInterval(myFx);

    This is the global myFx, but when you set a new interval, you return to a local variable

    var myFx = setInterval(doFx,y);

    If you remove the "var" in order to use the global myFx variable, the problem should be resolved.

    myFx = setInterval(doFx,y);

    JavaScript javascript html tools performance help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups