|
They're usually just modeless dialogs moved from outside the screen to (screen - left | screen - height)
Take a look here
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
|
|
thanks guys
|
|
|
|
|
How to set monitor application activity?
Need to have a list of all started applications!
If it is possible, please tell me... Or say in what way I must see!?
-- modified at 15:17 Monday 10th April, 2006
|
|
|
|
|
Sergey Gorchichko wrote: Need to have a list of all started applications!
System.Diagnostics.Process.GetProcesses
This question has been answered many, many times on this forum. Next time use the forum's search functionality before asking.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: How 'bout a little guitar now?
The apostle Paul, modernly speaking: Epistles of Paul
Judah Himango
|
|
|
|
|
I know this namespace! But I can't understand the best algorithm to update the list of processes!!!
|
|
|
|
|
This is an issue in the sense that it's irritating me, but i'm sure it was designed as a feature. When using a DataGrid bound to a DataSet with sorting enabled, the scroll bar will tend to jump around . Here's what I'm trying to do. I have a DataGrid that will be displaying anywhere from 150 - 500 individual rows. These rows are constantly added/deleted/updated on a one second loop. The issue is when the user has scrolled down the list and clicked on an item. If they try to sroll back up then when the DataGrid updates with new rows, it will jump back to the last selected row. I've tried overriding the GridVScolled message and stored the origal position and then reapplying the position after sort. This works but if the row data changes then the scroll bar will jump to follow where it went. What I'm trying to get is a dumb scrollbar. I want the scrollbar to stay at Vertical position 16 if that's where the user put it no matter what the sort or active cell is. Any idea's where I should be headed on this. Thanks for the help.
Pseudo Quasi Coder
|
|
|
|
|
Can someane explain me how can i use a custom font that was added to my system in a windows forms application for .NET framework 2.0?
The font is available in my system but it isn't available in Visual Studio. Is it that i can only use fonts already contained in a assembly pre-packaged with the .net framework?
I wasn't able to find any information about fonts and windows forms on the web.
Help please!
|
|
|
|
|
|
I have a hashtable in C# that contain unique keys, but not unique values. Is there a way for me to compare the values in the hashtable to check for the ones that are the same? Thanks.
|
|
|
|
|
Yes, you can use the hashtable's Values property to iterate through the collection of values.
/ravi
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
|
|
|
|
|
When I code it up, do I need to get the first value and then compare it to the other values as I iterate?
object testvalue = hashtable.value;
while (movenext())
hashtable.value.equals(testvalue);
I am looking for a way to compare the values to each other as I iterate instead of having to specify the value that I am looking for. I you know of any code samples that I can look at, thanks.
|
|
|
|
|
One way to do this is to copy only unique values into an ArrayList . If the size of the array list is < the size of the Values collection, you have duplicates. This seems the most efficient way (single-pass) to check for dupes.
/ravi
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
|
|
|
|
|
Ravi Bhavnani wrote: One way to do this is to copy only unique values into an ArrayList. If
Or add all values as keys to another Hashtable That will save you quite a bit
|
|
|
|
|
leppie wrote: That will save you quite a bit
Hmmm, actually a Hashtable is more expensive than an ArrayList , so I don't see how it will save you anything, since you can make similar calls (i.e. Contains() vs. ContainsKey() ) to check for membership.
/ravi
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
|
|
|
|
|
Ravi Bhavnani wrote: Hmmm, actually a Hashtable is more expensive than an ArrayList, so I don't see how it will save you anything, since you can make similar calls (i.e. Contains() vs. ContainsKey()) to check for membership.
Contains() for Hashtable is O(1) where ArrayList is O(n), also using the indexer of the Hashtable you dont have to check for the existaence of the key, you just overwrite it. This operation will take the same time as what adding each key to an ArrayList would be (excluding checking for duplicates), hence the Hashtable will be much faster.
|
|
|
|
|
What is the use of KeyStream and how it is used in hiding the message ???
AMAN ANWAR
|
|
|
|
|
|
I have a label with a trasparent background and a vertical scrolling bar. With the scrolling bar value, I set the top position (Y coordinate point) of the label to reposition it on scrolling event. When the scrolling begins, the form background flickers and it looks very goofy. Anybody have a solution for this problem?
|
|
|
|
|
If you're using .NET 2.0 you can try setting the DoubleBuffered property of the form to True.
If you're using .NET 1.x you will have to set this in the form's contructor manually using Form.SetControlStyle (I think that's the right method).
This might or might not work, chances are that you're moving the scroll-bar too fast for the computer to draw it flicker-free but using DoubleBuffering may help.
Ed
|
|
|
|
|
Changing RightToLeft works fine with most forms, but try it with a form displayed with ShowDialog() and it vanishes!
How to change the RightToLeft property of a modal form? I would settle for it vanishing if there was a way to get it back without losign any data (text box contents etc.).
Any ideas?
|
|
|
|
|
To answer my own post, I did find a solution of sorts - although it is a hack.
The form ceases to be modal if RTL changes and drops out to the next line of code. But it still exists and you can make it modal again, still preserving control data. These requires a loop and a means of breaking the loop. It's clunky, but I have not yet found another way.
Brian
|
|
|
|
|
Good question and after all this time, I fell into the same problem.. I didn't understand your workaround though, can you explain more?
Thanks mate!
|
|
|
|
|
this.RightToLeft = RightToLeft.Yes;
this.DialogResult = DialogResult.None;
Should do the trick!
|
|
|
|