CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2001
    Posts
    1

    Radio buttons in ListView Control

    Normally I can put a check box in a listview control(by setting the checkbox propety to true). I want my ListView control to have two radiobuttons or two checkboxes. How can this be done. Is there some API which can be used??


  2. #2
    Join Date
    Apr 2000
    Location
    Southampton, UK
    Posts
    329

    Re: Radio buttons in ListView Control

    The treeset control from http://www.vbaccelerator.com/codelib...et/treeset.zip is a control which builds upon the treeview control to give radio buttons and checkboxes. This may be what you need.

    TimCottee
    I know a little about a lot of things and a lot about very little.

    Brainbench MVP For Visual Basic
    http://www.brainbench.com

    MCP, MCSD, MCDBA, CPIM

  3. #3
    Join Date
    Apr 2001
    Location
    Karnataka,India
    Posts
    10

    Api to Change the Date Format in Regional Settings of Control Panel

    hi,
    Can u please let me know the api which will help me to change the Date Format to dd/MM/yyyy from my code in the Regional Settings, Control Panel.
    Thanks & regards,
    Sudhakara.T.P.



  4. #4
    Join Date
    Feb 2000
    Location
    Ireland
    Posts
    808

    Re: Api to Change the Date Format in Regional Settings of Control Panel

    Next time if you want a question answered it would be agood idea to post it to the whole group and not as a reply to a question on a completly different subject

    private Declare Function GetUserDefaultLCID& Lib "kernel32" ()
    'Declare Function GetSystemDefaultLCID& Lib "kernel32" ()
    'Declare Function SetLocaleInfo& Lib "kernel32" Alias "SetLocaleInfoA" (byval _
    Locale as Long, byval LCType as Long, byval lpLCData as string)
    private Declare Function SetLocaleInfo Lib "kernel32" Alias "SetLocaleInfoA" (byval Locale as Long, byval LCType as Long, byval lpLCData as string) as Long
    private Declare Function GetLocaleInfo Lib "kernel32" Alias "GetLocaleInfoA" (byval Locale as Long, byval LCType as Long, byval lpLCData as string, byval cchData as Long) as Long
    private Const LOCALE_SSHORTDATE = &H1F ' short date format string
    private Const LOCALE_SDATE = &H1D
    private Sub Form_Load()
    Dim lngLCID as Long
    lngLCID = GetUserDefaultLCID()
    Call SetLocaleInfo(lngLCID, LOCALE_SSHORTDATE, "dd/MM/yyyy")
    Call SetLocaleInfo(lngLCID, LOCALE_SDATE, "/")
    End Sub



    Hope this helps


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured