Answer Questions
MarkBell How to get the path of cached image file?
i want to get the image file currently shown. because the target image content changed every time the client read. Do you cache them yourself, do you work with WinForms or WebForms, can you post relevant code You can find the browser control's last navigated document Url by subscribing to the DocumentComplete event. You could then use WinINet's Caching methods FindFirstUrlCacheEntry and FindNextUrlCacheEntry with the Ur ...Show All
Gerd71 Is it possible to make a subitem on a listview clickable?
Hello, I am wondering if it's it possible to make a subitem on a listview clickable (on detail view). Many thanks. No, the default managed ListView control class doesn't support that, but there are a lot of extends of the ListView control the simplest and best i know is: In-place editing of ListView subitems . foreach (ListViewItem item in this.listViewSpeedDialGroup.Items) Dear Angry Coder: ...Show All
Jacob Christiansen Future application support
Can anyone tell me whether there is a roadmap for support of further applications by SCCP As I have asked in another post - when can we expect the SDK Regards, Paul Paul hi, We are currently planning the next release of SCCP. We are in the process of specifying possible new workload support and the availability of the SDK. Most likely an announcement about the next release of SCCP will be made at the ...Show All
mikeatroundhere dropdown and textbox
hi, i have this code. it populates the dropdown from database. whenever the user selects from the dropdown it will display the equivalent value of the text chosen. i don't know what's missing with my code it does not display the value on my textbox. private void Page_Load( object sender, System.EventArgs e) { if (!Page.IsPostBack) { //string MyConString2 //MyConnection MyConnection.Open(); string prj ...Show All
Ryan mystique Counting lines of a file
Is there a easy way to get the amount of lines a file has Without looping through every line and incrementing a variable as I am working with large files, or is that the only way I can do it Basicly, I'm looking for the quickest way to get the amount of lines a file has. Thanks. Hi Squimmy, You can do it by the following code snippet. Void CountLines() { string[] fileContents = File.ReadAllLin ...Show All
Cliff Ophalvens How to assign folder access right programmatically?
How to assign folder access right(read/write) for a specific user programmatically Thanks. OIf you are using .NET 2.0 then there is a slew of new classes FileSystemAccessRule Look on the left and you will see a bunch of related classes. Whether you're using .NET 1.0 or 2.0 this will probably be quite helpful to you as he has methods for both. Thanks for the information. How can I make it not r ...Show All
DKode Dynamically creating and displaying forms in a split container
I have created a Windows application using VS 2005 C#. I added a spilt container in the client area of the main form. I added controls to the left panel1 of the split container control. These controls work fine. I want to display other forms that I have created in the project in the right panel2 of the split container at runtime. I want to be able to create and display a form in the right panel of the split container based on events in the main ...Show All
Commali Compiler seems to fail to check the restriction of generics
Hi, The VC#2005 compiler accepts the example below, but the assertion (*) fails at the runtime nevertheless the type T is restricted to a class. The actual _t is an Int32 passed at the line (***). I suppose that the compiler should reject this code. Actually, the instantiation of generics (**) is wrong because the argument IComparable can violates the restriction "class". The compiler should detect this and reports the violation. ...Show All
Zulbaric AccessViolationException when calling an already made dll file
Hi, I have an already made .dll file that I have referenced in my C# program ,i.e., I don't know the details inside its code. when I use it in loop it works well many times , but thereafter it produces the 'AccessViolationException', it says: 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.' Please Help me ,how can I handle that exception Thanks, Aya. ...Show All
Colt Kwong Bounded lists
Do somebody know how one is supposed to do bounded lists in C# Should the NextItem be an unsafe pointer like in C/C++ or is it something else to do it in a managed mode Thank you alex it was liked lists I mean, sorry for my bad english. And thank you for your answer. I think I will work it out with Generics. I am not sure I know wha ...Show All
tiptree BT8x8 API sample code for 2005 c#
Hello, we have to develop a program that get tv signal from a TV card with BT8x8 chipset and make some operations with it .... Where could I get information about how to access this device whith visual studio 2005 c# Thanks a lot ...Show All
rishi bajaj using keywords
Hi everyone, I have some doubts about the usage necessity of using keywords. Instead of using this keyword, it is enough to only add the packages into our Assembly(DLL files), so inspite of this, why do some programmer do both of them(add the packages into Assembly and also use using keywords for these packages). Thanks, Mert Thanks very much for your reply again and now I think I kept the idea. So if we want to use any class; (for instn ...Show All
djMaurice double buffering to fix flickering ToolStripLabel
Hi all, I have a toolbar, that is, a number of toolstrip elements contained in a ToolStrip object. One of those elements is a ToolStripLabel object. I'm trying to do some simple animation of that label by changing its associated image on a regular basis in response to timer ticks. I have a bunch of GIF files as resources in my project, so I'm just using code like: myLabel.Image = Properties. Resources .someImage; This works fine, and ...Show All
ThomasDL Printing an array in C#
Hello all! I'm writing a piece of tool that generates subsequent integers in a multi-dimensional array and I want know how to I can print(printing through a printer and not onto a screen) that array. My tool is currently able to print a string, an integer etc, basically a single value. Thanks! That depends. Like I said, PrintItem does not exist, it's up to you where you put this. If it starts a process of prin ...Show All
guyinkalamazoo cannot toggle between two forms
It is a continuation of my previous thread on switching between forms. Special thanks to Craig for the code. I still have a way to go. Now I am trying to toggle between two forms of one application (WindowsApplication2). It starts out as Form1. By clicking on a linkLabel control I close Form1 and start Form2. The Form1 becomes invisible. Then I want to go back to Form1 and perhaps a few times back and forth. The following code gives me a compile ...Show All
