Hello, I have a long treeView, how can I scroll to the top of the control, without selecting anything? Please help.
AngryC
Posts
-
How can I scroll to the beginning of a treeView? -
Why I'm not getting Vista style on my listViews?Hello, I'm developping using VS.NET/.NET 2.0 and my listView does not have the effects available on Vista listView. Please help me with this. Thanks.
-
Blinks on oneClick activation listViewHi, I have a listView with oneClick activation enabled. It's working fine but there's a really ugly effect, that is when I pass the mouse over the items it blinks. How can I stop that? Please help.
-
Making a listView sub item clickableHello, Can you please tell me how can I MessageBox.Show the tag property of a listView item when a sub item is clicked? Thanks.
-
Why I'm getting the word "binary" when writing from database to hrad drive?Hello, I'm trying to write a binary file stored in Access DB (an exe) and when I'm writing it I'm getting something like "binary binary binary..." before the real file content and therefore I'm having the file corrupted. Please help.
-
Text extraction -- This one will make you dizzyTHANK YOU SO MUCH.
-
Text extraction -- This one will make you dizzyI'm still trying but I can't figure out how to "join that array again except the first s1 items and the last s2 items." :doh:
-
Text extraction -- This one will make you dizzyOk sorry :) I did what you said except: "then join that array again except the first s1 items and the last s2 items." How can I do that? Thanks a lot.
-
Text extraction -- This one will make you dizzyCan you please give me some code, I'm really a beginner in C#.
-
Text extraction -- This one will make you dizzyHello Luc, I'm getting the following errors when I'm trying to compile the code: Error 1 No overload for method 'IndexOf' takes '1' arguments ccc.cs 626 19 ccc Error 2 The best overloaded method match for 'string.Join(string, string[])' has some invalid arguments ccc.cs 630 12 ccc Error 3 Argument '1': cannot convert from 'char' to 'string' ccc.cs 630 24 ccc
-
Text extraction -- This one will make you dizzyHi, Thank you very much. The problem is I don't know the position at design or runtime. The only clue I have is the value of part_of_var1 variable. So maybe I have to count spaces? Thank again.
-
Text extraction -- This one will make you dizzyHello, Let's say I have the following variables: string var1 = "5567 87865 4432 54535 6678 4435"; string var2 = "667 332 32 555677 4465 44444444"; string part_of_var1 = "4432 54535"; string xxx = String.Empty; I want to have in xxx: 32 555677! Notice that part_of_var1 contains the third and fourth parts of var1. I want to have 32 555677 in xxx var because it is the third and fourth parts of var2. I hope it's clear! Please help. Your help would be much appreciated.
-
How to sort a ListView control by a column (with Groups)Hello, I've read the following article: http://support.microsoft.com/kb/319401[^] It actually worked very nicely with my project but when I grouped listView items (using Group property) it stopped working completely. Can you please tell me how can I fix that? Your help would be greatly appreciated.
-
listView column width issueHello, Can you please tell me how can I have a fixed listView column size for all the coumns except for the first one, I want it to fill all the unused space. Thank you!
-
How can omit HTML tags while replacing?Hello, I have a webBrowser control on my windows form. I also have a textBox, in which I allow my user to enter a letter of a word and hit a button to highlight all the occurances of the entered letter/word. Here's the button code: webBrowser1.Document.Body.InnerHtml = webBrowser1.Document.Body.InnerHtml.Replace(textBox1.Text, "<font color=\"red\">" + textBox1.Text + "</font>"); The problem is, if the user enters 'a', for instance, every single 'a' will be replaced and that's a huge problem. Imagine I have: <a href="url">link</a>! And maybe it gets worse if he enters: < or >. How can I solve this? Thanks in advance.
-
How to sort a ListView control by a column in Visual C# (in Group)?Hello, I've read the following article: http://support.microsoft.com/default.aspx/kb/319401 It's very easy and working very well on my test project. The problem is, on my project I've Groups on my ListView (Folders, HTML Files, and so on...) and when I applied the code it didn't work. Can you please tell me what I'm missing? Your help would be greatly appreciated.
-
How can I go to the last visited tab when the current tab is removed?Hi, Can you please tell me how can I go to the last visited tab (not the first one, as the default tabControl behaver is) when the current tab is removed? Your help would be greatly appreciated.
-
Application.Exit(); not working when backgroundWorker.IsBusy!Can you please tell me why is that and how can I solve it?
if (backgroundWorker.IsBusy) System.Diagnostics.Process.GetCurrentProcess().Kill(); Application.Exit();
Does the work, but I have a feeling that this is not a proper way to do it! Please help. Thank you in advance. -
How can I replace all occurance of a string except when it's enclosed with a special tag?Hello, Let's say I have a variable named: someVar which contains the following:
href wow nice this <a href="cp.com">cow duck john</a> text etc
And I want to replace: "href" with "link". I can't do:someVar.Replace("href", "link");
Because that will change:<a href="cp.com">
! So, how can I replace all the occurances of "href" when it's not part of an HTML tag? Please help. -
Set 'visible' property to 'false' for all the opened formsThanks a lot, it worked! :) But... It doesn't hide the print preview dialog of my internal WebBrowser control!
WebBrowser1.ShowPageSetupDialog();
Is there any way to hide that as well?