Click here to Skip to main content
15,910,121 members
Home / Discussions / C#
   

C#

 
GeneralRe: one more question - Pin
Dan Neely18-Aug-05 7:33
Dan Neely18-Aug-05 7:33 
GeneralRe: one more question - Pin
Mohamad Al Husseiny18-Aug-05 7:41
Mohamad Al Husseiny18-Aug-05 7:41 
GeneralRe: one more question - Pin
Dan Neely18-Aug-05 8:52
Dan Neely18-Aug-05 8:52 
GeneralRe: trying to access rows in a table Pin
theStorminMormon18-Aug-05 5:39
theStorminMormon18-Aug-05 5:39 
GeneralRe: trying to access rows in a table Pin
Mohamad Al Husseiny18-Aug-05 5:45
Mohamad Al Husseiny18-Aug-05 5:45 
GeneralListBox problem with focus Pin
Blashyrkh#18-Aug-05 4:41
Blashyrkh#18-Aug-05 4:41 
GeneralRe: ListBox problem with focus Pin
Mohamad Al Husseiny18-Aug-05 5:00
Mohamad Al Husseiny18-Aug-05 5:00 
GeneralRe: ListBox problem with focus Pin
Blashyrkh#18-Aug-05 20:40
Blashyrkh#18-Aug-05 20:40 
that would work if i would just add a whole bunch at once.
But the output has to be real time, so it still draws the focus.

The code in question is this function, which is called at about 10Hz:

<br />
      <br />
    	private void UpdateList(ListBox lstBox, string rsp)<br />
		{<br />
		//lstBox.BeginUpdate();	<-- didnt help<br />
		int intIndex = lstBox.Items.Add(DateTime.Now.ToString("H.m.ssff")+": "+rsp);<br />
		lstBox.SelectedIndex = intIndex;<br />
		if(intIndex > lstMax)<br />
			 lstBox.Items.RemoveAt(0);<br />
                //lstBox.EndUpdate();<br />
<br />
		}<br />
<br />


any other suggestions what to do?
i could use a text field too, but there i dont know how to keep the field from allocating more and more memory.
here i just delete all entries over lstMax's Value.
GeneralRe: ListBox problem with focus Pin
S. Senthil Kumar18-Aug-05 6:51
S. Senthil Kumar18-Aug-05 6:51 
GeneralRe: ListBox problem with focus Pin
Blashyrkh#18-Aug-05 11:42
Blashyrkh#18-Aug-05 11:42 
GeneralRe: ListBox problem with focus Pin
S. Senthil Kumar18-Aug-05 20:25
S. Senthil Kumar18-Aug-05 20:25 
GeneralC# setup like interface design Pin
Member 220551318-Aug-05 4:39
Member 220551318-Aug-05 4:39 
GeneralRe: C# setup like interface design Pin
Mohamad Al Husseiny18-Aug-05 4:52
Mohamad Al Husseiny18-Aug-05 4:52 
GeneralRe: C# setup like interface design Pin
Member 220551318-Aug-05 5:05
Member 220551318-Aug-05 5:05 
GeneralFinding Text in Images Pin
Member 183508318-Aug-05 4:20
Member 183508318-Aug-05 4:20 
GeneralRe: Finding Text in Images Pin
Mohamad Al Husseiny18-Aug-05 4:40
Mohamad Al Husseiny18-Aug-05 4:40 
GeneralRe: Finding Text in Images Pin
Member 183508318-Aug-05 4:43
Member 183508318-Aug-05 4:43 
GeneralSending signed message via CDO Pin
z-1018-Aug-05 2:37
z-1018-Aug-05 2:37 
GeneralCustom dialog with features of standard ones Pin
Mux-Mux18-Aug-05 2:29
Mux-Mux18-Aug-05 2:29 
GeneralRe: Custom dialog with features of standard ones Pin
Mohamad Al Husseiny18-Aug-05 3:06
Mohamad Al Husseiny18-Aug-05 3:06 
GeneralNetwork Connections Pin
Mridang Agarwalla18-Aug-05 1:27
Mridang Agarwalla18-Aug-05 1:27 
GeneralRe: Network Connections Pin
Sean Michael Murphy18-Aug-05 3:23
Sean Michael Murphy18-Aug-05 3:23 
Generalprogram icon Pin
Mridang Agarwalla18-Aug-05 1:22
Mridang Agarwalla18-Aug-05 1:22 
GeneralRe: program icon Pin
V.18-Aug-05 1:58
professionalV.18-Aug-05 1:58 
GeneralRe: program icon Pin
Mohamad Al Husseiny18-Aug-05 2:33
Mohamad Al Husseiny18-Aug-05 2:33 

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.