can anybody tell me .Why i am getting Invalid Property Value ?.Kindly let me know the idea.Any help would be highly appreciated.here is the following code
What i have written.
Code:
Public Function FillListView()
Dim item As ListItem
Set item = ListView1.ListItems.Add(, , "item")
item.SubItems(1) = "frmSupplier"
End Function
The problem is, there is no subitems found... Right click the listview and select properties. Then select Column Headers tab. Then click the Insert Column button(do it again for creating another column). Then try the code.
Last edited by akhileshbc; Jan 25th, 2010 at 08:26 AM.
If my post was helpful to you, then express your gratitude using Rate this Post.
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video) My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet Social Group:VBForums - Developers from India
Still not working it say Compiler Error .syntax Error .Kindly let me know the idea.Any help would be highly appreciated.Kindly find the attachment also.
Last edited by firoz.raj; May 30th, 2011 at 02:09 PM.
If my post was helpful to you, then express your gratitude using Rate this Post.
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video) My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet Social Group:VBForums - Developers from India
Yeah... That means you have to create two columns...
If my post was helpful to you, then express your gratitude using Rate this Post.
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video) My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet Social Group:VBForums - Developers from India
can anybody tell me .Why i am getting Invalid Property Value ?.Kindly let me know the idea.Any help would be highly appreciated.here is the following code
What i have written.
Code:
Public Function FillListView()
Dim item As ListItem
Set item = ListView1.ListItems.Add(, , "item")
item.SubItems(1) = "frmSupplier"
End Function
Try This it will work
Code:
Public Function FillListView()
ListView1.ColumnHeaders.Clear
ListView1.ColumnHeaders.Add , , "ITEM", 1444, lvwColumnLeft
ListView1.ColumnHeaders.Add , , "FORMNAME", 1444, lvwColumnRight
ListView1.View = 3
Dim item As ListItem
Set item = ListView1.ListItems.Add(, , "item")
item.SubItems(1) = "frmSupplier"
End Function
Last edited by agent_007; Jan 25th, 2010 at 01:26 PM.
Im Pro in C#,VB.NET,Batch,Socket Programming, SPY Software Programming, VB6, Win32Api, VBscript, Windows Registry, ASP.NET, PHP, Jquery, AJAX.
I Want to place all the form names in a Column one but alll the form name is
not comming in a listview subitem(1).Here is the following Code What i have
written.Kindly let me know the idea.Any help would be highly appreciated.
Kindly find the attachment also.
Code:
Public Function FillListView()
ListView1.ColumnHeaders.Clear
ListView1.ColumnHeaders.Add , , "ITEM", 1444, lvwColumnLeft
ListView1.ColumnHeaders.Add , , "FORMNAMES", 1444, lvwColumnRight
'ListView1.ColumnHeaders.Add , , "FORMNAME", 1444, lvwColumnRight
'ListView1.ColumnHeaders.Add , , "FORMNAME", 1444, lvwColumnRight
ListView1.View = 3
Dim item As ListItem
Set item = ListView1.ListItems.Add(, , "item")
item.SubItems(1) = "frmSupplier"
item.SubItems(1) = "Frmpermissions"
item.SubItems(1) = "frmsupplierModify"
End Function
Last edited by firoz.raj; May 30th, 2011 at 02:09 PM.
Public Function FillListView()
ListView1.ColumnHeaders.Clear
ListView1.ColumnHeaders.Add , , "ITEM", 1444, lvwColumnLeft
ListView1.ColumnHeaders.Add , , "FORMNAMES", 1444, lvwColumnRight
ListView1.View = 3
Dim item As ListItem
Set item = ListView1.ListItems.Add(, , "item1")
item.SubItems(1) = "frmSupplier"
Set item = ListView1.ListItems.Add(, , "item2")
item.SubItems(1) = "Frmpermissions"
Set item = ListView1.ListItems.Add(, , "item3")
item.SubItems(1) = "frmsupplierModify"
End Function
If my post was helpful to you, then express your gratitude using Rate this Post.
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video) My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet Social Group:VBForums - Developers from India
I Want to place all the form names in a Column one but alll the form name is
not comming in a listview subitem(1).Here is the following Code What i have
written.Kindly let me know the idea.Any help would be highly appreciated.
Kindly find the attachment also.
Code:
Public Function FillListView()
ListView1.ColumnHeaders.Clear
ListView1.ColumnHeaders.Add , , "ITEM", 1444, lvwColumnLeft
ListView1.ColumnHeaders.Add , , "FORMNAMES", 1444, lvwColumnRight
'ListView1.ColumnHeaders.Add , , "FORMNAME", 1444, lvwColumnRight
'ListView1.ColumnHeaders.Add , , "FORMNAME", 1444, lvwColumnRight
ListView1.View = 3
Dim item As ListItem
Set item = ListView1.ListItems.Add(, , "item")
item.SubItems(1) = "frmSupplier"
item.SubItems(1) = "Frmpermissions"
item.SubItems(1) = "frmsupplierModify"
End Function
im confused how many columns you want one or two if two than see ABC's code above if one column then Try this out and reply
Code:
Public Function FillListView()
ListView1.ColumnHeaders.Clear
ListView1.ColumnHeaders.Add , , "FormName", 1444, lvwColumnLeft
ListView1.View = 3
ListView1.ListItems.Add(1).Text = "frmSupplier"
ListView1.ListItems.Add(2).Text = "frmpermissions"
ListView1.ListItems.Add(3).Text = "frmsupplierModify"
End Function
Im Pro in C#,VB.NET,Batch,Socket Programming, SPY Software Programming, VB6, Win32Api, VBscript, Windows Registry, ASP.NET, PHP, Jquery, AJAX.
@agent: I think he wants two column and three rows...
If my post was helpful to you, then express your gratitude using Rate this Post.
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video) My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet Social Group:VBForums - Developers from India
it is comming in three column. i need in one column.one after the other in a list.as a list.kindly let me know the idea.Any help would be highly appreciated.
Dim item As ListItem
Set item = ListView1.ListItems.Add(, , "frmSupplier")
Set item = ListView1.ListItems.Add(, , "frmpermissions")
Set item = ListView1.ListItems.Add(, , "frmsupplierModify")
If my post was helpful to you, then express your gratitude using Rate this Post.
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video) My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet Social Group:VBForums - Developers from India
ListView1.View = lvwReport '~~~> Set the display type to report
ListView1.ColumnHeaders.Add , , "Forms", 1444, lvwColumnLeft '~~> Create one column
ListView1.ListItems.Add , , "frmSupplier" '~~> Add data to the column (ie. row)
ListView1.ListItems.Add , , "frmpermissions"
ListView1.ListItems.Add , , "frmsupplierModify"
Last edited by akhileshbc; Jan 26th, 2010 at 05:53 AM.
Reason: added the name of Forms
If my post was helpful to you, then express your gratitude using Rate this Post.
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video) My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet Social Group:VBForums - Developers from India
it is comming in three column. i need in one column.one after the other in a list.as a list.kindly let me know the idea.Any help would be highly appreciated.