|
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...
|
|
|
|
|
Thanks alot...mav
that was an great solution.....
Thanks alot .........
|
|
|
|
|
Simply you can encapsulate the color used by the client with his message -that's the simplest solution
e.g.
Class Message
{
String message;
Color color; //or in general message properties
}
another possible solution is to send a notification to Client B whenever Client A changes his color this will save your bandwidth -not to send each time the color while it was changed for only one time-
I hope that helps you.
Good Luck
|
|
|
|
|
Hi all,
I have a PNG image -with very high resolution- I want to use it as background image for my form and make the form transparent. the problem is when I do that I lose the resolution, I tried to use PictureBox but I still have the same problem
so the question is.
How to solve this problem
or
if I'm using the wrong way, how can I build a form with the look I want from PNG image -I care for the image to be PNG to have the shape I want for the form-
Thanks in Advance
really appreciate your help.
|
|
|
|
|
What do you mean by "losing resolution"? The PNG format is lossless. Do you have a screenshot of your application?
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
this is the original image before using it in the form
http://img27.picoodle.com/img/img27/4/7/12/f_OriginalImam_f44b121.png
this is after I use it as a background image in the form
http://img34.picoodle.com/img/img34/4/7/12/f_Thisisafterm_5d8b51e.jpg
how can I keep the good resolution at the first when I use it as a background image for my form???
Thanks
|
|
|
|
|
Mostafa Siraj,
Voting someones answer as bad, wont get you much help if its a valid response.
Regards,
Gareth.
(FKA gareth111)
|
|
|
|
|
Hi Gareth,
the 1 vote may be due to the (IMO stupid) voting change: instead of having 1 to 5 options, a reply
now only has "helpful" and "not helpful". Well, replying with one or more questions is strictly
speaking NOT helpful.
|
|
|
|
|
Luc Pattyn wrote: Well, replying with one or more questions is strictly
speaking NOT helpful.
If I need more information to help the OP because his question was lacking some important facts, then I don't see how asking for more information is a bad answer.
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
I agree with your questions.
it is not bad.
but literally speaking it is not helpful, it did not solve his problem!
|
|
|
|
|
Hi,
your two images have different sizes, so something is scaling down (and harming quality while doing that).
Possible culprits:
- you have a PictureBox and have set the display mode to "Scale";
- you have a system with a non-standard dpi setting (default is 96dpi, somewhere deep down in
Display Settings, you can increase that number, resulting in some strange effects).
|
|
|
|
|
about the 2 suggestion
-the display mode for the PictureBox is in "Scale" already
-I created in photoshop photos with dpi up to 5000 and all of them just turn to the bad resolution as soon as I put them in the application ( (
|
|
|
|
|
Hi,
what is the value of PictureBox.SizeMode?
you might want to show all the code relating to the PictureBox.
Any chance of publishing the actual PNG file, so we could experiment a bit with it?
|
|
|
|
|
this is the PNG file (it was already published)
http://img27.picoodle.com/img/img27/4/7/12/f_OriginalImam_f44b121.png
this is after I use it as a background image in the form
http://img34.picoodle.com/img/img34/4/7/12/f_Thisisafterm_5d8b51e.jpg
I tried SizeMode=StretchImage && also I tried SizeMode=Zoom
and both still have the same bad resolution
|
|
|
|
|
Hi,
I can paint your PNG image on a Panel at different scales and it always looks good.
Your JPG captured image has several anomalies:
- where is the little close box coming from (top, almost right)?
- seems like it was first scaled down a lot, then scaled up again.
could it be the image gets loaded while the PictureBox is small, then the PB size gets increased
but the image itself is no longer available? or something similar?
Anyway I wouldn't trust a PictureBox much, and do my own scaling, hence SizeModes Normal and AutoSize
have my preference.
Have you been playing around with alpha channel, transparency?
Tell us the entire story, and show us some code.
|
|
|
|