Windows Start

Page 1 of 1

9 Replies - 612 Views - Last Post: 18 September 2011 - 02:26 PMRate Topic: //<![CDATA[ rating = new ipb.rating( 'topic_rate_', { url: 'http://www.dreamincode.net/forums/index.php?app=forums&module=ajax&section=topics&do=rateTopic&t=247577&amp;s=976ba9a7862015e6395fbbe892d31029&md5check=' + ipb.vars['secure_hash'], cur_rating: 0, rated: 0, allow_rate: 0, multi_rate: 1, show_rate_text: true } ); //]]>

#1 riverway

Reputation: 0
• Posts: 37
• Joined: 25-June 11

Windows Start

Posted 17 September 2011 - 06:07 PM

I am developing an application un vb.net and i want that (if possible) when windows starts my application starts with windows,and give the user (in a checkbox) to choose if he wants the app to start with windows.
The app has many forms, is there a form that if the app starts with windows some forms just show?
Is This A Good Question/Topic? 0

Replies To: Windows Start

#2 m_wylie85

Reputation: 96
• Posts: 899
• Joined: 15-October 10

Re: Windows Start

Posted 17 September 2011 - 06:19 PM

take a look at this

http://www.dreaminco...windows-starts/

#3 riverway

Reputation: 0
• Posts: 37
• Joined: 25-June 11

Re: Windows Start

Posted 17 September 2011 - 07:04 PM

I did it,when i look at the windows starting programmes it is there but it's not showing the form,why?

#4 DimitriV

• They don't think it be like it is, but it do

Reputation: 584
• Posts: 2,738
• Joined: 24-July 11

Re: Windows Start

Posted 17 September 2011 - 07:14 PM

Id guess that maybe there's something wrong with your Application Events -> go to the My Project in the Solution Explorer and then click View Application Events.

#5 riverway

Reputation: 0
• Posts: 37
• Joined: 25-June 11

Re: Windows Start

Posted 17 September 2011 - 07:17 PM

edit,thanks jimmy and wylie i give you some +

Now i have a little problem.
When the app starts the user chooses from some checkboxes which forms to show(lets say form 1 , form2 or form3) if i want that when windows starts to show just the forms that the user chose,is it possible?

This post has been edited by riverway: 17 September 2011 - 07:30 PM

#6 DimitriV

• They don't think it be like it is, but it do

Reputation: 584
• Posts: 2,738
• Joined: 24-July 11

Re: Windows Start

Posted 17 September 2011 - 10:41 PM

You could write preference files (*.txt) and then insert a startup manager form that reads those preferences and if, say, text1 is yes, text2 is no and text3 is yes it will show them accordingly.
If you need an example just ask.

#7 DimitriV

• They don't think it be like it is, but it do

Reputation: 584
• Posts: 2,738
• Joined: 24-July 11

Re: Windows Start

Posted 17 September 2011 - 11:52 PM

Or, on the "Launch These Forms" button, add a little logic:
```if checkbox1.checked=true then
form1.show()
```

and essentially repeat this for all of the boxes you need to test.

#8 riverway

Reputation: 0
• Posts: 37
• Joined: 25-June 11

Re: Windows Start

Posted 18 September 2011 - 01:00 PM

Yeah i did it but i have to use lots of timers to check.
For ex,
timer 1 checks if the checkbox is checked, if it is it writes to a txt file a 1 if it isn't checked it writes a 0.
timer 2 uses a streamreader to check the file for a 1 so the form is showed and the main form is closed or to hide the form and show the main form.
and many more,is this way or am i complicating it?

#9 DimitriV

• They don't think it be like it is, but it do

Reputation: 584
• Posts: 2,738
• Joined: 24-July 11

Re: Windows Start

Posted 18 September 2011 - 01:18 PM

Wow, that's a little more complicated than what I had in mind!

#10 _HAWK_

• Master(Of Foo)

Reputation: 1078
• Posts: 4,205
• Joined: 02-July 08

Re: Windows Start

Posted 18 September 2011 - 02:26 PM

When designing a complicated settings file I recommend a single xml file. Plus when you open the file into memory you can change settings as you go - if needed.

This post has been edited by hawkvalley1: 18 September 2011 - 02:28 PM