inkedgfx
Well-known member
I am trying to add a font dialog to my program...but whenever the code is fired the font dialog appears twice...when I run the program and click the buttom the font dialog appears..when I choose the font and size then click ok the dialog dissappears then reappears again..below is the code:
dim fontdlg as new fontdialog
dim colordlg as new colordialog
fontdlg.showdialog()
try
if (fontdlg.showdialog) = windows.forms.dialogresult.ok) then
fontdlg.showcolor = true
fontdlg.showapply = false
fontdlg.showeffects = false
fontdlg.maxsize = 72
myFont = fontdlg.font
colordlg.showdialog()
myWaterMarkColor = colordlg.color
end if
this results in the fontdialog showing twice in a row. also I added the color dialog because i couldnt get the fontdialog to show the color "fontdlg.showcolor" didnt add the color to the dialog.
any help is appreciated
thank you
InkedGFX
dim fontdlg as new fontdialog
dim colordlg as new colordialog
fontdlg.showdialog()
try
if (fontdlg.showdialog) = windows.forms.dialogresult.ok) then
fontdlg.showcolor = true
fontdlg.showapply = false
fontdlg.showeffects = false
fontdlg.maxsize = 72
myFont = fontdlg.font
colordlg.showdialog()
myWaterMarkColor = colordlg.color
end if
this results in the fontdialog showing twice in a row. also I added the color dialog because i couldnt get the fontdialog to show the color "fontdlg.showcolor" didnt add the color to the dialog.
any help is appreciated
thank you
InkedGFX