Click here to Skip to main content
15,908,834 members
Home / Discussions / C#
   

C#

 
GeneralRe: UdpClient class Pin
Dave Kreskowiak8-Jul-05 1:29
mveDave Kreskowiak8-Jul-05 1:29 
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 
I have a windows form with several richtextboxes. I have created a button which fires the fontDialogue to change the style of the selected font.

When I select the text to be changed and then click the button to change the font style the richtextbox control loses focus. However the style still gets applied to the tex that was selected.

The problem I have is when changing the font style of text within another richtextbox the previously selected text from the first richtextbox changes also.

How can test to see which control has text selected?

Here is the button event trigger:

private void btnFontStyle_Click(object sender, System.EventArgs e)
{
if(this.fontDialog1.ShowDialog() == DialogResult.OK)
{
foreach(Control ctrl in this.pnlMain.Controls)
{
if(ctrl.GetType() == typeof(System.Windows.Forms.RichTextBox))
{
if (((System.Windows.Forms.RichTextBox)ctrl).Modified)
((System.Windows.Forms.RichTextBox)ctrl).SelectionFont = this.fontDialog1.Font;
}
}
}

}

GeneralRe: Problem with changing font style, please help Pin
Dave Kreskowiak7-Jul-05 5:33
mveDave Kreskowiak7-Jul-05 5:33 
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 

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.