|
Dear, Sir
How to display copyright sign (c in small circle,©) in Label control?
Thank You.
|
|
|
|
|
Well, you can copy it from somewhere, or hold down the alt key and type 0 1 6 9 on your keypad.
|
|
|
|
|
Sune Trudslev wrote:
you can copy it from somewhere
The trusted way I hate trying out ALT keycode combinations!
leppie::AllocCPArticle("Zee blog"); Seen on my Campus BBS: Linux is free...coz no-one wants to pay for it.
|
|
|
|
|
Since strings in .NET are stored in Unicode, you can also use "\u00a9".
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
Heath Stewart wrote:
Since strings in .NET are stored in Unicode, you can also use "\u00a9".
Where can I find the resources for using the
'\u00a9' notation.
I have seen them used alot but have never
seen info on what codes mean what.
Thank You
Bo Hunter
|
|
|
|
|
It's just how you escape Unicode characters in a string. To see what the Unicode characters are, you can use the Character Map in the Start->Programs->Accessories->System Tools program group, or go to http://www.unicode.com[^].
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
Man all this time I have spent
looking for character codes.
Learn something every day.
Thank You
Bo Hunter
|
|
|
|
|
Hi,
Is there a limit to the number of rows (amount of data) a datagrid can display in a datagrid?
Is there any internal optimization in the datagrid which fetches data from the dataset only for those rows which are visible to the user? ( I saw someone say so in a NG)
Is there a limit similarly for datasets? ( I have read now and again it's only limited by the client's systems' memory...but wanted to make sure )
I am concerned since i need to display ALL the data (around 10K records).
Thanks
Rakesh
|
|
|
|
|
Rakesh Rajan wrote:
Is there a limit to the number of rows (amount of data) a datagrid can display in a datagrid?
See Process.MaxWorkingSet . This gets or sets the maximum amount of memory allowed in memory for the given Process .
Rakesh Rajan wrote:
Is there any internal optimization in the datagrid which fetches data from the dataset only for those rows which are visible to the user?
Not yet, at least in the .NET base class library. In .NET 2.0 they have introduced several new control classes, including a GridView[^] which supports virtual lists, which is to what you're referring.
There's nothing from stopping you now (there was a good article a LONG time ago about how to do this even in DHTML), but the burden is on you unless you want to buy a commercial solution like a couple from ComponentOne[^].
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
Is there a way to render html without using the SHDocVw control? The reason that I don't want to use that control is because I don't want the overhead of the control having internet access. I also want the control to be able to render dynamic html while the SHDocVw control seems to only render static web pages. I would really appreciate some advice or even just a point in the right direction. Thanks
|
|
|
|
|
|
I know I'm missing something obvious.
I'm writing a tool that does some dianostics on processes. I can't seem to figure out how to locate the name of the user running a process or the id of the parent process. Can someone please point me in the correct direction. Thanks
Jared
jparsons@jparsons.org
www.prism.gatech.edu/~gte477n
|
|
|
|
|
One way ( without digging into the debugging APIs ) is to P/Invoke the native functions in the following order: OpenProcessToken , GetTokenInformation , then LookupAccountName . You pass Process.Handle to OpenProcessToken to get an access token. You then get a TOKEN_USER struct by calling GetTokenInformation . Finally, use the SID parameter from TOKEN_USER and call LookupAccountName . This also seems to be partly what taskmgr.exe and tasklist.exe (in Windows XP) are doing. There is actually only tree functions you have to P/Invoke and only a couple structs you have to redefine.
I'm sorry that I couldn't find a way to get the parent process ID. In fact, I couldn't find anything common that does on Windows, not to say it isn't possible.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
If WMI is an option for your tool you can get all that information from it.
Just take a look to the class "Win32_Process". I remember some nice articles about WMI in codeproject.
If you don't find them let me know.
|
|
|
|
|
Here is my contribution back to the community - a simple to intermediate quiz to consolidate your knowledge in C#
http://www.soft-trek.com.au/quiz-central/q_runqz.asp?QUIZ_ID=CSharp
Enjoy
ry
|
|
|
|
|
|
Documentation - to document the function parameters, which of the following would you use?
I'm very confident none of the choices was valid for that question. You need three slashes, e.g.
/// <param name="myParameter">Description</param>
Also, what are functions in C++ are called methods in C#.
--Colin Mackay--
EuroCPian Spring 2004 Get Together[^]
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
|
|
|
|
|
Hi Colin,
Thank you for the corrections and feedback. I will revise it at the next convenience. Do appreciate you taking your time to write. Thanks once again.
Cheers
ry
|
|
|
|
|
To be exact, functions are stand-alone procedures while methods are procedures that belong to an entity (class, struct, etc.). It's not just a .NET term but a procedural vs. object-oriented naming convention.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
Hi all,
Thank you so much for the participation.
Here are the results so far:-
marks users
0 4
10 1
20 2
30 9
40 13
50 14
60 5
70 9
80 6
90 3
100 2
I have also generated a chart (as of 26th Jan 2004) for your perusal -
The results seemed to show a normal distribution .
Thank you to all for your feedback and participation.
BTW: it is Australia Day today - Happy Australia Day to my fellow aussies out there!
|
|
|
|
|
Hi gang!
I've done some searching but can't seem to find what I'm looking for. I have a solution with roughly 30 projects (all C#) in it. Fairly often, perhaps every 5th or 10th debug build, I get errors in 1 to 3 of the projects that say that the /debug/obj/<projectname>.pdb file is in use and the build couldn't complete. I cannot delete the file without shutting down VS, but once I do and restart, the projects build fine. In using VS.NET 2003 on W2K. Is there something causing this in what I'm doing? Is it an IDE bug? How can I fix it or efficiently circumvent it? I realize that this may not neatly fit into the C# newsgroup topic, but it seemed the best match. Any help would be greatly appreciated. Thanks!
E
|
|
|
|
|
Whenever I have had problems like this it is either because
a) I have a debugger outside of VS that is running.
b) I had run FXCop and that is still open.
Something, somewhere, has that PDB file open which prevents VS from doing a File.Open with replace.
_____________________________________________
Of all the senses I could possibly lose, It is most often the one called 'common' that gets lost.
|
|
|
|
|
More info. This happens with code behind a Windows Form. When this problem arises, close all of the Windows Forms documents in the IDE and the file is released by whatever is holding it. Seems like a bug...
Thanks for the reply, but I don't have FXCop and the above seems to negate 'a'. I'm puzzled.
E
|
|
|
|
|
i have a windows application that currently takes screen shots and copies the image to a directory.
the program takes a screen shot of either the active window, or the whole screen based on the keystroke.
well obviously the 'active window' screen shot will always take a screen shot of itself, so i want to convert this so it runs in the background somehow.
i hope i'm making sense. basically i want to be able to press a couple buttons and no matter what program i'm in, have the computer take a screen shot.
do i need to make a windows service?
any insight would be greatly appreciated.
|
|
|
|
|