Thanks for the replies. I experimented with the ListView - 30,000 thousand lines with no problem. Since most users will probably apply some heavy filtering, there shouldn't be any problem. I don't even have to use virtual mode. I'll try out the datagridview to see which is easier to use.
Yoav Ben Zvi
Posts
-
Large text in RechTextBox -
Large text in RechTextBoxHi, I am writing a small application that is used to investigate log files. Currently our QA teams are using TextPad for this task. My goal is to create an application that will be able to filter and search the log text for preset expressions. The size of a typical log file is 2 - 3 MB, and contains about 30,000 lines. I am using RichTextBox so I will be able to format text. I am using a StringBuilder to concatenate all the lines (note: I am using '\r\n" after each line). I then set the content of the stringBuilder to the RichTextBox: textBox.Text += sb.ToString(); This causes the application to freeze. I tried SuspendLayout / ResumeLayout but as soon as the form is displayed the application freezes. Limiting the lines to 10,000 prevents the freezing. Any ideas?
-
Tabcontrol won't fill the windowThanks a lot. Its working great.
-
Tabcontrol won't fill the windowThe code:
-
Tabcontrol won't fill the windowIt was supposed to be a menu, and beneath that a tab control with 4 tabitems. The headers of the tabitems (the section were you press to select the tab) are using a control template that replaces the normal look. It should look like this, but the now the tab won't stretch on the whole screen: http://farm4.static.flickr.com/3219/3139805444_91eedf8bdd.jpg?v=0 The code is in the next post (image link don't like 'ignore HTML tags)
-
Tabcontrol won't fill the windowThis is what I am seeing: http://farm4.static.flickr.com/3204/3138578581_e665ec2790.jpg?v=0
-
Tabcontrol won't fill the windowI didn't notice until now that everything turned to lowercase :( I tried to do that and it worked, but then I applied a control template to the tabitems and it broke again. I hope the xaml is better this time:
-
Tabcontrol won't fill the windowI have a tab control with 4 TabItems . The width of the tab control is the combined width of the 4 TabItems headers, instead of filling the window. How can I set it to fill the screen? Here is the code: xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="THEMIS" Height="630" Width="668" WindowState="Maximized">Desktop Messages Projects Administration Thanks for any help.
-
WCF ServiceHost shuts down when not in console applicationI did have host as a member. I think the problem was using the 'using' statement. After looking at your code I dropped it and it works so thanks a lot.
-
WCF ServiceHost shuts down when not in console applicationHi, I am just starting to learn WCF. In all the examples I've seen so far, the SerciveHost was initialized inside a console application and remained listening until the console was closed. I am trying to have it initiated from inside a winform app. I have a button which triggers this method: private void StartServer() { using (host = new ServiceHost(typeof(DataBase.DataBaseService ), new Uri("http://localhost:8000/DataBaseService"))) { host.AddServiceEndpoint(typeof( DataBase.IDataBaseService), new BasicHttpBinding(), "DataBaseService"); host.Open(); } } As soon as the method reaches the end, host.Status is set to Closed. Is there any way to stop this?
-
Problems with ToolStrip control - ToolStripButtons flickering [modified]th eproblem seems to be with another control teking focus. Thanks anyway.
-
Problems with ToolStrip control - ToolStripButtons flickering [modified]Hi, Working with WinForms, I have a ToolStrip for which I add ToolStripButtons in runtime. I have 2 problems: 1. When the mouse hovers over these ToolStripButtons they constantly flicker. 2. I need to click them twice or three time to invoke the method that is assigned to the MouseClick event. Is this caused by adding the ToolStripButtons in runtime? Thanks, Yoav Ben Zvi
modified on Tuesday, April 22, 2008 3:30 AM
-
Sending more then 28 file names to string array in app creates errorBump?
-
TreeViewSet HideSelection to false.
-
Sending more then 28 file names to string array in app creates errorHi I wrote a small app that receives a string array with file names from windows explorer (using 'Send To'). If i send up to 28 file names every thing is ok. If I try to send 29 or more I get this error message: "Windows cannot access the specified device, path or file. You may not have the appropriate permissions to access the item" And the app closes. It doesn't even enter the app or the try/catch should have caught it. Any ideas please? This is the startup class:
static class Program { /// /// The main entry point for the application. /// [STAThread] static void Main(string[] args) { try { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new frmMain(args)); } catch (Exception e) { MessageBox.Show(e.Message); } finally { Application.Exit(); } } }