|
pubududilena wrote: Is there a way to get dependancies and relation in functions?
You can use sp_depends[^]
My: Blog | Photos
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucious
|
|
|
|
|
Hi guys
I don't remember where (in COdeProject) is a sample of an window form that is part oh the Windows Desktop . It's similar to "Google Desktop Sidebar"
can you write the link please ??
Thanks
|
|
|
|
|
Hi, i'm starting to learn C#.
I want to output a pause(such as "press any key to continue...") in a console application. I just need a function like "getch()" in C language. Which object and method to use?
Thanks.
|
|
|
|
|
Console.Read();
or
Console.ReadLine();
|
|
|
|
|
Console.ReadKey should do the trick.
Bye!
|
|
|
|
|
There is no ReadKey method on System.Console
|
|
|
|
|
Whoops: Console.ReadKey is on Framework 2.0 only, sorry
|
|
|
|
|
You mean i'm helpless unless downloading Framework2.0?
|
|
|
|
|
No, you're only helplessuntil you go back and read the replies properly
|
|
|
|
|
Of course not
In Framework 1.0 / 1.1 You have to use Console.Read(), as J4amieC suggested.
Bye!
|
|
|
|
|
But Console.Read() is not as getch().
I only want a single char from keyboard without echo.
|
|
|
|
|
|
I see.
I'm a begginer of C#. So far I don't know how to call a Windows API.
So I think I should learn more firstly.
Thanks all of you.
|
|
|
|
|
I see: if you want to read a single character from the user (any charachter, not an enter key press), and you don't want that character to be shown, the only way to do it on .Net 1.0 /1.1 (the 2.0 Console.ReadKey does the same thing) is to import _getch from msvcrt.dll.
You can use this code (by reinux from http://www.codeproject.com/useritems/PressAnyKeyToContinue.asp):
[DllImport("msvcrt.dll")]
private static extern int _getch();
public static int Getch()
{
try
{
return _getch();
}
catch
{
return Console.Read();
}
}
Insert this into a class and then you should be able to use Getch() to do what you need.
Bye!
|
|
|
|
|
I'm curious about DirectoryEntry.Properties["memberOf"] and "Domain Users". Let's assume that I know a little about AD and that I can properly get the DirectoryEntry to any domain user. Now, every group that the user belongs to is in the memberOf property except for one exception. "Domain Users", is it a special case? Is it implied that if I get a valid DirectoryEntry that, of course, the user is a member of "Domain Users" and therefore "Domain Users" isn't in the memberOf property?
|
|
|
|
|
Hi,
This is my first post here so please be gentle
I know it is possible to copy config files into the GAC such that an assembly can read from it based on its own location. This avoids having to partially hard code a location for the config file. However, is this good practice? What is the best approach for doing this?
Thanks in advance
P
|
|
|
|
|
Really? I thought GAC stood for "Global *Assembly* Cache"?
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
<I though GAC stood for "Global *Assembly* Cache"?>
Precisely my point, hence why I asked if this was good practice and if there was a "good" way of referencing configuration information from the GAC.
If the only solution is to hard reference the config file then that is what I have to do. However, if there is another way, then I would really be interested.
Btw - thanks for the reply
P.
|
|
|
|
|
Anyone know how to programitically switch language when the focus hits a textbox? I am writing a dual-language application and want to switch to Thai from English when the user tabs into a textbox, rather than have the user goto the language bar to do so....
Thanx!
Jon Humphreys
ActivePlanet Software
Bangkok, Thailand
|
|
|
|
|
I have create a storage procedure Insert_Data in Oracle, which return a parameter new_ID.
Now I use the OledbCommand to execute the procedure.
How to get the returned parameter new_ID?
Thanks!
|
|
|
|
|
I'm writing a program (Vis. C# .NET) to move files, depending from content, to a backup server. Sometimes the file cannot be deleted afdter copying because it is opened by an other process. The best would be to have a test a first that gives me a result if a specific file is opened by an other process or not.
How this can be done ? At least I need a boolean answer if the file is opened in this moment by anything other or not. The better way would be to have an answer which process has opened it.
Can anybody give me a hint for a good solution ?
Holger
|
|
|
|
|
I would think that you could just try to open the file for exclusive read access - that should throw an exception. As for the ultimate, you would have to use interop and Win32 functions to delve into the finer details. The OpenFile() Win32 function might do a better job than .Net for what you want. This site really helps with the interop stuff....
http://pinvoke.net
Jon Humphreys
ActivePlanet Software
Bangkok, Thailand
|
|
|
|
|
How to validate unicode string from textfield by using regular expression
Thanks
|
|
|
|
|
Hi.
I want to decrypt data encrypted using System.Security.Cryptography.MD5CryptoServiceProvider class .Is there any way to do it?
Thank you.
|
|
|
|
|
Prashant Gadhave wrote: I want to decrypt data encrypted using System.Security.Cryptography.MD5CryptoServiceProvider class .Is there any way to do it?
No, MD5 is a hashing algorhitm. Its intended to be one way.
xacc.ide-0.1-rc2 released! Download and screenshots
|
|
|
|