A
active
A few questions about the FontDialog and dealing with Fonts
Is it necessary to pass the parameters ByRef so that updated values can be
returned.?
I wouldn't think it is necessary for the font but is required for the color.
Is that correct??
Private Sub DialogSetFontVariable(ByRef acolor As Drawing.Color, ByRef
audtFontVariable As Font)
Dim FontDialog1 As New FontDialog
FontDialog1.Font = audtFontVariable ????Does this mean changes made by the
dialog are made to audtFontVariable????
FontDialog1.ShowColor = True
FontDialog1.Color = acolor
If FontDialog1.ShowDialog() <> DialogResult.Cancel Then
audtFontVariable = FontDialog1.Font.Clone ????Is this needed to update
audtFontVariable????Is clone necessary??
acolor = FontDialog1.Color ????Is this needed to update aColor????
End If
Thanks in advance for any answers,
Cal
Is it necessary to pass the parameters ByRef so that updated values can be
returned.?
I wouldn't think it is necessary for the font but is required for the color.
Is that correct??
Private Sub DialogSetFontVariable(ByRef acolor As Drawing.Color, ByRef
audtFontVariable As Font)
Dim FontDialog1 As New FontDialog
FontDialog1.Font = audtFontVariable ????Does this mean changes made by the
dialog are made to audtFontVariable????
FontDialog1.ShowColor = True
FontDialog1.Color = acolor
If FontDialog1.ShowDialog() <> DialogResult.Cancel Then
audtFontVariable = FontDialog1.Font.Clone ????Is this needed to update
audtFontVariable????Is clone necessary??
acolor = FontDialog1.Color ????Is this needed to update aColor????
End If
Thanks in advance for any answers,
Cal