Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 3 online users. » 1 Member(s) | 1 Guest(s) Google, MorrissgoX
|
Latest Threads |
Looking for Adventure? Fi...
Forum: Random Discussion
Last Post: iHOMEz
11-16-2024, 09:18 PM
» Replies: 0
» Views: 491
|
Prettys Womans in your to...
Forum: Random Discussion
Last Post: iHOMEz
10-30-2024, 07:45 AM
» Replies: 0
» Views: 776
|
Prettys Womans in your ci...
Forum: Random Discussion
Last Post: iHOMEz
10-26-2024, 10:50 AM
» Replies: 0
» Views: 805
|
Beautiful Womans from you...
Forum: Random Discussion
Last Post: iHOMEz
10-19-2024, 02:48 PM
» Replies: 0
» Views: 908
|
Prettys Womans in your ci...
Forum: Random Discussion
Last Post: iHOMEz
10-06-2024, 05:00 PM
» Replies: 0
» Views: 1,067
|
Womans from your city - V...
Forum: Random Discussion
Last Post: iHOMEz
07-28-2024, 10:26 AM
» Replies: 0
» Views: 1,441
|
Supreme Сasual Dating - A...
Forum: Random Discussion
Last Post: iHOMEz
06-14-2024, 11:28 AM
» Replies: 0
» Views: 1,861
|
Beautiful Womans in your ...
Forum: VB.NET
Last Post: iHOMEz
06-09-2024, 09:23 PM
» Replies: 0
» Views: 1,676
|
Hangman in Rust
Forum: Other
Last Post: brandonio21
02-04-2018, 11:14 AM
» Replies: 2
» Views: 20,674
|
How to: Search files from...
Forum: VB.NET
Last Post: brandonio21
11-25-2017, 12:55 PM
» Replies: 1
» Views: 15,986
|
|
|
DataBase - Login - Not Working |
Posted by: Murcs - 06-30-2011, 01:51 PM - Forum: VB.NET (Visual Basic 2010/2008)
- Replies (4)
|
|
been working on this for about 4 days now and im still running in circles. There are several ways to do this and so it seem Brands method is the best. However, Im getting errors. If anyone is bored and would like to help i would appreciate it. Also If somone has Voice Program. I can join that as well, This Forum should run its own Ventrilo .... just saying <!-- s --><img src="{SMILIES_PATH}/icon_e_smile.gif" alt="" title="Smile" /><!-- s --> heres All my LoginForm1 Code
Code: Imports MySql.Data.MySqlClient
Public Class Loginform1
Public conn As MySqlConnection
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
conn = New MySqlConnection("server=db4free.net;Port=3306; user id=*****; password=*****; database=SamUsers")
Dim username As Boolean = True
conn.Open()
Dim sqlquery As String = "SELECT * FROM NewTable WHERE Username = '" & TextBox1.Text & "';"
Dim data As MySqlDataReader
Dim adapter As New MySqlDataAdapter
Dim command As New MySqlCommand
command.CommandText = sqlquery
command.Connection = conn
adapter.SelectCommand = command
data = command.ExecuteReader
While data.Read()
If data.HasRows() = True Then
MsgBox("Username Already in use!")
username = False
data.Close()
Else
data.Close()
username = True
End If
End While
data.Close()
If username = True Then
Dim sqlquery2 As String = "INSERT INTO NewTable (Username, Password)VALUES ('" & TextBox1.Text & "','" & TextBox2.Text & "')"
Dim data2 As MySqlDataReader
Dim adapter2 As New MySqlDataAdapter
Dim command2 As New MySqlCommand
command2.CommandText = sqlquery2
command2.Connection = conn
adapter2.SelectCommand = command2
data2 = command2.ExecuteReader
MsgBox("You've Registered!")
End If
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create("http://h1.ripway.com/murcs/SQLDatabaseProject.txt")
Dim response As System.Net.HttpWebResponse = request.GetResponse()
Dim sr As System.IO.StreamReader = New System.IO.StreamReader(response.GetResponseStream())
Dim newestversion As String = sr.ReadToEnd()
Dim currentversion As String = Application.ProductVersion
If newestversion.Contains(currentversion) Then
MessageBox.Show("You have the current version")
Else
MessageBox.Show("Newer version available please wait for install to begin")
Me.Close()
My.Computer.Network.DownloadFile("http://h1.ripway.com/murcs/Sam v.1.0.0.1.exe", "C:\Sam v.1.0.0.1.exe")
Process.Start("C:\Sam v.1.0.0.1.exe")
End If
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
RegisterForm.Show()
End Sub
End Class
A ERROR hits me in the face AFTER clicking the Login button, and a new form pops up (Mysqlconnection.vb)
Code: Public Class MySqlConnection
Private _p1 As String
Sub New(ByVal p1 As String)
' TODO: Complete member initialization
_p1 = p1
End Sub
Sub Open()
Throw New NotImplementedException
End Sub
End Class
|
|
|
Exit code ? |
Posted by: lvlasked - 06-30-2011, 09:50 AM - Forum: VB.NET (Visual Basic 2010/2008)
- Replies (1)
|
|
right i know that Me.close() will close the form that its on but how to you code it so that when you click ext it close the program down and all the sub forms the links with in it that are open also ??
i hope i explained it right
|
|
|
How would i build this ? |
Posted by: lvlasked - 06-29-2011, 06:08 AM - Forum: VB.NET (Visual Basic 2010/2008)
- Replies (3)
|
|
right all im doing ok i think on my own so far but is there a tutorail on how to make this
<!-- m --><a class="postlink" href="http://img217.imageshack.us/img217/3300/userinfo.png">http://img217.imageshack.us/img217/3300/userinfo.png</a><!-- m -->
so that it saves on the form and not to a text file some were ?
|
|
|
hello all |
Posted by: lvlasked - 06-28-2011, 05:21 AM - Forum: Off-Topic
- Replies (5)
|
|
hello all,
names chris and i thought its about time to learn programing did make websites a few years back but now time to do this im taking on a big task for my first one and im hopping maybe ill make a good friend and they help me make my program or tell me how todo thing
program im looking to build is like this one
<!-- m --><a class="postlink" href="http://www.plosoft.com/en/featureen.php">http://www.plosoft.com/en/featureen.php</a><!-- m -->
so if some one can help me learn and with the program please give me a message thanks
|
|
|
Battlefield 3 |
Posted by: brandonio21 - 06-08-2011, 12:45 PM - Forum: Gaming
- Replies (1)
|
|
I don't know if you guys have seen the E3 coverage, but Battlefield 3 looks amazing. I have always been a fan of the Battlefield franchise, and I think that this is going to be their best installment yet. Hopefully they live up to my expectations... And I'm not dissapointed like I was with Brink.
What are your guys' thoughts on the matter?
|
|
|
Gecko Web Browser |
Posted by: vbcodegeek - 06-06-2011, 12:01 PM - Forum: VB.NET (Visual Basic 2010/2008)
- Replies (4)
|
|
I have found this Component for Visual Basic 2010 (I have not tested visual basic 2008). It is called the GeckoWebBrowser. It's LOTS faster than the IE webbrowser. And all the codes based on the codes for Mozilla Firefox.
To use this in your projects you will need a couple things.
1) The Webbrowser Component. You can get this at http://geckofx.googlecode.com/files/Skyb....9.1.0.zip
2)You will also need these files called Xulrunner. The component needs these files. You can get them at ftp://ftp.mozilla.org/pub/mozilla.org/xu....win32.zip
To Implement this into your projects follow these steps
1) Extract all the files
2) Open Visual studio. In the toolbox, add the component. The .dll file is called "Skybound.Gecko.dll" located in the bin.
3) Create a new project and add the component to the form. Do not run it yet, or you will get an error.
4. Add this code Code: Imports Skybound.Gecko
Make a new sub and call it "Sub New". Add this code
Code: Xpcom.Initialize("Location of where you extracted the xulrunner")
So your project should look something like this
Code: Imports Skybound.Gecko
Public Class Form1
Sub New()
' This call is required by the designer.
Xpcom.Initialize("C:\Documents and Settings\VBCodegeek\My Documents\Downloads\xulrunner-1.9.2.17.en-US.win32\xulrunner")
InitializeComponent()
' Add any initialization after the InitializeComponent() call.
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
End Class
It should work Fine. Hope you find it useful. <!-- s --><img src="{SMILIES_PATH}/icon_e_smile.gif" alt="" title="Smile" /><!-- s -->
|
|
|
UpdateVB - Help! |
Posted by: ArminP - 05-30-2011, 06:51 AM - Forum: VB.NET (Visual Basic 2010/2008)
- Replies (1)
|
|
Hello, I tried using UpdateVB and it works fine with links from Dropbox and stuff.
But the problem is, if I release my software(Alpha 1.0) and I make some changes(Lets say new button and new theme ALPHA 1.1)
How can I make that it will update to ALPHA 1.1? It needs the application files and all that stuff...
Regards,
ArminP.
|
|
|
|