9 Replies - 500 Views - Last Post: 18 September 2011 - 02:26 PM Rate Topic: -----

#1 riverway  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • 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  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 96
  • View blog
  • 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/
Was This Post Helpful? 2
  • +
  • -

#3 riverway  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • 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?
Was This Post Helpful? 0
  • +
  • -

#4 DimitriV  Icon User is offline

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

Reputation: 562
  • View blog
  • Posts: 2,685
  • 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.
Was This Post Helpful? 1
  • +
  • -

#5 riverway  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • 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

Was This Post Helpful? 0
  • +
  • -

#6 DimitriV  Icon User is offline

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

Reputation: 562
  • View blog
  • Posts: 2,685
  • 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.
Was This Post Helpful? 0
  • +
  • -

#7 DimitriV  Icon User is offline

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

Reputation: 562
  • View blog
  • Posts: 2,685
  • 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.
Was This Post Helpful? 0
  • +
  • -

#8 riverway  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • 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?
Was This Post Helpful? 0
  • +
  • -

#9 DimitriV  Icon User is offline

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

Reputation: 562
  • View blog
  • Posts: 2,685
  • 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!
Was This Post Helpful? 0
  • +
  • -

#10 _HAWK_  Icon User is offline

  • Master(Of Foo)
  • member icon

Reputation: 1030
  • View blog
  • Posts: 4,011
  • 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

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1