Click here to Skip to main content
15,921,622 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHide ME Pin
militiaware25-Sep-05 12:29
militiaware25-Sep-05 12:29 
AnswerRe: Hide ME Pin
Dave Kreskowiak25-Sep-05 16:38
mveDave Kreskowiak25-Sep-05 16:38 
QuestionI'm Bolding Pin
medicenpringles25-Sep-05 10:43
medicenpringles25-Sep-05 10:43 
AnswerRe: I'm Bolding Pin
medicenpringles26-Sep-05 5:46
medicenpringles26-Sep-05 5:46 
QuestionLoad Boot.ini to RichTextBox Pin
andyr200525-Sep-05 10:04
andyr200525-Sep-05 10:04 
AnswerRe: Load Boot.ini to RichTextBox Pin
rwestgraham25-Sep-05 11:23
rwestgraham25-Sep-05 11:23 
GeneralRe: Load Boot.ini to RichTextBox Pin
andyr200525-Sep-05 11:44
andyr200525-Sep-05 11:44 
GeneralRe: Load Boot.ini to RichTextBox Pin
rwestgraham25-Sep-05 12:16
rwestgraham25-Sep-05 12:16 
No, the options I am referring to come directly from the boot.ini. Here is what mine looks like:

--------------------------------------------------------------------------

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINNT
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microsoft Windows 2000 Professional" /fastdetect
multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Microsoft Windows XP Professional" /fastdetect

--------------------------------------------------------------------------

What this means is I have two partitions, 1 has WINNT, 2 has WIN XP.

When my machine boots, the screen comes up with WINNT option listed first, WINXP listed second. That is controlled by the order of the two entries in the [operating systems] section.

If I change the order of the two entries, and NOTHING else should be changed in that section ORDER IS THE ONLY THING YOU CAN CHANGE! then Win XP would appear as the first option instead.

My machine also defaults to WINNT. If I changed this to:

default=multi(0)disk(0)rdisk(0)partition(2)\WINDOWS

then Win XP would be already selected, even if it was not the first in the list.

And timeout is set to 30 - if I do nothing then after 30 seconds the default OS is loaded.

Those are the options controlled by BOOT.INI file.

So instead of using a multiline textbox, I would use for example, a textbox where the user can change the time out value from 30 seconds to whatever.

Then I would use a list box, and add items into it "Windows 2000", "Windows XP" and let them select which they wanted as their default OS.

I would not bother with giving them anything to change the order the OS options appear. I would just write code so that whenever they select a default, that option is automatically moved to the top of the list.

You can open the file and parse it manualy line by line, or you can use built-in Win32 APIs that are specific for wsorking with INI files that will read and write them without you having to parse them by line.

But most users who even have partitions and multiple windows versions configured are "advanced" users. The average user only has one version of Windows installed, so the only option they would have to even change would be the timeout. So I am not sure why you really are even interested in this at all?

But if you want it, I have a module written in VB.NET that wraps the INI APIs into simple function calls that will read and write an INI file with no parsing etc....

GeneralRe: Load Boot.ini to RichTextBox Pin
andyr200525-Sep-05 12:35
andyr200525-Sep-05 12:35 
QuestionDeserialization Problem Pin
THEMYTH25-Sep-05 9:37
THEMYTH25-Sep-05 9:37 
QuestionControl Word in OLE Pin
cop125-Sep-05 5:31
cop125-Sep-05 5:31 
QuestionSave Query "Image" problem Pin
bl@ck_rose25-Sep-05 2:44
bl@ck_rose25-Sep-05 2:44 
AnswerRe: Save Query "Image" problem Pin
cop125-Sep-05 3:35
cop125-Sep-05 3:35 
QuestionRe: Save Query "Image" problem Pin
bl@ck_rose25-Sep-05 3:46
bl@ck_rose25-Sep-05 3:46 
AnswerRe: Save Query "Image" problem Pin
cop125-Sep-05 5:13
cop125-Sep-05 5:13 
QuestionQuestion on set text in combo box Pin
cop125-Sep-05 2:38
cop125-Sep-05 2:38 
AnswerRe: Question on set text in combo box Pin
jo0ls25-Sep-05 6:57
jo0ls25-Sep-05 6:57 
QuestionExcel sheet Pin
ybasha25-Sep-05 0:10
ybasha25-Sep-05 0:10 
AnswerRe: Excel sheet Pin
cop125-Sep-05 4:34
cop125-Sep-05 4:34 
AnswerRe: Excel sheet Pin
cop12-Oct-05 18:45
cop12-Oct-05 18:45 
QuestionDetectig in an application is loaded Pin
subscr2224-Sep-05 23:01
subscr2224-Sep-05 23:01 
AnswerRe: Detectig in an application is loaded Pin
jo0ls25-Sep-05 7:03
jo0ls25-Sep-05 7:03 
AnswerRe: Detecting if an application is loaded Pin
subscr2225-Sep-05 13:36
subscr2225-Sep-05 13:36 
Questiondatagrid Pin
dap_qk24-Sep-05 22:17
dap_qk24-Sep-05 22:17 
AnswerRe: datagrid Pin
_mubashir25-Sep-05 23:58
_mubashir25-Sep-05 23:58 

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.