Hi, I have a listView control to display some command execution results. One of the features I need to implement is to print out this control. I have been investigating on System.Drawing.Printing but not found things I could use (directly). Can someone help me out and tell me where to start it? Thank you very much!;)
D Shen
Posts
-
Print function -
How to activate event procedureleppie, I found the problem, it was so stupid.....(typo:-O)
-
How to activate event procedureleppie, Here comes a minor problem :-O When I compile the code, I got "...does not contain a definition for..." this button1. I followed the order you post here, but....:~ Please help!!
-
How to activate event procedureThank you, leppie. It really helps!:laugh:
-
How to activate event procedureHi Leppie, I am not sure if I understand what you mean by :confused: leppie wrote: First derive from Button, then add the following: public void CallButtonclick() { base.onclick(this, EventArgs.Empty); } Can you please give more detailed explaination? I really appreciate that!!;)
-
How to activate event procedureHi, I am looking for a way to activate an event procedure, such as combox_clicked, without really clicking on the control . I remember in VB we can do thing like that (combox_clicked = true). Just wonder can we do this in C#? I appreciate your inputs.
-
Good books or reference for Multithread programming in C#Thank you, Leppie.:laugh:
-
Good books or reference for Multithread programming in C#Hi, I am looking for a good book or reference about multithrad programming (Thread.Pool...) in C#. Your help is appreciated!:)
-
Thread in C#Hi, I have some questions about thread programming in C#: 1. Is there any number limitation for threads 2. When multiple threads are initiated (started), each returning an object array, is there any mechanism I can utilise to check all the threads been finished? What if any of them throws an exception? :confused: Thanks!!
-
Event trigerleppie wrote: foreach (Control ctrl in Controls){ TextBox txt = ctrl as TextBox; if (txt != null && txt.Text == "") validate = false;} Thanks for the code. Do I still put the code in each text_changed event? Thanks!
-
Event trigerYes, it is neat and does save me lots of typing:-O But if I would like to do little bit different for each text_changed event, how do I do? Can I attach more than one method for each event? Thanks!!
-
Event trigerYes, it is neat and does save me lots of typing:-O But if I would like to do little bit different for each text_changed event, how do I do? Can I attach more than one method for each event? Thanks!!
-
Event trigerHi, I have three TextBox and one Button controls. I disable the button when the form loaded and would like to make it enabled when each textbox has input. At this point, I put following code in each textbox_textChanged event:
if(textbox1.text.length!=0 && textbox2.text.length !=0 && textbox2.text.length !=0) button1.enabled = true;
Is there any other way that I don't have to duplicate above codes in each textbox which I would like to check? I appreciate it!!:laugh: -
Dynamic arrayHi, Can someone please tell me how to make a dynamic array in C# or similar data storage type, like VB List? Thanks!:laugh:
-
Break program flowThank you. Since I am new to C#, can you please show me how to throw an exception and catch it? Thanks!
-
Break program flowHi, My application will collect different parameters from user input. Once the "Execute" button is pressed, the parameters will be passed to related methods for exection. I try to figure out how to stop the program flow (not close the application but ask input for missing parameters)if I find some parameters missing (something like Exit() in VB) Can someone please tell me how to do this? Thanks!!:omg:
-
string tokenizerHi, I would like to read/write a specific format to a flat text file. This format will contain delimiters like |, or space. I have been looking at the String class in C# to find somthing like string tokenizer. No any luck. Can someone help me out? Thanks!
-
Recreate My Network PlaceHi, Through "My Network Place" in Windows Exploer, we can see the entire network hierarchy. I am looking for a way to recreate this hierarchy in C# and display it in treeview. I have been seeing lots of examples for Directory, DirectoryInfo class to get local information. But how about network? I appreciate your help!!
-
Remote Directory InformationI will give them a shot,guys!! Thanks!:laugh: