Click here to Skip to main content
15,920,704 members
Home / Discussions / Windows Forms
   

Windows Forms

 
JokeRe: SQL2005 Pin
Paul Conrad14-May-07 6:35
professionalPaul Conrad14-May-07 6:35 
GeneralRe: SQL2005 Pin
tantoun16-May-07 0:29
tantoun16-May-07 0:29 
GeneralRe: SQL2005 Pin
Christian Graus16-May-07 18:37
protectorChristian Graus16-May-07 18:37 
GeneralRe: SQL2005 Pin
tantoun16-May-07 19:15
tantoun16-May-07 19:15 
Questioncheckedlistbox item height [modified] Pin
ScottM113-May-07 23:03
ScottM113-May-07 23:03 
AnswerRe: checkedlistbox item height Pin
Blumen15-May-07 2:25
Blumen15-May-07 2:25 
GeneralRe: checkedlistbox item height Pin
ScottM115-May-07 4:35
ScottM115-May-07 4:35 
AnswerRe: checkedlistbox item height [modified] Pin
Dougie the P26-Feb-15 20:00
professionalDougie the P26-Feb-15 20:00 
This works in VS2013 net FrameWork4.5

Put declare and constant at top of class

Usage put rest of code in Form_Load as in example code.

Private Declare Function SendMessageByNum Lib "user32" Alias "SendMessageA" _
  (ByVal hwnd As IntPtr, ByVal wMsg As UInt32, ByVal wParam As IntPtr, ByVal lParam As IntPtr) As IntPtr
 
Private Const lB_SETITEMHEIGHT As Integer = &H1A0
 
Private Sub Form_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
 
    Dim ItemHeight As Integer = Me.Font.Height + 4
    SendMessageByNum(CheckedListBoxControl.Handle, lB_SETITEMHEIGHT, CType(0, IntPtr), CType(ItemHeight, IntPtr))
 
End Sub

Douglas Peterson
Senior Application Developer / Chief Technical Officer
The Professional PC / ERIC Systems

GeneralRe: checkedlistbox item height [modified] Pin
ScottM126-Feb-15 21:27
ScottM126-Feb-15 21:27 
QuestionFiltered query - bindingsource Pin
paulsmithx13-May-07 22:30
paulsmithx13-May-07 22:30 
AnswerRe: Filtered query - bindingsource Pin
Yongyuth Panyathanaphong16-May-07 18:20
Yongyuth Panyathanaphong16-May-07 18:20 
QuestionBound combobox selects invalid value Pin
AndrusM13-May-07 3:17
AndrusM13-May-07 3:17 
AnswerRe: Bound combobox selects invalid value Pin
Paul Conrad13-Jul-07 13:47
professionalPaul Conrad13-Jul-07 13:47 
GeneralRe: Bound combobox selects invalid value Pin
AndrusM15-Jul-07 20:33
AndrusM15-Jul-07 20:33 
QuestionEnhancing/changing default look and feel Pin
Cormac M Redmond13-May-07 1:15
Cormac M Redmond13-May-07 1:15 
AnswerRe: Enhancing/changing default look and feel Pin
Giorgi Dalakishvili13-May-07 1:40
mentorGiorgi Dalakishvili13-May-07 1:40 
GeneralRe: Enhancing/changing default look and feel Pin
Cormac M Redmond13-May-07 5:18
Cormac M Redmond13-May-07 5:18 
QuestionWindows services Pin
tantoun11-May-07 4:15
tantoun11-May-07 4:15 
AnswerRe: Windows services Pin
Joseph Guadagno19-May-07 10:39
Joseph Guadagno19-May-07 10:39 
GeneralRe: Windows services Pin
tantoun20-May-07 23:17
tantoun20-May-07 23:17 
QuestionUsing a .reg file to add a Trusted site in IE Pin
RX Maverick10-May-07 10:06
RX Maverick10-May-07 10:06 
QuestionTable in Window Form Pin
Anka_Ame10-May-07 8:44
Anka_Ame10-May-07 8:44 
AnswerRe: Table in Window Form Pin
Giorgi Dalakishvili10-May-07 9:11
mentorGiorgi Dalakishvili10-May-07 9:11 
QuestionResizing listbox items in .Net Pin
ScottM110-May-07 4:14
ScottM110-May-07 4:14 
AnswerRe: Resizing listbox items in .Net Pin
Tarakeshwar Reddy10-May-07 5:22
professionalTarakeshwar Reddy10-May-07 5:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.