|
THANKS
Have Fun
Never forget it
|
|
|
|
|
Let's see if I understand: you want to add another button to the title bar of your window? Otherwise, why would you want a button with the same style?
To add a button to the title bar (other than the built-in close, maximize, minimize and help) is not trivial. You would need to do some non-client area painting to draw the button, and also handle click messages to draw the button in a pressed state.
It is not too hard, but it will take its time.
|
|
|
|
|
I did'nt meant that,but thanks u saved me next Q
Have Fun
Never forget it
|
|
|
|
|
As we all know, computers use binary - which can be represented easily using hexadecimal, but for some reason (?) Microsoft havent included any binary or hexadecimal types in .NET - only 'human friendly' base 10 types.
I've created some extension methods for all the built in types that handle the conversions/boolean functions/math functions fine but it would be MUCH better if there were built in types, structs or classes for these.
I know some of the string functions can handle base 2,8 and 16 but all this converting to and from strings just to do some simple math seems very pointless.
Before I 'roll my own', does anyone know of any available? Google has turned up nothing.
Dave
|
|
|
|
|
u do have the bit Array and the byte struct / class
the Hexadecimal is just a presentation u can use the string class
to display the format u like of the value
Have Fun
Never forget it
|
|
|
|
|
I've never come accross the BitArray, thanks for that. Whilst searching for that in the Object Browser I also came accross the BitConverter which could be useful.
Dave
|
|
|
|
|
DaveyM69 wrote: I know some of the string functions can handle base 2,8 and 16 but all this converting to and from strings just to do some simple math seems very pointless.
I think that you are missing the point entirely.
There are no binary, octal, decimal or hexadecimal data types, all those are string representations of numbers. The data types are just numbers, they don't have any base at all.
A Byte, for example, is just a number that uses 8 bits for storage, it's not an 8 digit binary number or a 3 digit decimal number. The default way of formatting the number into a string is to use base 10, but that doesn't mean that the data type itself uses base 10.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Point taken.
Is there anyway to directly assign to, compare to or operate on a binary value using a built in data type like we can with a hex.
e.g. int x = 0xF0; //Hexadecimal assignment (240 decimal)
int y = ??11110000; //Binary assignment
Dave
|
|
|
|
|
No, there is no binary literal in C#. The only literal formats for numbers are decimal and hexadecimal.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
help in web service urgent ? ? ? ?
help in web service urgent ? ? ? ?
help in web service urgent ? ? ? ?
help in web service urgent ? ? ? ?
help in web service urgent ? ? ? ?
help in web service urgent ? ? ? ?
help in web service urgent ? ? ? ?
help in web service urgent ? ? ? ?
help
|
|
|
|
|
Congrats. Your subject line very well summarizes your message.
|
|
|
|
|
The content was worse than I expected, and my expectations weren't all that high... :P
|
|
|
|
|
What a dumb post. How do you expect anyone to help you, when you don't even say what your damn problem is?
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
He's already defined what his problem is, and it's not the obvious one. Alas, the village called him back before he could finish the post - they were missing their idiot.
|
|
|
|
|
Pete O'Hanlon wrote: the village called him back before he could finish the post - they were missing their idiot.
Right on the money there, Pete.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Give me a T.
Give me an R.
Give me an O.
Give me an L.
Give me an L.
Happy now?
|
|
|
|
|
Give me an R.
Give me an O.
Give me an F.
Give me an L.
|
|
|
|
|
Yes, you need help. You need help in learning how to ask a question.
Giorgi Dalakishvili
#region signature
my articles
#endregion
|
|
|
|
|
OK - I'm telepathically transmitting the code to your PC right now. You should have received it... No? There must be a solid impenetrable mass between me and your base unit. Ah - sussed the problem. Would you mind moving your head to the left please?
|
|
|
|
|
HI!
Does any body knows about that how to update Preffered DNS entry in "Local Area Connection" adapter. Please tell me as soon as possible, if ay body knows about it.
I have already did this using Netsh.exe utility in c# Programme
|
|
|
|
|
Hi All,
i have made a chat application i have 2 richtext boxes that are rtblog and rtbmessage on the client side. i also have a toolbar that allows you to change color,font ,font style.now when client A changes the color of text and sends to client B.client B still gets the message in the default color(black) instead of changed color(blue or some other color).so how can i fix that.Thanks in Advance
|
|
|
|
|
You need to send the formatting information to the other client with your text. How will the client B understand what your formatting was?
Change the sent message structure to include format information.
|
|
|
|
|
Hi,
Thanks for ur valuable information,So i need to send text wit RTF information...
one more question here....
How can i append a richtextbox with content of another richtextbox with RTF property...?
RichTextBox1.RTF += RichTextBox2.RTF something like this.....
but that code is not working.....
Thanks in Advance..
Shinoj
|
|
|
|
|
The code isn't working cos' it's wrong.
SHINOJK wrote: RichTextBox1.RTF += RichTextBox2.RTF
I don't know what exactly you need but, i suggest you to let your client B understand what formatting had been done on client to the text.
For example,
If I formatted my text to bold + italic + red, I would send the plain text along with formatting information(Color : Red, Bold : Yes, Italic : Yes, Underlined : No, ...) to the client B. Then it's client B's job to render it. Something like that.
|
|
|
|
|
Hi!
Since you already do have the vehicle of RTF formatted text, I really don't think that sending text and formatting information separately is a good idea.
Simply appending the Rtf content of one RTB with the content of another one won't work because of the way RTF works.
Basically, it's just regular text starting with {\rtf1 and containing all kinds of formatting tags (similar to html). When you simply append another RTF formatted text, the initial \rtf1 will appear twice, violating the format specification. You can google for the RTF specification if you need further details.
The trick is to use the SelectedRtf property to insert RTF at a given position, like in this example:
string rtb1Content = rtb1.Rtf;
rtb2.Select(rtb2.Text.Length, 0);
rtb2.SelectedRtf = rtb1Content;
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|