|
-
Aug 19th, 2008, 11:29 PM
#1
Thread Starter
PowerPoster
[RESOLVED] Am I allowed to click on a listview and have a form pop up?
Hey guys I have a listview called report.
Now I have a form called probdes.
Is there a way so when I click on a item in the listview, the prob des form pops up and whatever was in the first column of the row item I clicked on goes in label7, the second column row item goes in label8, and the third in label9, the fourth in label10, and the last in label11?
thank you!
-
Aug 19th, 2008, 11:45 PM
#2
Re: Am I allowed to click on a listview and have a form pop up?
Sure, just use the ListView1_DblClick() event.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Aug 20th, 2008, 08:04 PM
#3
Thread Starter
PowerPoster
Re: Am I allowed to click on a listview and have a form pop up?
alrighty then, but what format do I use to refer to the first listview column data for that row going in label7, and so on?
-
Aug 20th, 2008, 10:10 PM
#4
Re: Am I allowed to click on a listview and have a form pop up?
lv.SelectedItem.ListSubItems(0)
-
Aug 22nd, 2008, 08:42 PM
#5
Thread Starter
PowerPoster
Re: Am I allowed to click on a listview and have a form pop up?
Alrighty then, but when I use THIS code.
probdes.Label7.Caption = Report.SelectedItem.ListSubItems(0)
I get an index out of bounds error highlighting it.
-
Aug 23rd, 2008, 01:22 AM
#6
Re: Am I allowed to click on a listview and have a form pop up?
I'm sorry, it should be (1) and not (0).
-
Aug 24th, 2008, 12:12 AM
#7
Thread Starter
PowerPoster
Re: Am I allowed to click on a listview and have a form pop up?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|