|
Hi.
Is there a way to log which process has accessed/changed a file?
I looked at the FileSystemWatcher class, but it dos not tell which process.
Programming is like Mathematics… you take ONE step at the time!
|
|
|
|
|
I found the solution
I'm drawing a gradient border for a control, everything is drawn but corners.
Here[^] is the screenshot, I tried to draw on top left corner but its looking odd.
Rectangle topLeftRect = new Rectangle(0, 0, borderThickness, borderThickness);
Rectangle topRect = new Rectangle(borderThickness, 0, this.Width - (borderThickness * 2), borderThickness);
Rectangle botRect = new Rectangle(borderThickness, this.Height - borderThickness - 1, this.Width - (borderThickness * 2), borderThickness);
Rectangle leftRect = new Rectangle(0, borderThickness, borderThickness, this.Height - (borderThickness * 2));
Rectangle rightRect = new Rectangle(this.Width - borderThickness - 1, borderThickness, borderThickness, this.Height - (borderThickness * 2));
e.Graphics.FillRectangle(new LinearGradientBrush(topRect, Color.Transparent, Color.Gray, 90, false), topRect);
e.Graphics.FillRectangle(new LinearGradientBrush(botRect, Color.Transparent, Color.Gray, 270, false), botRect);
e.Graphics.FillRectangle(new LinearGradientBrush(leftRect, Color.Transparent, Color.Gray, 0, false), leftRect);
e.Graphics.FillRectangle(new LinearGradientBrush(rightRect, Color.Transparent, Color.Gray, 180, false), rightRect);
e.Graphics.FillRectangle(new LinearGradientBrush(topLeftRect, Color.Transparent, Color.Gray, 35, false), topLeftRect);
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
modified on Saturday, February 28, 2009 7:47 AM
|
|
|
|
|
Hi All,
I've got a Listview control on a windows forms and it is set to details view, shows full grid lines - so that it looks like a grid. I've three columns in the list view and have 10 rows of data. My problem is, I need a way so that when the user mouse cursor is over a particular cell of data, I want a popup (almost like a tooltip) to be displayed. Once my mouse cursor is removed from over the cell, the popup should automatically close down. Of course, this popup, will have a lot of other prepopulated data within it.
Is this possible with C#, Windows Forms? If so, can you provide some ideas on how I might go about do this? I do see this on some web site, but have never seen this on a windows forms application before.
Many thanks,
Jim
|
|
|
|
|
Use ItemMouseHover event of ListView, like this
private void listView1_ItemMouseHover(object sender, ListViewItemMouseHoverEventArgs e)
{
toolTip1.SetToolTip(listView1, e.Item.Text);
}
or use ToolTipText property of ListViewItem
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Thank Xmen, but the tooltip will only show or popup when the user cursor is place over the first column in the listview first. What I want is something that will also popup when the user hovers over different columns.
Thanks,
Jim
|
|
|
|
|
Have a look at this article's[^] meesages, especially the section named Simple Solution.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
I want to display a calender on desktop [right side] if any one can help me helping link
Please keep following points in mind
- application will be running in background. [at startup]
- icon will be in Tray no tab in Task bar. when double clicked then in Task Bar.
Thanks
modified on Sunday, March 1, 2009 5:16 AM
|
|
|
|
|
Install Vista. There's a calendar available by default in the sidebar.
|
|
|
|
|
Yes, there are gadgets available that you will get it for free in Vista or windows 7.
Thanks
|
|
|
|
|
Dear Both
I am going to built a reminder application in which i have to display a calendar on desktop that's why i ask for help
thanks
|
|
|
|
|
Hi All,
I want to know how we can get the printer status/state whether it is out of paper, paper jammed etc.
|
|
|
|
|
|
Hi there,
I'm trying to read a few pixels (200) from my screen, repeatedly. Though what I have found is that
1) the Graphics method CopyFromScreen() has quite a high overhead. Whether I read 1 pixel or 1000 doesn't matter. It's always 33ms, and it doesn't even matter if I keep creating new Bitmap / Graphics objects or reuse the old ones.
2) unmanaged GDI32.BitBlt has exactly the same problem, even if I reuse all hDCs.
So, my question is, is there a fast way to obtain a few pixels from the screen? I already thought about using Direct3d, but I fail using it - and I don't even know if that would perform any better. It keeps throwing a BadImageFormatException at me, and says it's not a Win32 application (Exception from hResult: 0x800700C1). Btw, I don't even want to save to HD. I just want the raw pixels in memory to play around with them. The stuff below was just taken from an example I found.
That's the code I tried to use:
PresentParameters presentParams = new PresentParameters();
presentParams.Windowed = false;
presentParams.SwapEffect = SwapEffect.Discard;
presentParams.PresentFlag = PresentFlag.LockableBackBuffer;
presentParams.BackBufferWidth = 1280;
presentParams.BackBufferHeight = 1024;
presentParams.MultiSample = MultiSampleType.None;
presentParams.DeviceWindowHandle = User32.GetDesktopWindow();
Device device = new Device(0, DeviceType.Hardware, User32.GetDesktopWindow(), CreateFlags.HardwareVertexProcessing, presentParams);
Surface backbuffer = device.GetBackBuffer(0, 0, BackBufferType.Mono);
SurfaceLoader.Save("Screenshot.bmp", ImageFileFormat.Bmp, backbuffer);
backbuffer.Dispose();
Any hints on a quicker way to read a few pixels, all in one horizontal line, would be appreciated 
|
|
|
|
|
I don't know. You may need a Windows API function.
|
|
|
|
|
I did try Windows API. GDI32.BitBlt, which performs just as badly.
|
|
|
|
|
Can anyone tell me how can we extract triplets(subject-object-predicate) from a sentence in C#.Do we have to use wordnet for it??
|
|
|
|
|
Does this[^] helps?
Time is the best teacher; unfortunately it kills all of its students.
जय हिंद
|
|
|
|
|
Hi All;;
I WANT TO add asp TexBox To A Web Page by C# Code
Please How I Can Do That??
Thanks All;;;;;
|
|
|
|
|
zead wrote: Please How I Can Do That??
1. Wrong forum.
2. What is ASP textbox? Did you mean "asp:textbox" thing? If yes then rush to nearest book store.
Time is the best teacher; unfortunately it kills all of its students.
जय हिंद
modified on Saturday, February 28, 2009 4:09 AM
|
|
|
|
|
hi,,
i mean not html controls, server side textbox??
|
|
|
|
|
You need a book.
Time is the best teacher; unfortunately it kills all of its students.
जय हिंद
|
|
|
|
|
In Page_Load create an instance of TextBox and add it to Page.Controls :
TextBox txt = new TextBox();
...
this.Controls.Add(txt);
|
|
|
|
|
hi all
I have a BHO application (C#)
anyone knows if I can use cookies with BHO ? if so, how?
thanks
|
|
|
|
|
Hi Evryone
I looking for cool Tips & Tricks in C#
Is anyone know some good Web sit's ?
thank's
|
|
|
|
|
E_Gold wrote: Is anyone know some good Web sit's ?
Yes
Check here[^]
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|