|
Is there some sort of XOR painting that uses a Graphics object and/or takes advantage of clipping?
It seems like I'm stuck using ControlPaint.DrawReversibleFrame for drawing XOR rectangles, and it'd be a minor pain to have to write some intermediate code to handle the clipping and draw line segments...
But then again, maybe I'll just not end up using XOR mode in the end.
|
|
|
|
|
No, there isn't. But you can transform the area (invert it or whatever) using a ColorMatrix, or do direct pixel access.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
hi !
i have to delay incoming network packages.
unfortunately there are several packages within one millisecond.
i use the highPerformanceClock (by Ryan Seghers) to timestamp the packages. (it uses the kernel32: "QueryPerformanceCounter")
so how can i trigger the package-forwarding (after a delay of ex. 200ms)?
the threading.timer granularity is only 1ms.
PLEASE HELP !!!
andi
|
|
|
|
|
|
hi !
that would be 200 milliseconds.
i would need something like 0.2 milliseconds.
andi
|
|
|
|
|
oh. i see what you ment.
... i wrote that a bit confusing.
i ment:
the first package comes in at a certain time + lets say 20.5 ms
then another package comes in at
the same time + 20.8 ms.
so there is only a difference of 0.3 ms.
but there is no way to delay the thread such a short time.
but anyway i chose another way to realise my project. because of the unpredictable thread-switching-times.
but THANK YOU !
andi
|
|
|
|
|
|
MeisterBiber wrote:
so how can i trigger the package-forwarding (after a delay of ex. 200ms)?
the threading.timer granularity is only 1ms.
Beware: Windows is not a real-time OS, and C# do not provide predictable code timing (because your code can be suspended by the GC).
You can do it on anything you choose - from .bat to .net - A customer
|
|
|
|
|
I have a client app written in C#. I'd like to have a control that displays data in a table (but that is not linked to a data source). I'd like to have several of the columns c ontain checkboxes.
I tried putting the data in a DataTable and attaching that table to the DataSource property of a DataGrid. This works BUT I need to be notified whenever a user clicks the checkbox. The DataTable events (Column_Changing and Row_Changing) only seem to notify after the clicked cell has lost focus. Can anyone think of a work-around? Or another approach?
Thanks,
strongbad
|
|
|
|
|
how can i show treeview as shown in MSProject 98/2000....need to create two DataTable...parent and child...??
-bhavin
|
|
|
|
|
I am deploying an object manager as a remote object under IIS. It has to be under control of IIS to gain addressability to a static class that is running there.
I setup my programs as per the Framework SDK and put my object in the virtual server bin directory. I changed web.config and specified my remoting object. I have my object register the channel and my client trying to access it. I am now getting a disconnect when trying to reach the object under IIS. IIS reports that I am getting a security access problem with my object...but it states it is in my machine.config file. The config file section it points to is:
add assembly(*) (pretend you see xml braces around it)
and appears to be in definitions for compilation.
Why???!!! I cannot figure this out and I have tried everything to kill any security at all!
Secondly: it seems that what I need is a client activated object. Does and object under IIS allow CAO objects? The framework doc indicates 'the object will load on the first (webbrowser) access of the website' (paraphrased) So does anyone know if CAO under IIS is even possible????
Thanks for any quick responses !
_____________________________________________
The world is a dangerous place. Not because of those that do evil, but because of those who look on and do nothing.
|
|
|
|
|
I want to create COM+ sample for myself but I got some problems. I hope somebody could give me some hints.
First I add ObjectPooling ,but it does not work for me in my application.And it does not reflected in Component Service and its default value is still there.I add it as an attribute to my class like this:
[ObjectPooling(MinPoolSize = 5 ,MaxPoolSize = 10, CreationTimeout = 4000)]
Second problem is this: I create Setup project and add my application to it.The problem happend when I want to uninstall the application.The COM+ object does not removed from Component Service.Should I do anything in my code to do it?And the last question is ,isn't it necessary to shutdown the object when I close my client application or it has to be in its previous mode,or this is done automatically?
Mazy
No sig. available now.
|
|
|
|
|
I have a problem in removing all the checked items in a ListView, here is my code:
int count = myList.CheckedItems.Count;<br />
for ( int i = 0; i < count; i++ ) <br />
{<br />
myList.Items.Remove(myList.CheckedItems[0]);<br />
}
it's very simple, right? why it doesn't work properly?
Thanks in advance.
|
|
|
|
|
I know now. do it from the backward.
|
|
|
|
|
You couldt try this:
ArrayList checkedItems = new ArrayList(myList.CheckedItems.Count);
foreach(object item in myList.CheckedItems)
{
checkedItems.Add(item);
}
foreach(object item in checkedItems)
{
myList.Items.Remove(item);
}
It may work a bit slower, bu you don't have to worry about changing indexes.
|
|
|
|
|
I have myPrincipal.IsInRole("DOMAINNAME\\Project Dispatcher")
it always returns false and I know I'm in that group cause I added it using RDC
How to get it to work
Its a windows 2000 advanced server does it need to be rebooted to reset the groups. It hasnt been reset since I created and managed the groups.
even Administrator doesnt work which I have been part of since day one
Nick
Ok so I did IsInRole(WindowsBuiltInRole.Administrator and it works. whats the deal
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
Do you do this in your windows service that you asked about it? If you do it there,mayne you set that it runs as LocalSystem,or something else.
Mazy
No sig. available now.
|
|
|
|
|
nah this is in a test console application
I get the WindowsIdentity and Prinicpal just fine but the IsInRole from domain is foobar'd
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
Well,I'm not sure,but in MSDN it say you have to pass group name,not domain+domain. Maybe thats the problem.
Mazy
No sig. available now.
|
|
|
|
|
I'm not passing domain+domain
DOMAINName\GROUP
doesnt work
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
Ista wrote:
I'm not passing domain+domain
I mean domain+group.
Mazy
No sig. available now.
|
|
|
|
|
Ok so it works kinda
But 2 groups I added myself to are not showing up. Does the Doman controller have to be rebooted after adding a user to the group, or is there a way to reforce AD to do a refresh
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
Ista wrote:
Ok so it works kinda
Why kinda?
Ista wrote:
But 2 groups I added myself to are not showing up. Does the Doman controller have to be rebooted after adding a user to the group, or is there a way to reforce AD to do a refresh
It does not shown where? As much as I remember it doesn't need rebooted for only adding user and groups.At least when you refresh Users or groups in User and Group Domain controler it should be shown there.
Mazy
No sig. available now.
|
|
|
|
|
Ok well it works mysteriously now.
The group i added myself to 7 days ago is showing up
the group idded 25 hours go is not nor is the one 2 hours ago
I spoke to an admin friend of mine and he said to create ou and add them to OU's
nick
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
If you have some mail clients how I can understand which is my default mail client?
|
|
|
|