Click here to Skip to main content
15,905,682 members
Home / Discussions / C#
   

C#

 
GeneralRe: Need help Pin
Paul Conrad23-Dec-07 7:09
professionalPaul Conrad23-Dec-07 7:09 
Generalset font from string Pin
Xmen Real 18-Dec-07 18:41
professional Xmen Real 18-Dec-07 18:41 
GeneralRe: set font from string Pin
Giorgi Dalakishvili18-Dec-07 19:35
mentorGiorgi Dalakishvili18-Dec-07 19:35 
GeneralRe: set font from string Pin
Xmen Real 18-Dec-07 19:38
professional Xmen Real 18-Dec-07 19:38 
GeneralRe: set font from string Pin
Giorgi Dalakishvili18-Dec-07 20:12
mentorGiorgi Dalakishvili18-Dec-07 20:12 
GeneralRe: set font from string Pin
Xmen Real 18-Dec-07 20:24
professional Xmen Real 18-Dec-07 20:24 
GeneralRe: set font from string Pin
Giorgi Dalakishvili18-Dec-07 20:32
mentorGiorgi Dalakishvili18-Dec-07 20:32 
GeneralRe: set font from string Pin
Adeel Chaudhry18-Dec-07 20:54
Adeel Chaudhry18-Dec-07 20:54 
Hello,

You will have to pre-process the data read from file.

Like if the data in file is "[Font: Name=Georgia, Size=8.25, Units=3, GdiCharSet=0, GdiVerticalFont=False]", you will have to do something like:

this.Font= new Font(data.substring(11,18),....)=new Font("Georgia", 8.25, 3, 0, False)

Also, do have a look at the overloaded constructors, they will help you in pre-processing the data.

Hope that helps!

Regards,

Adeel
Do rate the reply, if it helps or even if it doesnot, because it helps the members to know, what solved the issue. Thanks.

GeneralRe: set font from string Pin
Xmen Real 19-Dec-07 3:28
professional Xmen Real 19-Dec-07 3:28 
GeneralRe: set font from string Pin
Paul Conrad23-Dec-07 7:10
professionalPaul Conrad23-Dec-07 7:10 
GeneralRe: set font from string Pin
Xmen Real 23-Dec-07 14:53
professional Xmen Real 23-Dec-07 14:53 
GeneralRe: set font from string Pin
Paul Conrad23-Dec-07 14:59
professionalPaul Conrad23-Dec-07 14:59 
GeneralSql version... Pin
tasumisra18-Dec-07 18:20
tasumisra18-Dec-07 18:20 
GeneralRe: Sql version... Pin
DigiOz Multimedia18-Dec-07 18:48
DigiOz Multimedia18-Dec-07 18:48 
GeneralRe: Sql version... Pin
tasumisra18-Dec-07 20:29
tasumisra18-Dec-07 20:29 
GeneralRe: Sql version... Pin
Stu Richardson19-Dec-07 0:56
Stu Richardson19-Dec-07 0:56 
GeneralRe: Sql version... Pin
tasumisra19-Dec-07 1:07
tasumisra19-Dec-07 1:07 
GeneralRe: Sql version... Pin
Stu Richardson19-Dec-07 1:32
Stu Richardson19-Dec-07 1:32 
GeneralRe: Sql version... Pin
tasumisra19-Dec-07 17:34
tasumisra19-Dec-07 17:34 
GeneralRe: Sql version... Pin
Stu Richardson19-Dec-07 21:46
Stu Richardson19-Dec-07 21:46 
QuestionHow to use Clipboard in System.Timers.Timer? Pin
surfingcode18-Dec-07 17:00
surfingcode18-Dec-07 17:00 
AnswerRe: How to use Clipboard in System.Timers.Timer? Pin
TJoe20-Dec-07 3:15
TJoe20-Dec-07 3:15 
Generalstring character checking Pin
azusakt18-Dec-07 16:15
azusakt18-Dec-07 16:15 
GeneralRe: string character checking Pin
PIEBALDconsult18-Dec-07 16:22
mvePIEBALDconsult18-Dec-07 16:22 
GeneralRe: string character checking Pin
azusakt18-Dec-07 17:03
azusakt18-Dec-07 17: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.