Click here to Skip to main content
16,005,339 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Saving onto text file in VB.NET Pin
GaryWoodfine 3-Nov-06 0:19
professionalGaryWoodfine 3-Nov-06 0:19 
QuestionConverting string to integer Pin
Subjugate2-Nov-06 14:45
Subjugate2-Nov-06 14:45 
AnswerRe: Converting string to integer Pin
ChandraRam2-Nov-06 23:15
ChandraRam2-Nov-06 23:15 
QuestionUnknown Crash!! Pin
UltraCoder2-Nov-06 12:57
UltraCoder2-Nov-06 12:57 
AnswerRe: Unknown Crash!! Pin
Dave Kreskowiak2-Nov-06 15:50
mveDave Kreskowiak2-Nov-06 15:50 
GeneralRe: Unknown Crash!! Pin
UltraCoder2-Nov-06 16:14
UltraCoder2-Nov-06 16:14 
GeneralRe: Unknown Crash!! Pin
UltraCoder2-Nov-06 16:25
UltraCoder2-Nov-06 16:25 
GeneralRe: Unknown Crash!! Pin
Dave Sexton2-Nov-06 19:36
Dave Sexton2-Nov-06 19:36 
It won't run outside of a method. Put it in the event handler that handles the printing as

Dim PrintFont As New Font(RichTextBox.Font, RichTextBox.Font.Size)

I'm not sure of why the error occurs, I think it has to do with the InitializeComponent() call of the form - you're getting a NullReferenceException as the font has been declared before the
RichTextBox has and the compiler doesn't "think" the RichTextBox exists yet.

At least that's what I think, I stand under correction but it makes sense.
GeneralRe: Unknown Crash!! Pin
Dave Kreskowiak3-Nov-06 1:30
mveDave Kreskowiak3-Nov-06 1:30 
GeneralRe: Unknown Crash!! Pin
UltraCoder3-Nov-06 14:02
UltraCoder3-Nov-06 14:02 
GeneralRe: Unknown Crash!! Pin
Dave Kreskowiak3-Nov-06 18:27
mveDave Kreskowiak3-Nov-06 18:27 
QuestionCalling an excel function Pin
Mark062-Nov-06 12:31
Mark062-Nov-06 12:31 
AnswerRe: Calling an excel function Pin
OldWarhorse2-Nov-06 16:34
OldWarhorse2-Nov-06 16:34 
QuestionVBA in Excel - Passing name to function Pin
TheJudeDude2-Nov-06 10:44
TheJudeDude2-Nov-06 10:44 
AnswerRe: VBA in Excel - Passing name to function Pin
OldWarhorse2-Nov-06 15:26
OldWarhorse2-Nov-06 15:26 
AnswerRe: VBA in Excel - Passing name to function Pin
Dave Kreskowiak2-Nov-06 15:42
mveDave Kreskowiak2-Nov-06 15:42 
QuestionMultiple SiteMapProviders Pin
nlindley72-Nov-06 10:16
nlindley72-Nov-06 10:16 
QuestionInsert/Overwrite Pin
UltraCoder2-Nov-06 9:04
UltraCoder2-Nov-06 9:04 
AnswerRe: Insert/Overwrite Pin
Guffa2-Nov-06 9:24
Guffa2-Nov-06 9:24 
GeneralRe: Insert/Overwrite Pin
UltraCoder2-Nov-06 9:40
UltraCoder2-Nov-06 9:40 
GeneralRe: Insert/Overwrite Pin
nlarson112-Nov-06 10:24
nlarson112-Nov-06 10:24 
GeneralRe: Insert/Overwrite Pin
UltraCoder2-Nov-06 10:37
UltraCoder2-Nov-06 10:37 
GeneralRe: Insert/Overwrite Pin
nlarson112-Nov-06 10:56
nlarson112-Nov-06 10:56 
GeneralRe: Insert/Overwrite Pin
UltraCoder2-Nov-06 11:05
UltraCoder2-Nov-06 11:05 
QuestionScreensaver Command Line Arguments Pin
Quasarchangel2-Nov-06 5:03
Quasarchangel2-Nov-06 5:03 

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.