I have a dgv that is created programmatically and bind it to a datatable. The Columns/Cells are all text.
I insert an int (as a string) into a cell when I need to and use that int to lookup another datatable when I need to. Works well
What I would like to do is dislay an image if the cell contains an int rather than the int itself.
I know I can make the columns concerned image cells and I presume I would then need to record the image name in the datatable rather than the int which is what I want. I thought of using the cell.tag to hold the int but I need that field for another purpose. I'm not even certain that is what I want because I need to store the int, not the image name.
Is there someway of using the cellformating event to convert that cell into an image cell and show an image? I think it should be possible but can't find the right code.
I want to have a text file in which one can do copy and paste to only those users to whom i would have given the permission.So i want to disable copy and paste button to restrict from other users. How could I do this in c#
I have a problem with a windows service i have created. I am using SqlDependency to notify my service of changes in a table in a database. When I compile this in Debug mode everything works fine. However when I compile in Release mode I am getting problems. The service runs fine until the table in the database changes and then the service just hangs. Does anyone have any ideas on why this might be occuring in the release build but not the debug build?
You can't do that. Either set the type to a file download ( in which case it will pop up an open/save dialog, or otherwise, you're writing a PDF to your page, in which case, you're showing a PDF, which will replace any HTML, and you shouldn't be generating any. I do a response.End after code like this.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
I'm using the function SHGetFileInfo from shell32.dll to get the icon handle for a normal file, but i don't know how to get the ghosted icon for a hidden file.
Anyone knows if there's a way to get the ghosted icon?
Thanks in advance
Well, I use IShellFolder::GetAttributesOf to find out if a file is hidden. The problem is that I don't know if there's an ghosted icon in the system imagelist, or if I have to make the ghosted effect for the icon myself.
When I tried to insert a big picture into a small picture box, only a small part of the picture was shown in the box. How can I display the whole picture into the picturebox without changing the box size.
I would like to know how I can estimate the total physical memory usage (as well as availability) for the entire system, so I can display the usage figures in my application. Is there a class in the .NET framework I can use? If not, is anybody aware of any libraries I can download that contain such a class?
Furthermore, I would like to be able to invoke the GC and collect garbage from all processes running on the system. Again, I would appreciate it if someone could point me to a class that provides these facilities. I have tried using the GC class, but I can only collect garbage for my own application.
I am working on a Windows based project in Visual Studio.net.
1) I would like to store some documents (like Word, Excel, PPT) in SQL server 2000 and
2) Then show its shortcut as shown in a desktop in a listview.
3) When we click on that shortcut the file should open.
Can somebody please help me with the above 3 scenarios.
-- modified at 1:43 Monday 2nd April, 2007
Last Visit: 31-Dec-99 18:00 Last Update: 13-Jun-21 2:14