Click here to Skip to main content
15,917,454 members
Home / Discussions / C#
   

C#

 
GeneralRe: Exception Reporting Pin
Colin Angus Mackay4-May-04 1:28
Colin Angus Mackay4-May-04 1:28 
QuestionHow to customize PropertyGrid ToolTip Pin
LotusM4-May-04 0:53
LotusM4-May-04 0:53 
Generalcombobox datasource Pin
brain2cpu4-May-04 0:21
professionalbrain2cpu4-May-04 0:21 
GeneralRe: combobox datasource Pin
Colin Angus Mackay4-May-04 0:42
Colin Angus Mackay4-May-04 0:42 
GeneralUpdating More than One table Pin
sreejith ss nair3-May-04 23:46
sreejith ss nair3-May-04 23:46 
GeneralRe: Updating More than One table Pin
Heath Stewart4-May-04 4:13
protectorHeath Stewart4-May-04 4:13 
GeneralAlan Murta's - General Polygon Clipper Pin
d-mon3-May-04 22:55
d-mon3-May-04 22:55 
GeneralRe: Alan Murta's - General Polygon Clipper Pin
Daniel Turini4-May-04 0:07
Daniel Turini4-May-04 0:07 
GeneralRe: Alan Murta's - General Polygon Clipper Pin
Heath Stewart4-May-04 3:52
protectorHeath Stewart4-May-04 3:52 
GeneralRe: Alan Murta's - General Polygon Clipper Pin
d-mon5-May-04 10:41
d-mon5-May-04 10:41 
QuestionBest C# IRC Channel? Pin
Marlun3-May-04 22:36
Marlun3-May-04 22:36 
AnswerRe: Best C# IRC Channel? Pin
Heath Stewart4-May-04 3:47
protectorHeath Stewart4-May-04 3:47 
GeneralRe: Best C# IRC Channel? Pin
Marlun4-May-04 6:27
Marlun4-May-04 6:27 
GeneralRe: Best C# IRC Channel? Pin
Heath Stewart4-May-04 8:02
protectorHeath Stewart4-May-04 8:02 
GeneralRe: Best C# IRC Channel? Pin
Marlun4-May-04 10:08
Marlun4-May-04 10:08 
GeneralRe: Best C# IRC Channel? Pin
eggie54-May-04 15:54
eggie54-May-04 15:54 
GeneralRe: Best C# IRC Channel? Pin
Marlun4-May-04 20:23
Marlun4-May-04 20:23 
GeneralRe: Best C# IRC Channel? Pin
eggie55-May-04 2:01
eggie55-May-04 2:01 
Generalusing API in C# Pin
nthevu3-May-04 20:18
professionalnthevu3-May-04 20:18 
GeneralRe: using API in C# Pin
Heath Stewart4-May-04 3:46
protectorHeath Stewart4-May-04 3:46 
Why are you even P/Invoking anything? What you want is already possible using the ListView class and the ListViewItem class. The ListViewItem.Text property gets the text of the ListViewItem, which you can get by enumerating through the ListView.Items or using ListView.SelectedItems or something similar. If you want a particular item's region, then you can use ListView.GetItemRect, which can retrieve information about several parts of a ListViewItem.

Besides, you don't need an unsafe context and your SendMessage declaration is wrong. The wParam should be an IntPtr since it will be 32 bits on a 32-bit OS and 64 bits on a 64-bit OS (which is dependent on the processor). The last member of your struct should also be just an IntPtr.

Seriously, though, don't waste your time doing this. Everything you're trying to do according to your post is easy using what's provided in the .NET FCL (namely, the System.Windows.Forms.dll assembly).

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: using API in C# Pin
nthevu4-May-04 5:15
professionalnthevu4-May-04 5:15 
GeneralRe: using API in C# Pin
Heath Stewart4-May-04 8:00
protectorHeath Stewart4-May-04 8:00 
GeneralRe: using API in C# Pin
nthevu4-May-04 18:18
professionalnthevu4-May-04 18:18 
GeneralAbout WebServer Pin
Moon Boy3-May-04 13:24
Moon Boy3-May-04 13:24 
GeneralRe: About WebServer Pin
TigerNinja_3-May-04 17:39
TigerNinja_3-May-04 17:39 

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.