Problems with a C# Listbox
- From: "Steffen Raßek" <Steffen.Rassek@xxxxxxxxxxx>
- Date: Mon, 31 Oct 2005 22:19:50 +0100
Hi,
I will fill a C# Listbox with the SendMessage WinAPI call.
The problem is, the listbox is filled with the text, but the itemscount is
0. The inner array of the listbox have the len 1, bat the itemvalue is not
set.
With a listbox in VB6 works the program fine.
What is my flaw ?
Thank's for the help.
Steffen
My programcode is:
[DllImport("user32.dll",EntryPoint="SendMessage")]
static extern bool SendMessage1(IntPtr hWnd,uint Msg, int wParam, string
lParam);
....
SendMessage1(listBox1.Handle,384,0,"Test");
.
- Prev by Date: Re: IntPtr marshal causes exception
- Next by Date: Re: STAThread or MTAThread for my .net service ?
- Previous by thread: Re: IntPtr marshal causes exception
- Next by thread: Re: STAThread or MTAThread for my .net service ?
- Index(es):