Answer Questions
gmthut Shell32: problem with file handles - CLR does not close them
in my app i monitor the filesystem for changes with FileSystemWatchers. When the change is detected the app performs some actions using Shell32 to obtain information from the filesystem. now the problem is that apparently the CLR not always closes the file handles immediately. this is rather annoying to the user because he's unable to change (write, delete, rename) these locked files or directories. the code i use is more or less like t ...Show All
niketu Difference between Multithreading and Asynchronous programming
Hi, Please answer my question: "What is the difference between Multithreading and Asynchronous progamming " I have read many articles but couldn't get correct explanations. Thanks and Regards, ChatanyA Agrawal Multithreading is different parts of a program running, typcially called threads. Asynchronous programming uses threads to kick off a piece of code. So asynchronous programming relies on multithread ...Show All
eza Get Random Row From Table
Hello. All other questions that was before i solve. Thank you all for ideas. Taday i have other problem :) i have Table "PLAYERS" i want receive only one row from it but it must be randomly choosed AND obey special createrias (Field1 equel to 1 , Field2 more than 76 something like this) before i used dataset and it was easy DataRow [] NotPlaying = dataSet11.Tables["PLAYERS"].Select(Creteria ); if (NotPlaying.GetLength(0) != 0 ...Show All
Mikunos Casting an enumeration that has a defined type..
public enum foo : ushort { foo, bar } ushort test = foo.bar; Cannot convert from 'Test.foo' to 'ushort' Sure, I can make variable of type foo, but I'm encoding the value to a network stream, so I want it as a ushort. The thing is, I specifically told the compiler the enum is of type ushort, so why do I have to typecast it Right. The underlying type specification for the enum only specifies the inter ...Show All
Wiltek Ghozali what is DataBindings?
some classes have a databining property, but i still dont know what is it Databinding is the ability to link together a value in an object - could be a DataSet, custom business object, etc. - to a visual element such as a TextBox. If the visual element is modified, the underlying value is modified and vice versa. You can find a roadmap to Windows Forms databinding here: http://support.microsoft.com/default.aspx scid=kb;en-us;Q31348 ...Show All
José Marques Threads problem
I have moved the call to Renderloop to the form's Shown event and now everything goes as intended - except that it doesn't. As long as I have breakpoints, my time display gets updated, but as soon as I remove the breakpoints it doesn't anymore .... One issue is that the main thread, which is responsible for painting the control, is waiting for the other threads to end. While the main thread is blockin ...Show All
LOUIS P G BANCHE Where is Object Test Bench in Beta2 (VSTS)?
I have installed VS 2005 Beta2 Team System - the full suite. And I can't find Object Test Bench any where. I tried right-clicking on the classes in class view, I tried right-clicks on the Class Diagram's classes there is no entry in the context menu to invoke a class or method. I am using the C# Windows Forms Project as well as looked inside a C# Web Project. Is there a registry tweak to enable this feature Or VSTS version does not ship with th ...Show All
Madern file.exists does not check file on a network
Hi friends am using VS2005 and C# .i have method which accepts a file path and if its valid it reads text from that file and display it in textbox (am doing this asp.net page). this works fine with files on my machine but when i pass a network drive file path File.exists always return .F. !!! why and how can i read files from a mapped drive Yes my user account has full rights read/write files from those mapped drives . Thanks for ur advice. ...Show All
vhrao Garbage collector
I have been read about garbage collector and i don't clearly 'stack frame'. And the way garbage collector in stack and heap. If you know, please show me. Vu, thanks a lot. http://msdn.microsoft.com/msdnmag/issues/1200/GCI2/ is a fine article on how Garbage collection works. Thanks for show !!! ...Show All
Eugen2 InvalidCastException while using IL and Delegates
I'm currently trying to find out more about delegates and dynamicly writing methods using IL in C# 2.0, but now I got a InvalidCastException in the following code, and I don't know what I'm doing wrong. See the code below. class DelegateILTest { private delegate Object ObjectConstructor(); private static ObjectConstructor CreateObjectConstructor() {   ...Show All
AlAmri Doubt in TypeCasting
Hi I have a text box to get data type from user. then i have to change my data type according to the type in text box. int a=10; textbox.text="long"; long b=(textbox.text)a; I tried this but i cant do anyway. can you anybody tell me the answer for it Hi Vijaye, Thanks for interest in my post. I want to develop simple application like get any type of value from text box for calculating. Actual need is I ...Show All
Parmenides URGENT! Runtime error
I've got to demo a project for my degree tomorrow and after running my final build on other machines it seems it only works on mine. The error is: EventType : clr20r3 P1 : userfriendlylatex.exe P2 : 1.0.0.0 P3 : 447b4557 P4 : system.windows.forms P5 : 2.0.0.0 P6 : 4333aefa P7 : 1979 P8 : 2 P9 : pszqoadhx1u5zahbhohghldgiy4qixhx This seems to be an unhandled exception but how do I find where this is Really apprecaite any help. ...Show All
Francisco Lopez Installation Problems with your product
ok, so i decided to install your desktop search (WDS) thing. all good, it installs. think it is MSN Search Toolbar with Windows Desktop Search . so, i go for coffee and i feel brave and decide to install you latest beta. this is Windows Desktop Search 2.6.5 beta (KB911993) and guess what......... It un installs MSN Search Toolbar with Windows Desktop Search and the tries to install the beta and fails with error about Update.i ...Show All
PaulWelby Mistake in C# 2.0 specification?
" anonymous@discussions..microsoft.com " <David M. Kean@discussions.microsoft..com > wrote in message news:44151354-d6b6-4140-9fba-6c46b5a50fd3_WBRev2_@discussions..microsoft.com ... This post has been edited either by the author or a moderator in the Microsoft Forums: http://forums.microsoft.com I just reproduced this also. This could be considered a bug in the compiler (especially if t ...Show All
Alan Churley Windows Service - multiple instances
I want to run multiple instances of the same service on one machine. So I wrote a service installer that looks for three parameters which can be passed in via the installutil.exe. So far so good, I can install multiple instances, but of course it makes no sense that they all do the same and use the same configuration. So I thought I could use the service name (property ServiceName) in the service itself to e.g. look for a configuration secti ...Show All
