Click here to Skip to main content
16,004,977 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Exposing a type safe collection for data binding Pin
Duncan Edwards Jones14-Apr-03 22:13
professionalDuncan Edwards Jones14-Apr-03 22:13 
GeneralDialing a number Pin
THEMYTH13-Apr-03 8:38
THEMYTH13-Apr-03 8:38 
GeneralProblem on moving objects at design time Pin
THEMYTH12-Apr-03 12:32
THEMYTH12-Apr-03 12:32 
GeneralRe: Problem on moving objects at design time Pin
Wayne Phipps12-Apr-03 21:15
Wayne Phipps12-Apr-03 21:15 
GeneralRe: Problem on moving objects at design time Pin
THEMYTH13-Apr-03 2:59
THEMYTH13-Apr-03 2:59 
GeneralLength of a MenuItem in pixels Pin
gvborre11-Apr-03 4:20
gvborre11-Apr-03 4:20 
GeneralHiding columns in ListView Pin
Subha_n510-Apr-03 23:30
Subha_n510-Apr-03 23:30 
GeneralRe: Hiding columns in ListView Pin
Villly11-Apr-03 3:46
Villly11-Apr-03 3:46 
Hello,

There is no other way to do it. You implemented is right thing. I just have a additional to tell you.

Assign ColumnResize value to none means one can not resize the column. Then while filling data in ListView calculate the length of the record which you are filling currently. Then assign the record lenght value to the column width. By doing this, you will able to see full length data in your ListView without facing problem.

Example for consideration:

Dim iLenght as Integer ' Lenght of the record
Dim iPrevMaxLength as Integer ' Length of previous record

iLength = 0
iPrevMaxLength = 0

While(rs.EOF != NULL)
'Todo part
.....
.....
.....
.....
iLength = len(rs.CurrentRecord)
if iLength > iPrevLength then
ListView.Column(index).width = iLength
iPrevMaxLength = iLength
end if
' Todo part
.....
.....
.....
.....
Wend

Let me know if this works or not.

Regards,


Vilas Shewale Wink | ;)
GeneralAdding icons to menus in VB.NET Pin
gvborre10-Apr-03 19:41
gvborre10-Apr-03 19:41 
GeneralSort a collection Pin
sybux200010-Apr-03 10:44
sybux200010-Apr-03 10:44 
GeneralRe: Sort a collection Pin
Nick Seng13-Apr-03 16:36
Nick Seng13-Apr-03 16:36 
GeneralRe: Sort a collection Pin
sybux200013-Apr-03 18:26
sybux200013-Apr-03 18:26 
GeneralCreating a date Pin
sybux200010-Apr-03 8:29
sybux200010-Apr-03 8:29 
GeneralRe: Creating a date Pin
Villly10-Apr-03 20:26
Villly10-Apr-03 20:26 
GeneralRe: Creating a date Pin
sybux200010-Apr-03 22:15
sybux200010-Apr-03 22:15 
GeneralReference spreadsheet needs to be open Pin
Nicole Sohenick10-Apr-03 6:57
sussNicole Sohenick10-Apr-03 6:57 
GeneralOLE from VB6 in C# Pin
Trevor Godwin10-Apr-03 1:03
sussTrevor Godwin10-Apr-03 1:03 
GeneralProblem to use ListSubItem Object in ListView Pin
CHEICKNA TRAORE9-Apr-03 13:59
CHEICKNA TRAORE9-Apr-03 13:59 
GeneralRe: Problem to use ListSubItem Object in ListView Pin
David Wengier10-Apr-03 16:49
David Wengier10-Apr-03 16:49 
GeneralBurning CDs programatically Pin
mabotta9-Apr-03 6:31
mabotta9-Apr-03 6:31 
GeneralRe: Burning CDs programatically Pin
Joao Vaz9-Apr-03 6:41
Joao Vaz9-Apr-03 6:41 
GeneralCalling an .exe inside VB.NET Pin
baby.chai9-Apr-03 5:26
baby.chai9-Apr-03 5:26 
GeneralRe: Calling an .exe inside VB.NET Pin
baby.chai9-Apr-03 7:16
baby.chai9-Apr-03 7:16 
QuestionSort Array? Pin
bjblackmore8-Apr-03 23:42
bjblackmore8-Apr-03 23:42 
AnswerRe: Sort Array? Pin
Nick Seng9-Apr-03 15:18
Nick Seng9-Apr-03 15:18 

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.