Answer Questions
AnthonyS CPU Utilisation Question
Hi Jonathan and team. I am using the release version of the Capacity Manager tool and noticed an odd result that I thought you might be interested in. We were looking at using the Capacity Manager tool in anger today on my current project to understand what happens to CPU loading when we have GC’s with differing number of CPU’s in the same Active Directory site, the site hosts Exchange 2003. We created an Archite ...Show All
Monkan How do I add windows form controls without setting the positioning or location
Hi, How do I add windows form controls such as Textbox, Labels without setting the positioning. Is there something like a Flow Layout in C# without creating my own custom object to achieve this Thanks. Yes you have to create one or implement your own layout manager, because .NET 1.1 has no control with these features. Here, try this articles: Implement a layout manager http://www.csharphelp.com/arch ...Show All
SR20 using keywords
Hi everyone, I have some doubts about the usage necessity of using keywords. Instead of using this keyword, it is enough to only add the packages into our Assembly(DLL files), so inspite of this, why do some programmer do both of them(add the packages into Assembly and also use using keywords for these packages). Thanks, Mert Hi, I'll show you with an example why the keyword using is useful: //not using the keyword "using" System.Window ...Show All
D Wagner observer pattern vs delegates and events?
I am just starting to get a handle on design patterns and C#. Does anyone have any advice as to when use the observer pattern over Delegates and/or actually registering a .NET event. My guess would be that a simple ICustomObserver interface and textbook examples of the pattern would have less overhead than the formal .NET approach Delegates seem to become much more useful when you want to pass a type safe function pointer to some object ...Show All
Ayman_Hdaib How to catch windows messages in normal class
Hi, During the development of a project with threads i was supposed to use windows messages. I know how to catch windows messages in forms, but not in a normal class. Can anybody help me with this problem With kind regards, Jeroen Olie what u r meaning about window message -- is this 1. Showing Message box. 2. Catching Exception. 3. Events. or any other I’m sticking my neck out here, but I’m not sure w ...Show All
angka XmlInclude works but now my objects dont serialize
Hey all I have an object that contains a strongly typed array of sub-objects. I have marked all of the objects as serializable. However initially it wouldnt serialize. So I found online that if I use the XmlInclude attribute that will fix the problem, which it sort of did. It serializes now and the basic object comes across the wire (with web services) just fine. The collection is there and has objects however all the objects are null. Any ...Show All
DaveInAZ string.Split()
I have an array with seperators: string [] operators = { " LIKE " , " NOT LIKE " , " < " , " > " , " <= " , " >= " , " in " , " not in " , " is null " , " is not null " }; I want to split a string (a query) but after the split I want to know which seperator of the array was used. Can someone help me with this th ...Show All
Vlash Capturing KeyPress "Always" !!
Greetings... My Form needs to capture the KeyPress and KeyUp events. I did set the KeyPreview property to true and it works almost all the time ! When the application starts, it doesn't work... I fist need to touch something (i.e. give the focus to a control) so that the key press and up events could be treated properly. How can i go around this Thanks ! Acoquinar StanScott wrote: The best way I ...Show All
RichardGreenwell And 3rd
Hello.I have 2 question 1) How I can move a button (or picture) in the form.Example: "The user moves a button from the bottom to the top of the form". 2) If I have a form ( 800x600 ) how I can make an animation (with DirectX or something..) with the dimension: 90x30 (for example) in the center or in the bottom of the form n0n4m3 thanks for the code but: 1 - How to make that button to move ...Show All
Peter986 Coming soon: HD DVD Interactivity Jumpstart
Some people have been asking about tools to help author HD DVD interactivity. Microsoft is planning to post some utilities in the next few weeks that we're tentatively calling "HD DVD Interactivity Jumpstart". This software will include some utilities to help you view HD DVD interactivity. Regards, Steve Geffner Microsoft Awesome!!!!! ...Show All
ika Exchange performance
Does WDS index email informartion directly on an Exchange Server and thereby impact performance or can it be forced to index the local ost file only Is this configurable - perhaps by Group Policy Does Outlook have to be in cached mode for WDS to work at all Does WDS make any use of Exchange's own store indexing Is this part of WDS based on Lookout What are the differences Thanks! Hi Steve, ...Show All
Psilent Dev DLL Wrapper generator
Is there a tool that I can use to generate unmanaged DLL wrapper i.e. [DllImport("kernel32.dll")] public static extern void CreateFile(.... Check out http://www.pinvoke.net/ . It has a huge list of DllImports, and gives you a managed alternative where appropriate. ...Show All
dlj2007 Where do I declare variable which can be accessed by the whole project?
Hi, I have couple of forms and couple of classes in my Project. Where do I need to declare variable for my project so any part of application can access that variable I used to do in modules in VB6 but have no idea how to do it in c# You need to think in terms of objects when using an OOP language such as C#. If you need something that all other objects can get hold of, then make that thing an object als ...Show All
Hello for u Developing Windows Screen saver with Flash movie file using C#
Hi Everyone, I am Mohan Giri. I am trying to develop screen saver with flash movie file using C#. Actually what i did is I used the Shockwave Flash Activex control in the form and called the movie file using the control. I wrote C# codings to stop the movie file running when Keyboard and Mouse events occurs ...Show All
alfieinsa Cryptography
System.Web.Security; string value = "3131" in a web app. this function FormsAuthentication.HashPasswordForStoringInConfigFile ( value , "sha1") encryptes into a fantastic string of more than 20 meaningless characters.. I tried the same thing in windows application and it doesn't work. System.Security.Cryptography doesn't have something like that... anyone out there knows and equivalent to this function ...Show All
