VB Help Needed!
2014-07-31, 06:01 PM, (This post was last modified: 2014-08-01, 03:20 AM by Nem.)
#1
Hey guys, does somebody know how to do this:

I am making some simple VB app and i have some troubles, I need this:

Before people press START, i want them to fill out every thing I made there, for example i made 5 text boxes and i want them to fill every each of them before they can press start.
And not just textboxes i want some Check boxes and things like that.

So my question is how to make code so people need to fill out everything before they press START

How to do that?


Problem #2

I have one more question:

How to make that my program when i click on button go to some page ( I know that ) But for example i want it to use google chrome and not mozilla.

Skype/Mail me for approving and join us on link below! SKYPE: nem.mgcash MAIL: nemanja@mgcash.com

[Image: Il4ZQYz.png]
Reply
2014-07-31, 06:21 PM,
#2
Hello,
I am not a VB programmer but C#, but the idea is the same (you can even find c# to VB converter online).
So let's say you have:
textBox1
textBox2
checkBox1

You can do this:
PHP Code:
if(textBox1.Text!="" && textBox2.Text!="" && checkBox1.Checked!=false)
{
//all is good
}
else
{
MessageBox.Show("You need to enter all fields first");


Hope it helps.
Reply
2014-08-01, 03:20 AM,
#3
Thanks man for this!

I have one more question:

How to make that my program when i click on button go to some page ( I know that ) But for example i want it to use google chrome and not mozilla.

Skype/Mail me for approving and join us on link below! SKYPE: nem.mgcash MAIL: nemanja@mgcash.com

[Image: Il4ZQYz.png]
Reply
2014-08-01, 05:30 AM,
#4
1. If Textbox1.Text = "" Then
MsgBox("message",MsgBoxStyle.Critical,"errortitle")
End If


2. System.Diagnostics.Process.Start("url")

This will start via default browser so if chrome is your def browser it will launch with it.
Reply
2014-08-01, 07:41 AM,
#5
(2014-08-01, 05:30 AM)Migos Wrote: 1. If Textbox1.Text = "" Then
MsgBox("message",MsgBoxStyle.Critical,"errortitle")
End If


2. System.Diagnostics.Process.Start("url")

This will start via default browser so if chrome is your def browser it will launch with it.

Well Chrome is my def browser, and that is why i want it to change in program. I don't want that VB opens in my def browser I want to chose in which program he will open it!

Skype/Mail me for approving and join us on link below! SKYPE: nem.mgcash MAIL: nemanja@mgcash.com

[Image: Il4ZQYz.png]
Reply
2014-08-01, 07:53 AM,
#6
(2014-08-01, 07:41 AM)Hypnotick Wrote:
(2014-08-01, 05:30 AM)Migos Wrote: 1. If Textbox1.Text = "" Then
MsgBox("message",MsgBoxStyle.Critical,"errortitle")
End If


2. System.Diagnostics.Process.Start("url")

This will start via default browser so if chrome is your def browser it will launch with it.

Well Chrome is my def browser, and that is why i want it to change in program. I don't want that VB opens in my def browser I want to chose in which program he will open it!

so you want it to open 1 browser only???
Reply
2014-08-01, 07:59 AM,
#7
(2014-08-01, 07:53 AM)Conley18 Wrote:
(2014-08-01, 07:41 AM)Hypnotick Wrote:
(2014-08-01, 05:30 AM)Migos Wrote: 1. If Textbox1.Text = "" Then
MsgBox("message",MsgBoxStyle.Critical,"errortitle")
End If


2. System.Diagnostics.Process.Start("url")

This will start via default browser so if chrome is your def browser it will launch with it.

Well Chrome is my def browser, and that is why i want it to change in program. I don't want that VB opens in my def browser I want to chose in which program he will open it!

so you want it to open 1 browser only???



Yea, for example I want to open it in Opera.
Even that my def browser is Chrome. I don't want to change that nor I want to open in him.

Skype/Mail me for approving and join us on link below! SKYPE: nem.mgcash MAIL: nemanja@mgcash.com

[Image: Il4ZQYz.png]
Reply
2014-08-01, 08:04 AM,
#8
(2014-08-01, 07:59 AM)Hypnotick Wrote:
(2014-08-01, 07:53 AM)Conley18 Wrote:
(2014-08-01, 07:41 AM)Hypnotick Wrote:
(2014-08-01, 05:30 AM)Migos Wrote: 1. If Textbox1.Text = "" Then
MsgBox("message",MsgBoxStyle.Critical,"errortitle")
End If


2. System.Diagnostics.Process.Start("url")

This will start via default browser so if chrome is your def browser it will launch with it.

Well Chrome is my def browser, and that is why i want it to change in program. I don't want that VB opens in my def browser I want to chose in which program he will open it!

so you want it to open 1 browser only???



Yea, for example I want to open it in Opera.
Even that my def browser is Chrome. I don't want to change that nor I want to open in him.

what if the user doesnt have opera :P
Reply
2014-08-01, 08:06 AM,
#9
(2014-08-01, 08:04 AM)Conley18 Wrote:
(2014-08-01, 07:59 AM)Hypnotick Wrote:
(2014-08-01, 07:53 AM)Conley18 Wrote:
(2014-08-01, 07:41 AM)Hypnotick Wrote:
(2014-08-01, 05:30 AM)Migos Wrote: 1. If Textbox1.Text = "" Then
MsgBox("message",MsgBoxStyle.Critical,"errortitle")
End If


2. System.Diagnostics.Process.Start("url")

This will start via default browser so if chrome is your def browser it will launch with it.

Well Chrome is my def browser, and that is why i want it to change in program. I don't want that VB opens in my def browser I want to chose in which program he will open it!

so you want it to open 1 browser only???



Yea, for example I want to open it in Opera.
Even that my def browser is Chrome. I don't want to change that nor I want to open in him.

what if the user doesnt have opera :P


This is for the personal use! :)
This is not game h@ck or something like that.

It is simple app that i want for my self! :)
So if you know how to do that, i would appreciate your help!

Skype/Mail me for approving and join us on link below! SKYPE: nem.mgcash MAIL: nemanja@mgcash.com

[Image: Il4ZQYz.png]
Reply
2014-08-01, 08:09 AM, (This post was last modified: 2014-08-01, 08:11 AM by Conley18.)
#10
(2014-08-01, 08:06 AM)Hypnotick Wrote:
(2014-08-01, 08:04 AM)Conley18 Wrote:
(2014-08-01, 07:59 AM)Hypnotick Wrote:
(2014-08-01, 07:53 AM)Conley18 Wrote:
(2014-08-01, 07:41 AM)Hypnotick Wrote: Well Chrome is my def browser, and that is why i want it to change in program. I don't want that VB opens in my def browser I want to chose in which program he will open it!

so you want it to open 1 browser only???



Yea, for example I want to open it in Opera.
Even that my def browser is Chrome. I don't want to change that nor I want to open in him.

what if the user doesnt have opera :P


This is for the personal use! :)
This is not game h@ck or something like that.

It is simple app that i want for my self! :)
So if you know how to do that, i would appreciate your help!

op sorry no idea xD lets see if someone else answers ;)
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  UAE traffic is urgently needed. 1moneyman123 2 145 2017-10-25, 11:35 PM
Last Post: interwent
  Traffic needed for cpa offers naulodesign 7 372 2017-10-06, 01:50 AM
Last Post: stephanie12
  No conversion help needed total newbie naulodesign 3 213 2017-09-21, 12:58 PM
Last Post: EnChanter
  Needed help with cent os 7 PoS3!DoN 3 115 2017-09-15, 12:23 AM
Last Post: GopherDomains
  Please!!! Suggestions needed for more online business models (cpa apart!)? HAkorehdeh 3 118 2017-09-03, 11:25 AM
Last Post: Watt





About Us | Contact Us | CPA Elites | Advertise | Stats | Staff Team

© 2013-2017 CPA Elites Ltd
Enhanced by MyBB and WallBB
Return to top