Click here to Skip to main content
15,890,579 members
Home / Discussions / C#
   

C#

 
GeneralRe: UdpClient class Pin
Zishan Haider7-Jul-05 20:10
Zishan Haider7-Jul-05 20:10 
GeneralRe: UdpClient class Pin
Dave Kreskowiak8-Jul-05 1:30
mveDave Kreskowiak8-Jul-05 1:30 
GeneralRe: UdpClient class Pin
Zishan Haider8-Jul-05 19:34
Zishan Haider8-Jul-05 19:34 
QuestionHow To override controls? Pin
Rassul Yunussov6-Jul-05 19:41
Rassul Yunussov6-Jul-05 19:41 
AnswerRe: How To override controls? Pin
Dave Kreskowiak7-Jul-05 5:50
mveDave Kreskowiak7-Jul-05 5:50 
GeneralRunning Webservice on Apache Pin
seee sharp6-Jul-05 18:17
seee sharp6-Jul-05 18:17 
GeneralProblem with changing font style, please help Pin
OnlyTaz6-Jul-05 17:40
OnlyTaz6-Jul-05 17:40 
GeneralRe: Problem with changing font style, please help Pin
Dave Kreskowiak7-Jul-05 5:33
mveDave Kreskowiak7-Jul-05 5:33 
It would appear that you have a design flaw in your application. Both RichTextBox's will maintain their own Selection's whether they have the focus or not. Since your code is interating through all the controls on the form and changing the RTB's that have been modified, your code is applying the new font to all the RTB's that have been modified, not the one that last had the focus!

If you insist on having multiple RTB's on the form that the user can edit and change the font on, you'll have to implement a flag on your form that holds a reference to the last RTB to have the focus. Handle the GotFocus event of all your RTB's and set this flag pointing to the one that got the focus. Then, in your button click event, you'll know which RTB had the focus last without having to iterate through all the controls on the form.


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: Problem with changing font style, please help Pin
OnlyTaz7-Jul-05 10:46
OnlyTaz7-Jul-05 10:46 
GeneralRe: Problem with changing font style, please help Pin
Dave Kreskowiak8-Jul-05 0:55
mveDave Kreskowiak8-Jul-05 0:55 
GeneralRe: port Pin
Christian Graus6-Jul-05 17:05
protectorChristian Graus6-Jul-05 17:05 
GeneralRe: port Pin
mav.northwind6-Jul-05 22:24
mav.northwind6-Jul-05 22:24 
GeneralSystem.Windows.Forms; under terminal application Pin
qudayong6-Jul-05 16:12
qudayong6-Jul-05 16:12 
GeneralRe: System.Windows.Forms; under terminal application Pin
S. Senthil Kumar6-Jul-05 20:52
S. Senthil Kumar6-Jul-05 20:52 
GeneralRe: System.Windows.Forms; under terminal application Pin
qudayong7-Jul-05 1:53
qudayong7-Jul-05 1:53 
GeneralRe: System.Windows.Forms; under terminal application Pin
S. Senthil Kumar7-Jul-05 2:28
S. Senthil Kumar7-Jul-05 2:28 
GeneralUser Control Transparency Problems... Pin
rcurrie6-Jul-05 13:14
rcurrie6-Jul-05 13:14 
GeneralRe: User Control Transparency Problems... Pin
rcurrie6-Jul-05 13:56
rcurrie6-Jul-05 13:56 
Generalcreate a form without close minimize and maximize buttons Pin
Sasuko6-Jul-05 12:55
Sasuko6-Jul-05 12:55 
GeneralRe: create a form without close minimize and maximize buttons Pin
Christian Graus6-Jul-05 13:17
protectorChristian Graus6-Jul-05 13:17 
GeneralRe: create a form without close minimize and maximize buttons Pin
Shashidharreddy6-Jul-05 19:41
Shashidharreddy6-Jul-05 19:41 
General(C#) XML Transformation help Pin
krayan0016-Jul-05 11:40
krayan0016-Jul-05 11:40 
GeneralDifferences came from debug and release Pin
Sasuko6-Jul-05 11:03
Sasuko6-Jul-05 11:03 
GeneralRe: Differences came from debug and release Pin
Guffa6-Jul-05 11:09
Guffa6-Jul-05 11:09 
GeneralRe: Differences came from debug and release Pin
Sasuko6-Jul-05 12:53
Sasuko6-Jul-05 12:53 

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.