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

Visual Basic

 
AnswerRe: Opening a file Pin
Steve Pullan29-Sep-05 14:19
Steve Pullan29-Sep-05 14:19 
AnswerRe: Opening a file Pin
Briga30-Sep-05 3:46
Briga30-Sep-05 3:46 
QuestionI would to read my public Ip of my system Pin
Anonymous29-Sep-05 9:28
Anonymous29-Sep-05 9:28 
AnswerRe: I would to read my public Ip of my system Pin
Dave Kreskowiak29-Sep-05 9:41
mveDave Kreskowiak29-Sep-05 9:41 
QuestionServer.UrlEncode and Quote character Pin
gsimp29-Sep-05 8:36
gsimp29-Sep-05 8:36 
AnswerRe: Server.UrlEncode and Quote character Pin
Dave Kreskowiak29-Sep-05 9:47
mveDave Kreskowiak29-Sep-05 9:47 
GeneralRe: Server.UrlEncode and Quote character Pin
gsimp29-Sep-05 10:12
gsimp29-Sep-05 10:12 
QuestionSaving font parameters to a Text file Pin
29-Sep-05 7:34
suss29-Sep-05 7:34 
I would like to save the Font properties of the control in a text .ini file to retreive these properties by reading again the file.

There is a brute force way of doing like:

sw.WriteLine(ListView1.ForeColor)
sw.WriteLine(ListView1.BackColor)
sw.WriteLine(ListView1.Font)

It gives the following result(by example):

Color [WindowText]
Color [WhiteSmoke]
[Font: Name=Arial, Size=9,75, Units=3, GdiCharSet=0, GdiVerticalFont=False]

Then to retreive the properties we must parse each lines to extract the values.
This is wordy and not very elegant.
Is there somebody having a smarter way of doing?

Thank's in advance.


Patrice

-- modified at 13:52 Thursday 29th September, 2005
AnswerRe: Saving font parameters to a Text file Pin
militiaware29-Sep-05 14:23
militiaware29-Sep-05 14:23 
GeneralRe: Saving font parameters to a Text file Pin
PatriceB29-Sep-05 23:54
PatriceB29-Sep-05 23:54 
GeneralRe: Saving font parameters to a Text file Pin
militiaware30-Sep-05 3:50
militiaware30-Sep-05 3:50 
GeneralRe: Saving font parameters to a Text file Pin
PatriceB30-Sep-05 6:52
PatriceB30-Sep-05 6:52 
GeneralRe: Saving font parameters to a Text file Pin
rwestgraham30-Sep-05 9:46
rwestgraham30-Sep-05 9:46 
GeneralRe: Saving font parameters to a Text file Pin
PatriceB30-Sep-05 13:56
PatriceB30-Sep-05 13:56 
GeneralRe: Saving font parameters to a Text file Pin
rwestgraham30-Sep-05 15:40
rwestgraham30-Sep-05 15:40 
GeneralRe: Saving font parameters to a Text file Pin
PatriceB1-Oct-05 1:44
PatriceB1-Oct-05 1:44 
GeneralRe: Saving font parameters to a Text file Pin
PatriceB1-Oct-05 6:12
PatriceB1-Oct-05 6:12 
GeneralRe: Saving font parameters to a Text file Pin
rwestgraham1-Oct-05 10:50
rwestgraham1-Oct-05 10:50 
QuestionPushing data to Excel Pin
Member 228077329-Sep-05 6:32
Member 228077329-Sep-05 6:32 
QuestionExport to app.config file Pin
PHDENG8129-Sep-05 6:26
PHDENG8129-Sep-05 6:26 
QuestionEfficient way to clear all controls on page Pin
jszpila29-Sep-05 6:24
jszpila29-Sep-05 6:24 
AnswerRe: Efficient way to clear all controls on page Pin
_mubashir29-Sep-05 23:12
_mubashir29-Sep-05 23:12 
GeneralRe: Efficient way to clear all controls on page Pin
jszpila30-Sep-05 4:14
jszpila30-Sep-05 4:14 
GeneralRe: Efficient way to clear all controls on page Pin
jszpila30-Sep-05 4:23
jszpila30-Sep-05 4:23 
Questioncontextmenu right click Pin
andy3829-Sep-05 6:04
andy3829-Sep-05 6:04 

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.