.NET Forum / .NET Framework / New Users / July 2005
Is it possible to highlight just one letter of textbox with window forms?
|
|
Thread rating:  |
pkellner - 30 Jul 2005 15:32 GMT Or, is there a way to highlight the a character in a textbox that is not the last? That is, move the current position of the cursor to inside a word of an item in a textbox?
Thanks
Tim Wilson - 30 Jul 2005 15:55 GMT You can use the SelectionStart and SelectionLength properties.
 Signature Tim Wilson .Net Compact Framework MVP
> Or, is there a way to highlight the a character in a textbox that is > not the last? That is, move the current position of the cursor to > inside a word of an item in a textbox? > > Thanks pkellner - 30 Jul 2005 17:04 GMT Thanks, just what I wanted. Two other curiosities. One, I got an email from a developersdex.com on this reply. I posted through google. How'd that happen? and, Two, I notice you are a compac framework MVP. Have you tried the new 5.0 stuff? I can't seem to get it to install without hanging. I've even done a complete reinstall on my dell inspiron of XP Pro to no avail.
Thanks again for the answer.
http://peterkellner.net
Tim Wilson - 30 Jul 2005 17:24 GMT > I got an email from a developersdex.com on > this reply. I posted through google. How'd > that happen? Not sure. I replied from my Outlook Express client and I'm not affiliated with developersdex.com.
> Have you tried the new 5.0 stuff? I can't seem to > get it to install without hanging. I've even done a > complete reinstall on my dell inspiron of XP Pro to > no avail. Are you referring to the "Windows Mobile 5.0 Developer Evaluation Kit"? http://msdn.microsoft.com/mobility/windowsmobile/howto/resourcekit/default.aspx This is the means by which I installed 5.0 support into a Virtual PC image running Windows 2000 Pro and Visual Studio 2005 Beta 2. I followed the steps that came with the evaluation kit and everything installed and funtioned as expected.
 Signature Tim Wilson .Net Compact Framework MVP
> Thanks, just what I wanted. Two other curiosities. One, I got an > email from a developersdex.com on this reply. I posted through google. [quoted text clipped - 6 lines] > > http://peterkellner.net Morten Wennevik - 30 Jul 2005 20:09 GMT Hi Peter,
Several web sites monitor these newsgroups and many of these sites add signatures to the posts. They will all end up on msnews.microsoft.com though, so the fastest way is to not use a web based news reader at all but a 'proper' newsreader and log on directly.
nntp://msnews.microsoft.com
Outlook Express is commonly used. Personally I prefer Opera.
> Thanks, just what I wanted. Two other curiosities. One, I got an > email from a developersdex.com on this reply. I posted through google. [quoted text clipped - 6 lines] > > http://peterkellner.net
 Signature Happy coding! Morten Wennevik [C# MVP]
pkellner - 30 Jul 2005 20:19 GMT Any suggestions (in windows) for a 'proper' newreader? I used Agent a long time ago, then outlook express recently but haven't been that happy with it.
Jon Skeet [C# MVP] - 30 Jul 2005 20:27 GMT > Any suggestions (in windows) for a 'proper' newreader? I used Agent a > long time ago, then outlook express recently but haven't been that > happy with it. I personally use Microplanet Gravity, which used to be commercial, but is now free:
http://mpgravity.sourceforge.net/
Being Open Source, it can be changed if you need extra features. For instance, when I hit Ctrl-F1, I get (the bit inside the quote tags):
<quote> Could you post a short but complete program which demonstrates the problem?
See http://www.pobox.com/~skeet/csharp/complete.html for details of what I mean by that. </quote>
because I post that so often :)
 Signature Jon Skeet - <skeet@pobox.com> http://www.pobox.com/~skeet If replying to the group, please do not mail me too
Peter Kellner - 30 Jul 2005 21:52 GMT [This followup was posted to microsoft.public.dotnet.framework and a copy was sent to the cited author.]
> > Any suggestions (in windows) for a 'proper' newreader? I used Agent a > > long time ago, then outlook express recently but haven't been that [quoted text clipped - 17 lines] > > because I post that so often :) Thanks for the tip. I'm now using Gravity like you (a 'proper' newsreader and I pointed it to my sbc news feed. Sorry for the off topic question, but is there anyway to make it read just microsoft newsgroups from the newsreader suggested (nntp://msnews.microsoft.com), or does it really even matter.
Thanks
 Signature Peter Kellner http://peterkellner.net
Jon Skeet [C# MVP] - 30 Jul 2005 23:12 GMT > Thanks for the tip. I'm now using Gravity like you (a 'proper' > newsreader and I pointed it to my sbc news feed. Sorry for the off > topic question, but is there anyway to make it read just microsoft > newsgroups from the newsreader suggested (nntp://msnews.microsoft.com), > or does it really even matter. Not entirely sure what you mean - you can have multiple servers, and switch between them, if that's what you mean, or just subscribe to the groups you want.
 Signature Jon Skeet - <skeet@pobox.com> http://www.pobox.com/~skeet If replying to the group, please do not mail me too
Peter Kellner - 30 Jul 2005 23:41 GMT [This followup was posted to microsoft.public.dotnet.framework and a copy was sent to the cited author.]
> > Thanks for the tip. I'm now using Gravity like you (a 'proper' > > newsreader and I pointed it to my sbc news feed. Sorry for the off [quoted text clipped - 5 lines] > switch between them, if that's what you mean, or just subscribe to the > groups you want. There was a comment earlier that said go directly to the nntp://msnews.microsoft.com newsfeed. I'm currently hooking up to SBC's newsfeed. Is there any reason to get some newsgroups from msnews and the rest from SBC? and, does MicroPlanet allow this (if it makes sense which I'm not sure it does now since things seem to update pretty fast)
 Signature Peter Kellner http://peterkellner.net
Jon Skeet [C# MVP] - 31 Jul 2005 07:10 GMT > There was a comment earlier that said go directly to the > nntp://msnews.microsoft.com newsfeed. I'm currently hooking up to SBC's > newsfeed. Is there any reason to get some newsgroups from msnews and > the rest from SBC? and, does MicroPlanet allow this (if it makes sense > which I'm not sure it does now since things seem to update pretty fast) Yes, it allows it by letting you configure multiple servers. If the SBC feed is okay though, I'd stick with that - it's a bit of a pain having to switch servers frequently.
 Signature Jon Skeet - <skeet@pobox.com> http://www.pobox.com/~skeet If replying to the group, please do not mail me too
Morten Wennevik - 31 Jul 2005 09:45 GMT If SBC has all the microsoft groups you want, then you are ok. If there are some groups that are missing you will find them on msnews.microsoft.com. You won't find any other groups than microsoft.* on msnews though.
> [This followup was posted to microsoft.public.dotnet.framework and a > copy was sent to the cited author.] [quoted text clipped - 14 lines] > the rest from SBC? and, does MicroPlanet allow this (if it makes sense > which I'm not sure it does now since things seem to update pretty fast)
 Signature Happy coding! Morten Wennevik [C# MVP]
Cool Guy - 31 Jul 2005 10:49 GMT > If SBC has all the microsoft groups you want, then you are ok. From what I've read in the past, it's generally not a good idea to use an ISP's mirror of Microsoft's newsgroups since it's not reliable (i.e. you might not get some posts).
As for newsreaders, I use 40tude Dialog -- of all the ones I've tried this is my favourite by far (and it's easy to configure and use multiple news servers with it).
pkellner - 30 Jul 2005 17:26 GMT Is there anyway to add an attribute (like underscore) to a current character in the textbox?
Thanks,
http://peterkellner.net
Tim Wilson - 30 Jul 2005 18:00 GMT Other than trying to somehow manually draw the underline yourself, if you're targeting the desktop framework, the only thing that I can think of is to switch to a RichTextBox and try to utilize the SelectionFont property.
 Signature Tim Wilson .Net Compact Framework MVP
> Is there anyway to add an attribute (like underscore) to a current > character in the textbox? > > Thanks, > > http://peterkellner.net pkellner - 30 Jul 2005 19:48 GMT Actually, I'm targetting smartphone with the 1.1 stuff. (since I can't get the 2.0 working). This is for a prototype so beta is OK.
Tim Wilson - 30 Jul 2005 20:42 GMT The current version of the Compact Framework is 1.0 SP3. The desktop framework is at 1.1. So the RichTextBox isn't going to be available to you as it's not in the Compact Framework. By default when you enter a character into a TextBox on a SmartPhone using the keypad, on the device or emulator, the current character being input will be underlined. If you need to do something custom above and beyond that then you're probably going to need to paint it custom. This may not be pretty. So unless it's absolutely necessary then you may want to consider an alternative.
 Signature Tim Wilson .Net Compact Framework MVP
> Actually, I'm targetting smartphone with the 1.1 stuff. (since I can't > get the 2.0 working). This is for a prototype so beta is OK. Peter Kellner - 30 Jul 2005 22:16 GMT [This followup was posted to microsoft.public.dotnet.framework and a copy was sent to the cited author.]
> The current version of the Compact Framework is 1.0 SP3. The desktop > framework is at 1.1. So the RichTextBox isn't going to be available to you [quoted text clipped - 4 lines] > paint it custom. This may not be pretty. So unless it's absolutely necessary > then you may want to consider an alternative. Thanks, I think I'll live with the textbox as it is. I assume this hasn't changed in 5.0? Is that true?
 Signature Peter Kellner http://peterkellner.net
Tim Wilson - 30 Jul 2005 23:32 GMT I don't have the Windows Mobile 5.0 Smartphone SDK installed so I can't verify this but I'm pretty confident that the TextBox works as it did in previous versions.
 Signature Tim Wilson .Net Compact Framework MVP
> [This followup was posted to microsoft.public.dotnet.framework and a > copy was sent to the cited author.] [quoted text clipped - 10 lines] > Thanks, I think I'll live with the textbox as it is. I assume this > hasn't changed in 5.0? Is that true?
Free MagazinesGet these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...
|
|
|