Click to See Complete Forum and Search --> : Radio buttons in ListView Control


Fahad
March 17th, 2001, 01:57 AM
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??

TimCottee
March 20th, 2001, 09:25 AM
The treeset control from http://www.vbaccelerator.com/codelib/treeset/treeset.zip is a control which builds upon the treeview control to give radio buttons and checkboxes. This may be what you need.

sudhi_75
May 4th, 2001, 04:49 AM
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.

TH1
May 4th, 2001, 04:59 AM
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