Click here to Skip to main content
16,008,299 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: CINT Pin
tatchung7-Sep-05 19:50
tatchung7-Sep-05 19:50 
GeneralRe: CINT Pin
Christian Graus7-Sep-05 19:59
protectorChristian Graus7-Sep-05 19:59 
GeneralRe: CINT Pin
tatchung7-Sep-05 20:04
tatchung7-Sep-05 20:04 
GeneralRe: CINT Pin
Dave Kreskowiak8-Sep-05 1:56
mveDave Kreskowiak8-Sep-05 1:56 
Answer[Message Deleted] Pin
Steve Pullan7-Sep-05 19:05
Steve Pullan7-Sep-05 19:05 
QuestionChange Font map on windows Pin
dmtuan7-Sep-05 17:15
dmtuan7-Sep-05 17:15 
QuestionRichTextBox FontStyles Pin
Taen_Karth7-Sep-05 15:23
Taen_Karth7-Sep-05 15:23 
AnswerRe: RichTextBox FontStyles Pin
Taen_Karth7-Sep-05 15:59
Taen_Karth7-Sep-05 15:59 
Nevermind I figured out a way to work around it by using the following code.

Try<br />
            If tsbBold.Checked = False Then<br />
                tsbBold.Checked = True<br />
                For Each ctl As Control In TabControl1.SelectedTab.Controls<br />
                    If TypeOf ctl Is RichTextBox Then<br />
                        Dim rtb As RichTextBox<br />
                        rtb = ctl<br />
                        Dim selBold As New Font(rtb.Font, FontStyle.Bold)<br />
                        rtb.SelectionFont = selBold<br />
                    End If<br />
                Next<br />
            ElseIf tsbBold.Checked = True Then<br />
                tsbBold.Checked = False<br />
                For Each ctl As Control In TabControl1.SelectedTab.Controls<br />
                    If TypeOf ctl Is RichTextBox Then<br />
                        Dim rtb As RichTextBox<br />
                        rtb = ctl<br />
                        Dim selNotBold As New Font(rtb.Font, FontStyle.Regular)<br />
                        rtb.SelectionFont = selNotBold<br />
                    End If<br />
                Next<br />
            End If<br />
        Catch ex As Exception<br />
            MessageBox.Show(MsgBoxStyle.Exclamation, "An error has occured. Please try your selection again")<br />
        End Try


If there is a better or easier way please let me know.


Thanks,

Taen Karth
Questionsome guidance in making project setup Pin
monica2k7-Sep-05 14:39
monica2k7-Sep-05 14:39 
QuestionHow to delete a row from a datagrid:-( Pin
macupryk7-Sep-05 14:38
macupryk7-Sep-05 14:38 
AnswerRe: How to delete a row from a datagrid:-( Pin
mcgann8-Sep-05 4:54
mcgann8-Sep-05 4:54 
QuestionOdbc Parameter error Pin
Mark067-Sep-05 11:53
Mark067-Sep-05 11:53 
QuestionOutlook Mapi older failure Pin
Member 20812627-Sep-05 10:53
Member 20812627-Sep-05 10:53 
QuestionForm Height Pin
No-e7-Sep-05 5:31
No-e7-Sep-05 5:31 
AnswerRe: Form Height Pin
Dave Kreskowiak7-Sep-05 5:39
mveDave Kreskowiak7-Sep-05 5:39 
GeneralRe: Form Height Pin
No-e7-Sep-05 5:45
No-e7-Sep-05 5:45 
QuestionHow do you hide a tabPage within a tabcontrol Pin
directred7-Sep-05 4:06
directred7-Sep-05 4:06 
AnswerRe: How do you hide a tabPage within a tabcontrol Pin
rwestgraham7-Sep-05 11:15
rwestgraham7-Sep-05 11:15 
GeneralRe: How do you hide a tabPage within a tabcontrol Pin
directred8-Sep-05 4:23
directred8-Sep-05 4:23 
GeneralRe: How do you hide a tabPage within a tabcontrol Pin
KaptinKrunch8-Sep-05 8:15
KaptinKrunch8-Sep-05 8:15 
GeneralRe: How do you hide a tabPage within a tabcontrol Pin
rwestgraham9-Sep-05 10:05
rwestgraham9-Sep-05 10:05 
QuestionSorting........ Pin
daviiie7-Sep-05 2:09
daviiie7-Sep-05 2:09 
AnswerRe: Sorting........ Pin
Colin Angus Mackay7-Sep-05 10:42
Colin Angus Mackay7-Sep-05 10:42 
QuestionDisable Insert in Datagrid Pin
Tim Emjay7-Sep-05 1:54
Tim Emjay7-Sep-05 1:54 
AnswerRe: Disable Insert in Datagrid Pin
_mubashir7-Sep-05 5:31
_mubashir7-Sep-05 5:31 

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.