|
Is any function in C# equivalent to GetTextExtend in C++
-kk.tvm-
|
|
|
|
|
|
thank you very much
-kk.tvm-
|
|
|
|
|
You are welcome
|
|
|
|
|
If you'd like to see an example in code, I wrote an article about putting text on a bitmap that uses MeasureString (as recommended by Giorgi).
http://www.codeproject.com/KB/graphics/TextOnABitmap.aspx[^]
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
|
Hello everyone,
1.
I am not 100% and just want to confirm, every exception thrown from Web Services server side must be derived from SOAPException, and from client side, every exception caught are derived SOAPException?
2.
The reason why I ask this is I am confused about Web Services exception handling mechanism, I am not sure for client side code, we need to handle other kinds of exception, like IO or network related exception?
regards,
George
|
|
|
|
|
Sorry, a question for you george are you from Microsoft?
Every one among us was a beginner once
|
|
|
|
|
Hi all,
In my case..there is a server and client..
assume PC-A as server,PC-B as client.
Printer is physically connected to PC-A server,which is now can be called as Print Server(i.e.,PC-A).
The problem is as below..
Here the user is at PC-B(client machine),then he opens a normal word document(not through my application) and gives the normal file print...Then Immediately i have to invoke my c#.net windows application which is used for some accounting purpose.
To my knowledge I thought to write a service to watch/catch the spool file generation at client PC-B(client machine) machine and then it should invoke the windows application..But actually the spool file is generated at Server end but at client end...
Kindly guide me to resolve this issue..
|
|
|
|
|
hi,
I have made an application in that i am copying content of a folder to another folder in that i want to show my own progress dialog windows like that of windows,in that i have to show remaining time of copy process,,so how
will i calculate the remaining time of popy process.
thank you
|
|
|
|
|
Wow you asked the same question in the same forum in about 90 minutes.
|
|
|
|
|
have you see may reply before?
has it helps?
dhaim
ing ngarso sung tulodho, ing madyo mangun karso, tut wuri handayani. "Ki Hajar Dewantoro"
in the front line gave a lead, in the middle line build goodwill, in the behind give power support
|
|
|
|
|
You're copying files? It's not that hard to implement in your own application.
Before you start copying, put the current time in a variable. (DateTime startCopy = DateTime.Now) Next, you're gonna copy a list of files. Once you have copied the first file, get the current time.
Get the timespan between those two timings. At this point you want to know how long it took to copy a single file. You also know how much files you're going to copy, right?
Next thing you do, is check out how many files still need to be copied. (How many items are remaining in the list?) Multiply by the time that it took to copy a single file - and there you have your "Remaining time:"
The displayed time will be a rough indication. It might be more accurate if you count the bytes copied
Hope this helps,
|
|
|
|
|
HI Guys,
I need to convert all *.cs files in one solution to html format. The exe will convert all code to html format.
Is there any third party tool which can do the same.
thx in advance.
Thanks,
Chintan(India)
|
|
|
|
|
if you mean documentation of your codes, you can use NDOC[^]
or other documentation tools (be friend with Google)
hope it helps
dhaim
ing ngarso sung tulodho, ing madyo mangun karso, tut wuri handayani. "Ki Hajar Dewantoro"
in the front line gave a lead, in the middle line build goodwill, in the behind give power support
|
|
|
|
|
hi,
I have develop an application in which i am copying content of a folder to another folder ,and in that i want to show my own progress dialog window like windows so can any one can help me in this ?
Thank You.
|
|
|
|
|
this link[^] may help
dhaim
ing ngarso sung tulodho, ing madyo mangun karso, tut wuri handayani. "Ki Hajar Dewantoro"
in the front line gave a lead, in the middle line build goodwill, in the behind give power support
|
|
|
|
|
Don't repost
Sorry, too early, and haven't met the coffee-quota yet.
|
|
|
|
|
Hi friends
I am just a beginner , How to run a windows form in hidden mode ?
with warm regards
dyno
|
|
|
|
|
in the main entry programs (usually Main() under static class Program in vs2005) just write Application.Run(); without main form specified
hope it helps
dhaim
ing ngarso sung tulodho, ing madyo mangun karso, tut wuri handayani. "Ki Hajar Dewantoro"
in the front line gave a lead, in the middle line build goodwill, in the behind give power support
|
|
|
|
|
On the Form_Load event type:
this.Hide();
This will hide the form as soon as it's opened by the user.
|
|
|
|
|
Is there an algorithm where i could get all the possible sequence?
Example: given is "abc"
where the possible sequence are:
"abc"
"acb"
"bac"
"bca"
"cba"
"cab"
|
|
|
|
|
Hi,
Silvyster wrote: Is there an algorithm where ...
Yes there is. In fact there are many. It is a nice occasion for
a recursive one: to find a valid combination permutation of N symbols, first choose
the leftmost symbol (a foreach loop could do that), then calculate the
remaining collection and solve the problem for that smaller collection
(with N-1 symbols) by recursion.
If you keep the symbols ordered in some way (say alphabetical) the nice
side-effect is all combinations permutations will come out in the same (alphabetical) order.
And recursion is appropriate since the number of combinations permutations grows exponen-
tially with the word length, i.e. your patience will run out long before
you get a stack overflow.
modified on Friday, October 31, 2008 8:31 AM
|
|
|
|
|
What you are looking for is an algorithm for permutations.
Go forth and search the web.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
right.
|
|
|
|