Click here to Skip to main content
15,905,682 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralSimple Syntax Question Pin
eggie527-May-04 13:28
eggie527-May-04 13:28 
GeneralRe: Simple Syntax Question Pin
Aaron Eldreth27-May-04 14:49
Aaron Eldreth27-May-04 14:49 
GeneralRe: Simple Syntax Question Pin
Anonymous27-May-04 14:51
Anonymous27-May-04 14:51 
GeneralVarPtr Function Pin
Pugman81227-May-04 12:29
Pugman81227-May-04 12:29 
GeneralRe: VarPtr Function Pin
Dave Kreskowiak28-May-04 2:37
mveDave Kreskowiak28-May-04 2:37 
GeneralData type conversion help needed when Using a VC++ dll with VB.NET Pin
Freddie Code27-May-04 12:23
Freddie Code27-May-04 12:23 
GeneralInVisble specify Column in ListView Ctrl Pin
skoizumi2911027-May-04 11:57
sussskoizumi2911027-May-04 11:57 
GeneralRe: InVisble specify Column in ListView Ctrl Pin
Dave Kreskowiak28-May-04 2:11
mveDave Kreskowiak28-May-04 2:11 
The standard ListView doesn't support hiding columns. You have a couple of options.

You could extend the ColumnHeader class to include a Hidden proerty, then you would have to ownerdraw the ListView control draw the columns and items based on the Hidden property.

You could just make the width of the hidden column 0, but that doesn't mean that the user can't just resize the column to show the hidden column again.

You could avoid putting the hidden data into the Item.SubItem() collection. And instead, put the data into a seperate array, but keep the array index linked to the item index in the ListView:
ListView.Item()       SubItem(0)   SubItem(1)   SubItem(2)  |  HiddenData()
  (0)"Item1"             "SI1"        "SI2"        "SI3"    |  (0)"HideMe"
  (1)"Item2"             "SI1"        "SI2"        "SI3"    |  (1)"HideMe"
  (2)"Item3"             "SI1"        "SI2"        "SI3"    |  (2)"HideMe"
  (3)"Item4"             "SI1"        "SI2"        "SI3"    |  (3)"HideMe"

This way, when ever the user selects an Item, say index 2, your hidden data will be in the array HiddenData(2).


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: InVisble specify Column in ListView Ctrl Pin
skoizumi2911028-May-04 15:02
sussskoizumi2911028-May-04 15:02 
GeneralSelecting a value from a combo box using code Pin
mincefish27-May-04 3:40
mincefish27-May-04 3:40 
GeneralRe: Selecting a value from a combo box using code Pin
Dave Kreskowiak27-May-04 4:26
mveDave Kreskowiak27-May-04 4:26 
GeneralRe: Selecting a value from a combo box using code Pin
mincefish27-May-04 6:10
mincefish27-May-04 6:10 
GeneralInterfacing COM Port with PC Pin
Lameta27-May-04 2:46
Lameta27-May-04 2:46 
GeneralRe: Interfacing COM Port with PC Pin
Dave Kreskowiak27-May-04 3:26
mveDave Kreskowiak27-May-04 3:26 
GeneralRe: Interfacing COM Port with PC Pin
Prerak28-May-04 2:50
Prerak28-May-04 2:50 
GeneralInterfacing COM Port with PC Pin
Lameta27-May-04 2:42
Lameta27-May-04 2:42 
GeneralRe: Interfacing COM Port with PC Pin
Dave Kreskowiak27-May-04 2:50
mveDave Kreskowiak27-May-04 2:50 
GeneralCostumizing .NET PropertyGrid at runtime Pin
thlund26-May-04 22:55
thlund26-May-04 22:55 
GeneralNeed help sending SMS with VB.NET Pin
Werner Vos26-May-04 22:05
Werner Vos26-May-04 22:05 
GeneralRe: Need help sending SMS with VB.NET Pin
Dave Kreskowiak27-May-04 1:01
mveDave Kreskowiak27-May-04 1:01 
GeneralFree Visual Studio VB.NET Std. Edition Pin
TigerNinja_26-May-04 16:13
TigerNinja_26-May-04 16:13 
GeneralRe: Free Visual Studio VB.NET Std. Edition Pin
Aaron Eldreth27-May-04 9:58
Aaron Eldreth27-May-04 9:58 
Generalvariable pointers in .net Pin
Pugman81226-May-04 13:11
Pugman81226-May-04 13:11 
GeneralRe: variable pointers in .net Pin
Colin Angus Mackay26-May-04 13:38
Colin Angus Mackay26-May-04 13:38 
GeneralCheck if string is valid using regular expresion Pin
viettho26-May-04 12:43
viettho26-May-04 12:43 

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.