|
-
March 17th, 2001, 02:57 AM
#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??
-
March 20th, 2001, 10:25 AM
#2
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
-
May 4th, 2001, 04:49 AM
#3
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.
-
May 4th, 2001, 04:59 AM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|