Click here to Skip to main content
15,897,371 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How to clear a bindingsource without deleting from database Pin
Richard MacCutchan30-May-19 4:01
mveRichard MacCutchan30-May-19 4:01 
GeneralRe: How to clear a bindingsource without deleting from database Pin
desanti30-May-19 6:58
desanti30-May-19 6:58 
GeneralRe: How to clear a bindingsource without deleting from database Pin
Richard MacCutchan30-May-19 7:01
mveRichard MacCutchan30-May-19 7:01 
GeneralRe: How to clear a bindingsource without deleting from database Pin
desanti30-May-19 8:56
desanti30-May-19 8:56 
GeneralRe: How to clear a bindingsource without deleting from database Pin
Richard MacCutchan30-May-19 21:44
mveRichard MacCutchan30-May-19 21:44 
AnswerRe: How to clear a bindingsource without deleting from database Pin
Gerry Schmitz31-May-19 5:53
mveGerry Schmitz31-May-19 5:53 
QuestionVisual Basic : Entity Framework update only one table in model from database Pin
desanti30-May-19 2:20
desanti30-May-19 2:20 
QuestionListView DrawItem() e.Bounds gives different Height when item is selected. SOLVED. Pin
mo149228-May-19 2:54
mo149228-May-19 2:54 
I have a ListView with OwnerDraw enabled and I am processing just DrawItem().
I am using LargeImageList with 48 x 48 ImageSize and View = MediumIcons.
When I rename an item to cause the text to wrap and thereby causing the height
of the item to increase, every thing is ok while the item is selected; ie. Has Focus.

When I select a different item and the renamed item loses focus, e.bounds reports
a reduced height which causes misalignment of text.

Note: This does not occur when wrapping results with 2 lines. But does occur when there are 3 lines.

What am I missing?
Thank you

Private Sub OpenFileDialogListView_DrawItem(ByVal sender As Object, ByVal e As DrawListViewItemEventArgs) Handles MyBase.DrawItem

' Start of function. No preceding code.
' If I break here when item is selected, e.bounds.height = 94.
' When not selected, e.bounds.height = 81.

e.DrawBackground()
End Sub

-- modified 28-May-19 12:24pm.
AnswerRe: ListView DrawItem() e.Bounds gives different Height when item is selected. Pin
Richard MacCutchan28-May-19 6:20
mveRichard MacCutchan28-May-19 6:20 
GeneralRe: ListView DrawItem() e.Bounds gives different Height when item is selected. Pin
mo149228-May-19 6:24
mo149228-May-19 6:24 
Questionvb.net and Excel ribbon Pin
JR21218-May-19 21:07
JR21218-May-19 21:07 
AnswerRe: vb.net and Excel ribbon Pin
JR21210-Jun-19 10:51
JR21210-Jun-19 10:51 
QuestionEntity Framework Select several levels of childs Pin
desanti16-May-19 6:39
desanti16-May-19 6:39 
AnswerRe: Entity Framework Select several levels of childs Pin
Richard Deeming16-May-19 8:47
mveRichard Deeming16-May-19 8:47 
GeneralRe: Entity Framework Select several levels of childs Pin
desanti16-May-19 8:55
desanti16-May-19 8:55 
GeneralRe: Entity Framework Select several levels of childs Pin
desanti17-May-19 0:38
desanti17-May-19 0:38 
GeneralRe: Entity Framework Select several levels of childs Pin
Dave Kreskowiak17-May-19 1:45
mveDave Kreskowiak17-May-19 1:45 
GeneralRe: Entity Framework Select several levels of childs Pin
desanti17-May-19 1:53
desanti17-May-19 1:53 
GeneralRe: Entity Framework Select several levels of childs Pin
Dave Kreskowiak17-May-19 2:08
mveDave Kreskowiak17-May-19 2:08 
QuestionMicrosoft VBScript runtime error '800a01f4' Variable is undefined: 'DirectoryEntry' Pin
Member 1436203315-May-19 20:38
Member 1436203315-May-19 20:38 
AnswerRe: Microsoft VBScript runtime error '800a01f4' Variable is undefined: 'DirectoryEntry' Pin
Richard MacCutchan15-May-19 21:29
mveRichard MacCutchan15-May-19 21:29 
AnswerRe: Microsoft VBScript runtime error '800a01f4' Variable is undefined: 'DirectoryEntry' Pin
Dave Kreskowiak16-May-19 1:52
mveDave Kreskowiak16-May-19 1:52 
AnswerRe: Microsoft VBScript runtime error '800a01f4' Variable is undefined: 'DirectoryEntry' Pin
Richard Deeming16-May-19 1:53
mveRichard Deeming16-May-19 1:53 
GeneralRe: Microsoft VBScript runtime error '800a01f4' Variable is undefined: 'DirectoryEntry' Pin
Member 1436203316-May-19 22:57
Member 1436203316-May-19 22:57 
QuestionTrouble with recover a date from a datetimepicker Pin
Member 1122046515-May-19 5:55
Member 1122046515-May-19 5:55 

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.