Click here to Skip to main content
15,891,864 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MDI problem Pin
Gurra_Koo21-Aug-05 12:54
Gurra_Koo21-Aug-05 12:54 
GeneralRe: MDI problem Pin
Ali Tavakol21-Aug-05 20:04
Ali Tavakol21-Aug-05 20:04 
Questionhow to get binary RGB data from webcam? Pin
ThinkingPrometheus21-Aug-05 9:14
ThinkingPrometheus21-Aug-05 9:14 
AnswerRe: how to get binary RGB data from webcam? Pin
Andrew Walker21-Aug-05 16:32
Andrew Walker21-Aug-05 16:32 
GeneralRe: how to get binary RGB data from webcam? Pin
ThinkingPrometheus23-Aug-05 12:11
ThinkingPrometheus23-Aug-05 12:11 
GeneralPrinting multiple Views in MFC Pin
suzie10021-Aug-05 8:40
suzie10021-Aug-05 8:40 
GeneralRe: Printing multiple Views in MFC Pin
Jano Petras21-Aug-05 14:46
Jano Petras21-Aug-05 14:46 
Generalgetting text of selected item in listview Pin
/*Trucker*\21-Aug-05 8:04
/*Trucker*\21-Aug-05 8:04 
Hi All,

I have been trying to do this simple task for half a night and as simple as it sounds, I can't get it to work.Mad | :mad:

I have a listview and I am trying to get the text of the selected item when user selects one (this is a single select listview). I've tried the following but none work:

System::Void Form1::lv_files_SelectedIndexChanged(System::Object *  sender, System::EventArgs *  e){

	// Intellisense tells me that there is no '->Text'
	// after Item(0) even though when reading through
	// the .NET Framework, this sounded logical
	String* sss = lv_files->SelectedItems->Item(0)->Text;

	//Intellisense tells me this does not work either
	ListViewItem* selectedFile = dynamic_cast<ListViewItem*>(e);
	String* sss = selectedFile->Text;

	//...and many other unsuccessful ways which I already forgot
}


So how do I actually get the text of the selected item? Im tired, and passed the pissed off point so any help would be appreciated immenslyWTF | :WTF:

TraileR ParK LifE 4Ever >:{
GeneralRe: getting text of selected item in listview Pin
Jose Lamas Rios21-Aug-05 11:08
Jose Lamas Rios21-Aug-05 11:08 
GeneralRe: getting text of selected item in listview Pin
/*Trucker*\21-Aug-05 11:16
/*Trucker*\21-Aug-05 11:16 
GeneralRe: getting text of selected item in listview Pin
Jose Lamas Rios21-Aug-05 17:35
Jose Lamas Rios21-Aug-05 17:35 
GeneralRe: getting text of selected item in listview Pin
Jordan C. Atlas5-Apr-06 11:37
Jordan C. Atlas5-Apr-06 11:37 
GeneralTaskbar Button don't have the correct status Pin
mamtz21-Aug-05 7:10
mamtz21-Aug-05 7:10 
GeneralRe: Taskbar Button don't have the correct status Pin
/*Trucker*\21-Aug-05 9:43
/*Trucker*\21-Aug-05 9:43 
GeneralRe: Taskbar Button don't have the correct status Pin
mamtz22-Aug-05 7:45
mamtz22-Aug-05 7:45 
Questionhow to hide taskbar Pin
gr8coaster32921-Aug-05 6:35
gr8coaster32921-Aug-05 6:35 
AnswerRe: how to hide taskbar Pin
Graham Bradshaw21-Aug-05 6:45
Graham Bradshaw21-Aug-05 6:45 
GeneralRe: how to hide taskbar Pin
gr8coaster32921-Aug-05 6:52
gr8coaster32921-Aug-05 6:52 
GeneralRe: how to hide taskbar Pin
Graham Bradshaw21-Aug-05 6:54
Graham Bradshaw21-Aug-05 6:54 
GeneralRe: how to hide taskbar Pin
gr8coaster32921-Aug-05 6:57
gr8coaster32921-Aug-05 6:57 
AnswerRe: how to hide taskbar Pin
mamtz21-Aug-05 6:48
mamtz21-Aug-05 6:48 
Generalseeking gurus: get other app content Pin
Anonymous21-Aug-05 1:12
Anonymous21-Aug-05 1:12 
QuestionI want a file DLL write by VC++ used in VisualBasic ? Pin
Thangnc21-Aug-05 1:08
Thangnc21-Aug-05 1:08 
AnswerRe: I want a file DLL write by VC++ used in VisualBasic ? Pin
/*Trucker*\21-Aug-05 10:56
/*Trucker*\21-Aug-05 10:56 
GeneralSwap File Pin
Member 221145621-Aug-05 1:00
Member 221145621-Aug-05 1:00 

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.