-
May 29th, 2017, 08:05 PM
#1
Thread Starter
New Member
Application That Doesn't Open a Form on Load
Looking for a way to have the application run code when opened but not show any interface or program on the task bar (but still create a process for the app). Thanks!
-
May 29th, 2017, 08:11 PM
#2
Re: Application That Doesn't Open a Form on Load
You mean like a Console application?
-tg
-
May 29th, 2017, 08:14 PM
#3
Thread Starter
New Member
Re: Application That Doesn't Open a Form on Load
Originally Posted by techgnome
You mean like a Console application?
-tg
I'm really new to vb.net, so I guess? How would I go about setting that up? My apologies
-
May 29th, 2017, 08:26 PM
#4
Re: Application That Doesn't Open a Form on Load
What do you want your app to actually do? A console application will display a console window but there will be no interaction with the user unless you write to or read from the console. It's possible to display no feedback to the user at all but that's usually considered a bit dodgy. Would it perhaps be appropriate to display an icon in the system tray while your app is running? Note that, while you may be new to creating software in VB.NET, you're not necessarily new to using software so you should be able to describe the app from a user's perspective at least.
-
May 29th, 2017, 10:05 PM
#5
Thread Starter
New Member
Re: Application That Doesn't Open a Form on Load
Originally Posted by jmcilhinney
What do you want your app to actually do? A console application will display a console window but there will be no interaction with the user unless you write to or read from the console. It's possible to display no feedback to the user at all but that's usually considered a bit dodgy. Would it perhaps be appropriate to display an icon in the system tray while your app is running? Note that, while you may be new to creating software in VB.NET, you're not necessarily new to using software so you should be able to describe the app from a user's perspective at least.
Thanks for the reply. Yes, it may seem dodgy, but this is for personal use only. Using a console project still opens up a console. My goal is to have it open up nothing.
-
May 29th, 2017, 10:37 PM
#6
Re: Application That Doesn't Open a Form on Load
You can create a Windows Forms application, disable the Application Framework in the project settings, create your own Main method in a module and make that the startup object, then just do everything you want there without creating a form.
-
May 29th, 2017, 11:44 PM
#7
Thread Starter
New Member
Re: Application That Doesn't Open a Form on Load
Originally Posted by jmcilhinney
You can create a Windows Forms application, disable the Application Framework in the project settings, create your own Main method in a module and make that the startup object, then just do everything you want there without creating a form.
Would you mind explaining to me how to use methods/modules and where code would go in those respective areas? Appreciate the help!
Last edited by avengedev; May 29th, 2017 at 11:54 PM.
-
May 30th, 2017, 12:17 AM
#8
Re: Application That Doesn't Open a Form on Load
Originally Posted by avengedev
Would you mind explaining to me how to use methods/modules
I would actually. I'm more than happy to help with the difficult stuff but we can't really go over the basics for everyone individually. If you need a grounding in the basics then I suggest that you follow the beginners tutorial link in my signature below. It's quite useful. Once you've got a grasp of the fundamentals, try again and we can help if you come up against specific issues.
-
May 30th, 2017, 12:23 AM
#9
Thread Starter
New Member
Re: Application That Doesn't Open a Form on Load
Originally Posted by jmcilhinney
I would actually. I'm more than happy to help with the difficult stuff but we can't really go over the basics for everyone individually. If you need a grounding in the basics then I suggest that you follow the beginners tutorial link in my signature below. It's quite useful. Once you've got a grasp of the fundamentals, try again and we can help if you come up against specific issues.
Will do. Thanks for the help!
-
May 30th, 2017, 12:02 PM
#10
Re: Application That Doesn't Open a Form on Load
If you are looking for a good tutorial/reference site, many people around here point to http://www.homeandlearn.co.uk/NET/vbNet.html
My usual boring signature: Nothing
-
May 30th, 2017, 06:39 PM
#11
Re: Application That Doesn't Open a Form on Load
Originally Posted by Shaggy Hiker
As does that link in my signature.
-
May 30th, 2017, 07:46 PM
#12
Re: Application That Doesn't Open a Form on Load
The links in your signature are good browsing in general. I feel that you've done the best job on drag-and-drop that I've ever read.
My usual boring signature: Nothing
-
May 30th, 2017, 08:24 PM
#13
Re: Application That Doesn't Open a Form on Load
Originally Posted by Shaggy Hiker
I feel that you've done the best job on drag-and-drop that I've ever read.
You're going to make me .
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|