Click here to Skip to main content
15,914,111 members
Home / Discussions / C#
   

C#

 
GeneralRe: Julian Date to Pin
Guffa26-Jul-05 14:57
Guffa26-Jul-05 14:57 
GeneralDeriving from an internal class Pin
Luis Alonso Ramos26-Jul-05 9:20
Luis Alonso Ramos26-Jul-05 9:20 
GeneralChange font inside a string Pin
WetRivrRat26-Jul-05 8:32
WetRivrRat26-Jul-05 8:32 
GeneralRe: Change font inside a string Pin
Luis Alonso Ramos26-Jul-05 8:36
Luis Alonso Ramos26-Jul-05 8:36 
GeneralRe: Change font inside a string Pin
WetRivrRat26-Jul-05 8:37
WetRivrRat26-Jul-05 8:37 
GeneralRe: Change font inside a string Pin
Dario Solera26-Jul-05 8:38
Dario Solera26-Jul-05 8:38 
GeneralRe: Change font inside a string Pin
WetRivrRat26-Jul-05 8:41
WetRivrRat26-Jul-05 8:41 
GeneralRe: Change font inside a string Pin
Dario Solera26-Jul-05 8:49
Dario Solera26-Jul-05 8:49 
if you use a RichTextBox instead of a Label or TextBox, yes.

if the word you have to bold starts at position 12 (char 12) and it is long 10 chars, do that:

int oldPos = richTextBox1.SelectionStart;

richTextBox1.SelectionStart = 12;
richTextBox1.SelectionLength = 10;
richTextBox1.SelectionFont = new Font(richTextBox1.SelectionFont, FontStyle.Bold);

richTextBox1.SelectionStart = oldPos;
richTextBox1.SelectionLength = 0;
richTextBox1.ScrollToCaret();

Note that oldPos is used only for restoring the old position of the blinking cursor. do that only if you need it.


I don't know any other valid way in WinForms...

GeneralRe: Change font inside a string Pin
WetRivrRat26-Jul-05 8:55
WetRivrRat26-Jul-05 8:55 
GeneralIEnumerator for selecting only controls of a given type Pin
JakeHolt26-Jul-05 7:23
JakeHolt26-Jul-05 7:23 
GeneralRe: IEnumerator for selecting only controls of a given type Pin
Luis Alonso Ramos26-Jul-05 8:15
Luis Alonso Ramos26-Jul-05 8:15 
GeneralRe: IEnumerator for selecting only controls of a given type Pin
JakeHolt27-Jul-05 5:11
JakeHolt27-Jul-05 5:11 
GeneralRe: IEnumerator for selecting only controls of a given type Pin
Luis Alonso Ramos27-Jul-05 5:26
Luis Alonso Ramos27-Jul-05 5:26 
GeneralRe: IEnumerator for selecting only controls of a given type Pin
JakeHolt27-Jul-05 6:27
JakeHolt27-Jul-05 6:27 
GeneralRe: IEnumerator for selecting only controls of a given type Pin
Luis Alonso Ramos27-Jul-05 6:50
Luis Alonso Ramos27-Jul-05 6:50 
GeneralRe: IEnumerator for selecting only controls of a given type Pin
JakeHolt27-Jul-05 7:03
JakeHolt27-Jul-05 7:03 
GeneralRe: IEnumerator for selecting only controls of a given type Pin
Luis Alonso Ramos27-Jul-05 7:22
Luis Alonso Ramos27-Jul-05 7:22 
GeneralTabControl Pin
zaboboa26-Jul-05 6:39
zaboboa26-Jul-05 6:39 
GeneralRe: TabControl Pin
Alomgir Miah26-Jul-05 7:08
Alomgir Miah26-Jul-05 7:08 
GeneralRe: TabControl Pin
zaboboa26-Jul-05 7:22
zaboboa26-Jul-05 7:22 
GeneralRe: TabControl Pin
Alomgir Miah26-Jul-05 7:31
Alomgir Miah26-Jul-05 7:31 
GeneralRe: TabControl Pin
zaboboa26-Jul-05 7:37
zaboboa26-Jul-05 7:37 
GeneralRe: TabControl Pin
Alomgir Miah26-Jul-05 8:07
Alomgir Miah26-Jul-05 8:07 
GeneralRe: TabControl Pin
Luis Alonso Ramos26-Jul-05 8:34
Luis Alonso Ramos26-Jul-05 8:34 
GeneralRe: TabControl Pin
zaboboa27-Jul-05 3:20
zaboboa27-Jul-05 3:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.