|
Wouldn't you be able to tell from event log for the evident?
It's no good reason for that.
|
|
|
|
|
what event log can tell me?
i cant see there the incorrect password.
Even more, i don't need to see the password !!!
only the incorrect password , by that i can tell if they really
enter an incorrect password.
thank you.
|
|
|
|
|
I think it is the one under "Security" that you want.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
How about asking the question "Do you have the Caps Lock on?"
Alternatively image the computer with it's administrative login, then when you come to give the computer to customers load the original image back on.
There is no reason for needing to know other people's passwords.
The whole purpose of security is just that "security".
This means that nobody else knows your passwords and that way an accounting trail can be followed if needed and the appropriate people held responsible for their actions.
Also giving customers computers that your own employees have been using for email, documents etc is another security breach.
You always pass failure on the way to success.
|
|
|
|
|
believe me GuyThiebaut we tried everything!!!!
numlock,capslock, changing the password to only numbers.
|
|
|
|
|
I get that alot where I work and it always comes down to the user not entering the correct password for the domain that they picked.
|
|
|
|
|
believe me it ain't a domain issue.
|
|
|
|
|
I have a GIF animation which i want to paint in a picturebox. I know that a picturebox is capable of displaying GIF animations when you preload them in the designer etc (i have tried it). But I want to paint it (DrawImage it) on the picturebox control at runtime (I dont want to assign an image directly as it wont work for my project). Is there any way apart from using a timer to alternate between the various images of the animation. Thanks for all the help!!
|
|
|
|
|
Wow - that's news to me. I've never seen a picturebox play an animated gif and I know there are CP articles on how to get one to play in c#.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Nope, just checked, animates gif in both .Net 1.1, and 2.0. I we never knew...
My current favourite word is: Bauble!
-SK Genius
|
|
|
|
|
Anyway, had you looked, im sure you would have found:
System.Drawing.ImageAnimator.Animate(Image, onFrameChanged);
and
System.Drawing.ImageAnimator.UpdateFrames(Image);
Animate will use the animations of timing, and call you Frame Chenged event handler (in this case called 'onFrameChanged'), when its time for the next frame.
And UpdateFrames will just move on to the next frame, regardless of the time.
Google them to find out exactly how they work.
My current favourite word is: Bauble!
-SK Genius
|
|
|
|
|
Yes picture Box will display animated GIF. I have been doing this since Vis 2003.
|
|
|
|
|
But how can you help me how to display animated gif in picturebox for windows mobile 6 using C#
Thanks in advance
|
|
|
|
|
I have no experience with Windows Mobile 6.
|
|
|
|
|
Check out this article Strip Images From Animated Gif[^].The article shows how to access a specific frame in gif image. So what you need split the source into frames ,and show them separately using timer ...
|
|
|
|
|
I'm looking at implementing a Collection object for the objects exposed by my class, but I'm thinking: why not just offer a generic List<t> instead? Is there really any reason to offer a Collection anymore?
|
|
|
|
|
I guess not unless you want to add some sort of custom behaviour.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
|
|
|
How... odd. I am not getting this warning, although my public class definitely returns List<t>...
|
|
|
|
|
Wonders never cease. I had no idea the Code Analysis Tool for Managed Code was hidden there in Visual Studio.
Now I'm afraid to turn it on - the flurry of 'Don't's will surely set me back another week.
|
|
|
|
|
Never heard of that.
That article doesn't present any really compelling reasons why it should be followed.
And anyway it doesn't change the basic question.
Now to go review my code and see where I violate that rule...
|
|
|
|
|
It really depends on what you need to do. If you need to add custom behavior, then you do need to write your own collection. However, even by writing your own collection you can still derive from one of the generic collections. Also, the recommendation is to only use the List<T> class internally; instead you should return a Collection<T> or a ReadOnlyCollection (which you can get from List<T>.AsReadOnly).
|
|
|
|
|
I have a C# class, say PhoneControlX, which is compiled into one DLL and referenced by both managed .NET and Unmanaged COM client (C# Window form and VB6 respectively). Via COM Interop, PhoneControlX implements IPhoneControlX and IPhoneControlXEvents to expose a couple of methods and one event, CauseCallOffered, to VB6 event sink. The C# Window form invokes methods and receive the event without any problem, while the VB6 works fine on method invocation only but fails on event sinking.
Specifically, PhoneControlX registers itself to PhoneControlServer, a remote object gotten via Activator. When a call comes in, PhoneControlServer will invoke CauseCallback to fire the event, PhoneControlCallback and hence PhoneControlCallbackEventHandler. However, when the client is VB6, PhoneControlCallbackEventHandler is never invoked.
Part of the code is as follows:
===============================
[ClassInterface(ClassInterfaceType.None)]
[ComSourceInterfaces( typeof(IPhoneControlXEvents) )]
public class PhoneControlX : MarshalByRefObject, IPhoneControlX
{
public event PhoneControlXEventHandler OnCallOffered;
...
public bool Connect()
{
BinaryServerFormatterSinkProvider serverProvider = new BinaryServerFormatterSinkProvider();
BinaryClientFormatterSinkProvider clientProvider = new BinaryClientFormatterSinkProvider();
serverProvider.TypeFilterLevel = TypeFilterLevel.Full;
IDictionary props = new Hashtable();
props["name"] = "RemotingClient";
props["port"] = 0;
_HttpChannel = new HttpChannel(props, clientProvider, serverProvider);
ChannelServices.RegisterChannel(_HttpChannel);
_PhoneControlServer = (IPhoneControlServer) Activator.GetObject(typeof IPhoneControlServer),remotingURI);
_PhoneControlServer.RegisterCallback(this);
}
public void PhoneControlCallbackEventHandler(object sender, IPhoneControlEventArgs e)
{
PhoneControlXEventHandler xe = new PhoneControlXEventHandler(CauseCallOffered);
AsyncCallback acbCauseCallOfferedComplete = new AsyncCallback(CauseCallOfferedComplete);
xe.BeginInvoke(e,acbCauseCallOfferedComplete,PhoneControlOperation.CallOffered);
}
}
public class PhoneControlServer : MarshalByRefObject, IPhoneControlServer
{
public event PhoneControlEventHandler PhoneControlCallback;
...
public void RegisterCallback(IPhoneControlX x)
{
this.PhoneControlCallback += new PhoneControlEventHandler(x.PhoneControlCallbackEventHandler);
}
...
public void CauseCallback(IPhoneControlEventArgs e)
{
if(this.PhoneControlCallback != null)
PhoneControlCallback(this,e);
}
}
I've worked on this problem for almost one week.
Any hints, directions or help is highly appreciated.
modified on Saturday, December 22, 2007 3:13:18 PM
|
|
|
|