« first day (200 days earlier)      last day (4752 days later) » 
04:00 - 19:0019:00 - 23:00

7:02 PM
Could you up-vote it so someone who can help me, sees it? That'll help to!
 
Hi
0
Q: RichTextBox Silverlight Selected text replacement

Daniel G. R.Hi to everyone. I need to get the selected text from a RichTextBox and replace it with some tags, I mean: A sample text to replace but only the selected sample word And I select "sample" and click a button to transform it to: A <A>sample</A> text to replace but only the selected ...

help!!!
 
@Justin I think you should look to use an existing media capture piece of software rather than reinvent the wheel. All of them that I know of are closed source.
I rather wish you hadn't put a bounty on it, I would've been willing to offer a larger one
0
Q: Silverlight Programmatically select text

cosonGood Day, I am playing with a Silverlight control that has a TextBox and Button. When I click the button (which calls SelectText below), I want to select all the text in the textbox. Here's my code: private void SelectText() { TextBox tb = this.txtFirstName; tb.Selecti...

 
Your more than welcome to... later. Lol. No undo!
 
Does that help @DanielGR ?
 
@drachenstern I can't the application goes across screens and most software only captures the first screen. Plus, I'm already taking lots of resources doing internal work. Having any other application open while providia (the app that needs to do the video file stuff) is running (and your in production) is not recommended. It's still in development but it uses a lot of resources to super impose video, images, text, on streams, video, text...
 
7:08 PM
Actually, @DanielGR I think I see what your problem is. You're going to have to show the code for your replace part that isn't working.
You're not giving us enough ammunition to help you @DanielGR ...
@Justin yeah ... no. You're going to consume those resources one way or another. I'm not sure what to tell you to do.
 
Consider it photoshop for realtime video... I am already sharing resources across forms, I'm hoping I can cut down some wait and stuff more in one app. Just think of another app running while providia is running... It loads all those extra windows links in memory. Not a lot, but every bit of spare memory for rendering the video is good.
@drachenstern Yeah, Its complicated I know. I'm hoping to be pointed to something that just gets me started. Here's hopping someone out their knows a thing or two.
 
I shall certainly root for you
 
look the code
for the replacement
in the question page
 
@Daniel you are not helping us help you.
 
Why!!!
 
7:22 PM
You should give:
  1. Expected input
  2. Expected output
  3. The code that you are using now (the code that references the thing you are trying to do, not the entire project)
  4. The explanation of what you have tried
So far you've given most of #1 and #4, after asking you've given #3, that's causing us to scratch our heads and wonder what you need exactly.
Have you read tinyurl.com/so-hints ?
 
look it now,
please
 
Then why did Ivan's answer not work for you? It says that it does exactly what you asked for
So after you update the selection.text then you just want all the text afterwards?
 
Help!!!
mmm
 
rtb.Xaml <-- is that what you want?
 
but thats the text in xaml, I need the text
only with my tags!!!
 
7:30 PM
I don't understand what the hell you're asking for man
 
calm down
I need to put a text in the richtext
 
I am calm. I'm not saying things like "look it now" and "!!!"
so do that. Put a text in the richtext.
 
the add tags to it
and then get it from the richtext
with the tags
 
but you want to omit all the other tags that are not your own?
 
7:31 PM
That's an example of the interface
 
@Justin cool
 
Sorry it took so long, now I feel off topic... drat!
 
yeah
 
@DanielGR woops, to be expected I guess...
 
help :(
 
7:35 PM
@DanielGR You'll have to write a translator that takes your tags and converts it to the flowdocument. I use something similar in providia (that meaningless screenshot above).
 
how can I get the selection index?
I mean, the number of the selected text
in the original text?
 
Ug... I know what your talking about. You can get the selection index from the RTB and comapre the text up to that point... That's what I did for a WPF wikieditor
I'm getting you the code, to help.
 
please please :)
 
txtWikiEditor.Selection.Start.Paragraph
txtWikiEditor is the RichTextBox in WPF 4
that returns the paragraph element, you can use that to do a lookup to see where you are in the orginal text.
 
A lookup?
whats that
 
7:44 PM
Me.txtWikiEditor.BeginChange()
Dim strPos As TextPointer = txtWikiEditor.Selection.Start
Dim i As New InlineUIContainer(iH, strPos)
iH.IsEnabled = True
i.IsEnabled = True

Me.txtWikiEditor.EndChange()
Its vb.net but you can migrate it over to c# no problem
You can get a textpointet, from the selection and use the textpointer to get the text up to the selection (or cursor) . then just compare the original text. To see where you are in the rich formatted text.
 
hmmm
I will look
:) thanks
hmm, Whats iH???
 
iH is a custom user control, its designed to hold an image, do all sorts of stuff for you.
Dim newImage As New ImageSelector
If newImage.ShowDialog Then

Dim iH As New ImageHolder()
iH.Title = newImage.txtTitle.Text
iH.Description = newImage.txtDescription.Text
iH.MyWidth = newImage.txtWidth.Text
iH.Url = New Uri(newImage.ImageUrl)
iH.Alignment = newImage.Alignment
iH.IsThumbnail = newImage.chkThumbnail.IsChecked
iH.UpdateInterface()

Me.txtWikiEditor.BeginChange()
Dim strPos As TextPointer = txtWikiEditor.Selection.Start
Dim i As New InlineUIContainer(iH, strPos)
iH.IsEnabled = True
its from the full sub without the click event
 
Now I have the textpointer
 
The image selector is the editor.
 
How can I get the string index?
 
7:53 PM
one second
Dim tr As New TextRange(txtWikiEditor.Document.ContentStart,strPos)
That will get you everything from the begining of the text docuemnt to the start position.
Even better: Dim tr As New TextRange(txtWikiEditor.Document.ContentStart, txtWikiEditor.Selection.Start)
tr.Text
tr.text is the actual text you can get the character length and everything.
 
I dont have TextRange!!!!!!
I'm in silverlight
 
of course you are...
Silverlight doesn't have a text range? why the hell not? WPF and Silverlight seem to have very common code branches, but they are not combined that well.
Try adding the reference to it and see what SilverLight does.
Public Class TextRange
Inherits System.Object
Member of System.Windows.Documents
Wait, if your using the Documents class TextRange is part of it...
Unless I'm wrong
 
but, I'm not using the document class
wait
yeah!
but in that documents
theres no textrange
 
Oh... use the expanded version.
I'm using the full .net 4.0 framework, with mine. So it might be a thing included it that.
Hmmm.... so silverlight uses a flowdocument and you don't get the full system.windows.documents class?
Did you try system.windows.documents.textrange (I'm assuming you did already)
 
Yeah, silverlight uses a "light" version of .net framework
yeah, there's no textrange
 
8:04 PM
Drat!!! Go ask Microsoft, I'm sure they will point you to an equivalent object or something. They have a forum for VS 2010, and one for Silverlight. They want you to use their system instead of Adobe's so they will be happy!
...happy to help.
 
Lol, I know... it was more Sarchasism... I know exactly how you feel it took me weeks of research on RichTextBox controls to build a decent editor, but it still has huge bugs because of the "incompleteness" of the features. I prefer the web's edit iframe feature to any Microsoft RTB implementation.
Microsoft is so scattered at what they do, it sucks.
^^^ Do star it!
 
@Justin this is why I use SO
 
Yep, me to!
However you can look at all my unanswered questions and think to yourselfs the endless days of research I had to do.
0
Q: How do I get a InlineUIContainer to be editable and moveable in a WPF RichTextBox, Flow Document?

JustinI'm trying to create a nice WPF editor and I want to be able to insert images, tags, categories, and a whole lot of extra stuff. So I'm trying to create adornments that are editable on the editor. Right now I can add the InlineUIContainer to the Richtextbox and it is visible. However when I try t...

0
Q: How to get a EditorAdornment to Modify text from a TextView?

JustinI am trying to create a "Quick Edit" adornment which would help the user in providing the information below. This is the Nafestis Info text in a .vb class file #Region "Nafestis Information Block" '**<!--Scroll over to the line above this one to use the quick editor**'--> '**<name>C...

2
Q: How to stream contents of a WPF form (as frames) to an AVI File?

JustinI currently send a live video mix to a output screen (a form on a particular screen). Consider it like a really advanced version of PowerPoint. I call it a video control room for the pc. I want to take 30 frames a second from a screen (of my choice, I allow multiple screens) and the audio from th...

All thanks to Microsoft. See if I ask a php, javascript or even a BASIC (not that I did, just get the point) question, I'll get a quick answer but with Microsoft, no way!
 
16
A: Should we now have flag weight leagues?

Shog9Listen... About this number... We need to talk. It's great that you want to help out. And if you have a little weight-number in the upper-hundreds, you have been helping out. You've been pointing out stuff that moderators need to know about. That's good. Thank you! But... Please don't get too h...

 
8:12 PM
@drachenstern whats that?
Wow, so many people do that! I try (and fail) to downvote, or leave a comment. I usually don't downvote and then flag. I'll flag and comment or downvote and comment, depending on the situation.
 
so on meta downvotes mean "I disagree with this" and not whatever it may mean on other sites
meta is its own little place, so you can pretty well ignore the downvoters there
er, except that it expresses group concensus
 
Yes... but meta has other issues like when group census does not match a dev's opinion (one in particular) the item gets closed (still ranking upvotes from users everywhere) and never re-looked. Primarily because meta questions are closed by certain tags and not closed with a "reopen" vote available.
 
There's a difference between not matching a dev's opinion and not matching Jeff's opinion
and I don't mind calling it out like that.
Here's the thing: We have a President of a large company to set RULES and DIRECTION for the company. That's true for PG&E. That's true for Kraft-<and whoever>. That's true for Toyota or Ford or etc.
We have the same for Democratic countries, where we have a President to say "this is good, that is bad"
If Jeff doesn't see the utility of it, well, he's the end of the road.
The rest of the dev's don't play the way he plays. They play the way we play. And that's fine.
 
8:30 PM
Oh yes... Jeff is that guy I was referring to ... Just didn't want to vanish out of SO or SE's exstance for saying so.
R.I.P. Justin... [ban]/"vanished a day ago" [by Jeff]
Lol...
 
thanks justin for all
;)
 
@DanielGR Your welcome hope you get some expert help.
No hard feelings Jeff...
 
8:50 PM
lol
 
9:08 PM
My attempt at starting a chat is not going well... :|
Ha ha, better! No?
 
9:37 PM
hello everybody!
need a little help
 
That's ... not surprising. Welcome to SO Chat. What can we do for you today?
 
i have a touble with entity
then i to an record update (post the russian text), the text in db will becime like ????
 
So lets cut out all the formality. Hi I'm Cole. Go ahead and post all your question. Preferably format it as guided in tinyurl.com/so-hints and as a SO question, and then come back here with the question URL. Alternately, go ahead and give as much detail as you think is reasonable.
2
 
well put sir
 
@akmad thanks
 
9:48 PM
i have posted the good question already. :)) the question ID is 5889438,please look in my profile, cause i cant post link here (dont know why)
 
I don't know either, everyone can post. I'll help you out
1
Q: Entity Framework C# Insert Data russian encoding problems

evgeniy.labusnkiyI'm using the EDM model in my project. When I insert data (russian words) to database (post request) in databese I get ?????? Controller: [Authorize] [HttpPost] public string DescEdit(FormCollection formValues) { var CurrentUserPhoto = User.Identity.Name; ...

 
thanks a lot!! :))
the touble is next one: i google for 3 hours already, but cant find the solution...
 
I don't have any answers either. I imagine it really is a problem with the data source not being unicode
 
:( no body can say. i have 6 hours till morning come, maybe God help me :)
 
If I knew about processing Russian Language and MySQL and I had access to your codebase, I could probably troubleshoot it, but the first problem is an understanding of russian language processing and so ...
 
10:05 PM
it realy the first time that a have such problem...
 
has anything changed recently?
 
yes, i start to learn .net mvc ))
tryed to use htmlencode to post string - nothing change
i think that the trouble is in entity...
 
04:00 - 19:0019:00 - 23:00

« first day (200 days earlier)      last day (4752 days later) »