Answer Questions
CharlyA GDI+ Multi Thread
I am using GDI+ to draw to the graphics object when an OnPaint event occurs. However, if you draw lots of things, the form becomes unresponsive until all of the drawing is done. Is there anyway to put the OnPaint event in another thread, so the form can remain responsive while the painting occurs hi, i think this might help you ...Show All
Kamol Murodov How to use Visual Studio 2005 with folder redirection?
We have a number of developers using Visual Studio 2005 (C#) in a company where active directory/group policies is heavily used. We would like to know if there is any information on developing with VS2k5 where our My Documents folder is redirected to a UNC pathname on a server. Some of the issues we have encountered when trying this are: the default bin directory seems to always be set to be source code relative. This means we are trans ...Show All
BillatMAS Is there a way of reducing the accessibility of override methods in derived class?
Given a virtual public method on a base class, is it possible to make the override method in a derived class private so that users of the derived class cannot access the overridden method Are there any plans to support this in C# Any suggestions on how to achieve this in the meantime Thanks, Darren. My hunch is you need to refactor to an interface. . . namespace BaseLibrary { delegate ...Show All
bizbuz Figuring out parameter information
I've spent a good amount of time (5 or 6 hours) trying to write a geneic error handler for a application. I would like to have a generic error handler that would be able to figure out what parameters and their respective values so they are logged in a exception database. My company does a lot of batch processes and I believe it would be a lot easier to write a generic version as opposed to log every parameter by hand in my methods. Some ...Show All
SpaceDog evaluating variables with specific order?
I'm new to VS C# express edition, coming from foxpro for windows. in Foxpro I can write (silly example ): for i=1 to 5 ii=str(i,1) offer&ii=i*5 next for i=1 to 5 ii=str(i,1) mod(offer&ii,2) next How you do this in C# Any suggestion please! Thanks, danny If you need five variables, you create an array. int [] i = new int [5]; Then you have i[0], i[ ...Show All
BetterTrades Is the Intermediate Language a security risk?
We are creating a new product where the main value will be in the data, and there will be a relatively small amount of code that will process that data. The data will be encrypted so competitors will not be able to use it, but I'm assuming it would be a simple matter to look at the Intermediate Language and determine how to decrypt and use the data. We are considering doing this in C# but could also do it in C++, but we want to use .NET in eithe ...Show All
Jayender .v s Create a Gif animation
Hello, I want to make a gif animation, and save them to a gif file. Can someone help me to do this Buy yourself a copy of macromedia fireworks, why learn gif internals It is not posible to create an animated GIF using the standard .NET Image class and GDI+, but here is an example that read multiple image files from the filesystem and pack them in a GIF image. This is from an example for ASP.NET, but you can easy modify it ...Show All
Hath C# on Linux
Hi, How can I develop applications usin C#.NET but on Linux Best Regards, Jassim Rahma Check out MONO: http://www.mono-project.com/Main_Page ...Show All
asisurfer how do i prevent "show desktop" or "windows key+m" from minimizing my program?
hi, i don't want my program to be on "TopMost" but i also don't want it to minimize. Never. even if i disable the minimize feature, the program can still be minimized by clicking on the "show desktop" icon or pressing Windows Key+M. I'd like to prevent that. Can someone tell me a possible way to do it btw, the "show desktop" button doesn't trigger the 'resize' or 'changesize' event in the form. Thanks, I don ...Show All
Malae Is there any way to flag a block of code so it isn't reformatted by "Format Document"?
I love the VS2005 autoformatter, and I use "Edit / Advanced / Format Document" and "Format Selection" all the time. Sometimes, though, the code is much easier to read if you break the rules and put everything on one line with multiple spaces or tabs. Example: Property1 { get { return this.myClass.internalAttribute1; } { set this.myClass.internalattribute1 = value; }} P2 { get { return this.p2; } &n ...Show All
Shiru C# Windows Control
hey ppl, i am having a problem with a control, my control is a background with a label on it, then when i use my control on my form i use the on click event, and it only happens when u click the control itself and not the label, so i was wondering how can i do that no matter where u click inside the control , fires the click event. pls post me some code :( mig16 thx i have my user control and my label mouseDow ...Show All
PETER I Rfc2898DerivedBytes
I am using the Cryptography in .NET Compact Framework 2.0 but the Rfc2898DerivedBytes does not exist What am I suppose to use in order to get a Key and IV from the password for encryption if this is not available Thanks, Kenneth Lewis .NET Compact Framework 2.0 << for the smartdevices such as Pocket PC 2003 or Windows Modile 5.0 does not contain this class or PasswordDerivedBytes so I am asking what are we suppose to use I ...Show All
ShelleyPike prefix and postfix unary operators
How can I make prefix and postfix unary operators (in c++ I can write like this: TYPE operator++() //for prefix and TYPE operator++(int i) //for postfix) Hi! You can't. It's by design. You can make + and - operators, compiler will reuse them for ++ and --. I'm talking about overloading operators. I want operators ++n and n++ to do different things. In c++ I can do this: class Number { public : int a; ...Show All
Mir Mahmood Ali Khan IFilter Preview
What interface and registry settings do I use to supply the picture for the Preview box in the Windows Desktop Search window I tried adding an IViewObject2 to my IFilter DLL but it never gets called. What's the timeframe on the planned change Hi Donald, If you scroll up to Tom's reply of 12/09/05 you'll find his answer to your original question. Thanks, Bill Connors I don't have a time frame I can ...Show All
Jayaram Krishnaswamy Visual Studio 2005 Beta 2 - Partial classes and files
I like how the designer portion of a control class is in a different file as a subnode of the original. Is there a way to make partial class (that are not controls) files be subnodes of the 'original' class file For example, if I have MyController.cs MyController.AAA.cs MyController.BBB.cs MyController.CCC.cs all of which contain the partial class MyController. I would like AAA, BBB, and CCC to show up as subnodes of MyController.cs in the s ...Show All
