Problem in form - Printable Version +- Support Forums (https://www.supportforums.net) +-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87) +--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18) +---- Forum: Visual Basic and the .NET Framework (https://www.supportforums.net/forumdisplay.php?fid=19) +---- Thread: Problem in form (/showthread.php?tid=27905) |
Problem in form - Chuggaism - 05-17-2013 Ok,so I am devoloping a test program,that consists of a text box which you type in like stuff(kinda like a console).But only test1 opens.The rest doesnt.HELLPPPP Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If TextBox1.Text = "test1" Then Process.Start("My.Resources.test1") If TextBox1.Text = "author" Then MsgBox("made by Chuggaism") End If End If End Sub End Class HELLPPPP RE: Problem in form - Chuggaism - 05-25-2013 Seriously,no freakin answer... RE: Problem in form - Akai - 05-25-2013 This forum is kinda dead at the moment, people was only active here due to the HF feather award. We, the loyal members of SF, it's kinda unfair for us. I have no knowledge in VB, but try to post the whole source, I might figure it out. RE: Problem in form - AceInfinity - 11-07-2013 (05-25-2013, 07:56 AM)Akai Wrote: This forum is kinda dead at the moment, people was only active here due to the HF feather award. We, the loyal members of SF, it's kinda unfair for us. Unfair how? You only have 25 posts, I got my feather award at 1000 posts, way above the requirement, and a few thousand posts later, I was still an active member. I was here for the forum, but the administration is now absent on this forum, it's probably just going to end up being sold. The solution to this issue isn't difficult to fix, if you understand that you're nesting that second if statement within the first. Now obviously the Text has to be "test1" before it would even evaluate the second if statement to check the text for "author." You explain how you expect the text to be "author" if that if statement logic dictates that it has to be "test1"... ? Code: If TextBox1.Text = "test1" Then |