Click here to Skip to main content
15,909,498 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Joystick/Gamepad Pin
Jerry___19-Sep-05 9:51
Jerry___19-Sep-05 9:51 
QuestionMDI Pin
JJRW18-Sep-05 3:41
JJRW18-Sep-05 3:41 
AnswerRe: MDI Pin
Dave Kreskowiak19-Sep-05 1:00
mveDave Kreskowiak19-Sep-05 1:00 
Questionbluetooth connection Pin
ecentinela18-Sep-05 1:15
ecentinela18-Sep-05 1:15 
AnswerRe: bluetooth connection Pin
seee sharp18-Sep-05 17:58
seee sharp18-Sep-05 17:58 
GeneralRe: bluetooth connection Pin
ecentinela18-Sep-05 20:29
ecentinela18-Sep-05 20:29 
QuestionEllispe button or ellispe form Pin
Pravat Maskey17-Sep-05 23:15
Pravat Maskey17-Sep-05 23:15 
QuestionVB.NET Listview Extended Styles Pin
Gate Crasher17-Sep-05 16:24
Gate Crasher17-Sep-05 16:24 
Do ANYONE know anything about this? I have searched hours upon hours this last week to see if anyone can acurrately answer my questions on this topic. I have been trying to get the extended properties for VB.NET 2003 ListView to work. Am I at least on the right track with:

Declare Function SendMessage Lib "user32.dll" Alias "SendMessageA" ( _
ByVal hwnd As Int32, _
ByVal wMsg As Int32, _
ByVal wParam As Int32, _
ByVal lParam As Int32) As Int32

Const LVM_GETEXTENDEDLISTVIEWSTYLE = LVM_FIRST + &H37
Const LVM_SETEXTENDEDLISTVIEWSTYLE = LVM_FIRST + &H36
Const LVS_EX_UNDERLINEHOT As Int32 = &H800
* Note I have several if not all other LVM and LVS_EX constants declared

Some of them work, some of them don't but I am throwing them all into this function call:

SendMessage(ListView1.Handle.ToInt32, Me.LVM_SETEXTENDEDLISTVIEWSTYLE, 0, Me.LVS_EX_UNDERLINEHOT)
*I have even tried Listview1.update() after this call - I realize the one click or two click activate must be enabled in conjunction with this for it to work and have done so via the properties option of the control as well as "Or"ing it with LVS_EX_ONECLICKACTIVATE, still no dice.

Still the Hot items do not get underlined. However if I try
SendMessage(ListView1.Handle.ToInt32, Me.LVM_SETEXTENDEDLISTVIEWSTYLE, 0, Me.LVS_EX_ONECLICKACTIVATE)
The icon changes to a hand (finger pointing) and it seems as though the message is succesfull.

WHY DOES THIS WORK ON SOME AND NOT ON OTHERS!?!?

*Also before you ask, I am aware of the GETEXTENDEDSTYLES and assigning it to a variable and then "Or"'ing it into conjunction with other constants as to not turn off all other extended styles and what not. NOBODY SEEMS TO KNOW ANYTHING ABOUT THE EXTENDED STYLES OF LISTVIEWS AND/OR HOW TO SUCCESSFULLY USE THEM IN VB.NET - WHY IS THE API SUCH A TRICKY SUBJECT THAT HARDLY ANYONE KNOWS ANYTHING ABOUT AND WHY DOES MICROSOFT MAKE GETTING THAT INFORMATION SO HARD?

PLEASE SOMEBODY HELP ME!!!

*If you want to have an idea of what I am trying to do here I posted a question on stopping the ListView from flickering in the VB.NET postings about a week ago. My final objective is to successfully get the LVS_EX_DOUBLEBUFFER to work. PLEASE HELP ME!!!!



QuestionSecurity...... Pin
daviiie17-Sep-05 7:30
daviiie17-Sep-05 7:30 
AnswerRe: Security...... Pin
Brian Van Beek17-Sep-05 18:02
Brian Van Beek17-Sep-05 18:02 
GeneralRe: Security...... Pin
daviiie17-Sep-05 21:21
daviiie17-Sep-05 21:21 
AnswerRe: Security...... Pin
Colin Angus Mackay17-Sep-05 22:51
Colin Angus Mackay17-Sep-05 22:51 
QuestionCan anyone help Pin
DanChin17-Sep-05 7:02
DanChin17-Sep-05 7:02 
AnswerRe: Can anyone help Pin
Christian Graus18-Sep-05 11:06
protectorChristian Graus18-Sep-05 11:06 
GeneralRe: Can anyone help Pin
Anonymous21-Sep-05 8:34
Anonymous21-Sep-05 8:34 
QuestionLearning vb.net Pin
Member 226908017-Sep-05 5:32
Member 226908017-Sep-05 5:32 
AnswerRe: Learning vb.net Pin
Brian Van Beek17-Sep-05 18:03
Brian Van Beek17-Sep-05 18:03 
QuestionHow can i make default window text editor to my Text Editor. Pin
deepak_rai17-Sep-05 2:17
deepak_rai17-Sep-05 2:17 
AnswerRe: How can i make default window text editor to my Text Editor. Pin
Brian Van Beek17-Sep-05 18:08
Brian Van Beek17-Sep-05 18:08 
QuestionOffice Auomation Pin
mian rashed17-Sep-05 1:29
mian rashed17-Sep-05 1:29 
AnswerRe: Office Auomation Pin
seee sharp18-Sep-05 18:01
seee sharp18-Sep-05 18:01 
QuestionGranitng access to .net Pin
daviiie17-Sep-05 1:10
daviiie17-Sep-05 1:10 
AnswerRe: Granitng access to .net Pin
Colin Angus Mackay17-Sep-05 2:01
Colin Angus Mackay17-Sep-05 2:01 
AnswerRe: Granitng access to .net Pin
KaptinKrunch18-Sep-05 17:51
KaptinKrunch18-Sep-05 17:51 
QuestionRun time error - CR10-VB.NET Pin
Ranoush16-Sep-05 23:59
Ranoush16-Sep-05 23:59 

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.