Search:
Type: Posts; User: NinjaNic
Search:
Search took 0.05 seconds.
-
In OP's example, he uses 'lbl.Text' as the table name, so we don't know what it is. It may include spaces or special characters. However, you may be right about an exception being thrown but he was...
-
Try adding quotes or `tick marks` around your database name and your table name.
`sql2256547`.`table name`
-
This simple class helps in running commands in a MS SQL database. It requires a connection string, and RunCommand and RunCommandAsync require a string parameter to use as the command.
What's my...
-
It is fairly easy to Serialize objects in Visual Basic.
What is serialization for?
Public Class Data
Public Shared Sub Save(Path As String, Data As Type)
Dim BF As New...
-
A portable class library targets multiple Microsoft platforms. You probably only require the simple class library.
...
-
How would one accomplish this? Sorry if that sounds very low-knowledge, but I have never used tags before.
-
I don't know what GetUserName is supposed to do. Also, Chr(32) looks like a space for me, just making sure that's what you needed. Lastly, it seems like charcheck always checks the very last...
-
Good workaround, but there's nothing sneaky I could add to this line to make sure it fires first? Just making sure. I don't know if I expected something or not.
AddHandler Form1.MouseMove,...
-
Hi all!
When I create custom handlers like:
AddHandler Form1.MouseMove, AddressOf MoveMouse
I need MoveMouse to fire before any other event when the user moves their mouse over Form1.
-
Thanks for the tip. I guess my question is now, is it worth it to learn, because even still I'm having trouble finding guides and examples.
-
Hi everyone! I'm trying to make a bot for Tumblr or Twitter, but both require OAuth requests. I'm not sure how to use a Net.WebRquest this way. I've searched all over and found very scarce...
-
I suppose you could do that and then draw a bar directly onto the form.
-
Yes, set the FormBorderStyle property to None.
-
I would assume that's impossible, because I think Windows itself controls that.
-
Using a 2D array:
Public Shared Cells1 As Boolean(,)
Public Shared Cells2 As Boolean(,)
How do I set Cells2 equal to Cells1 but as a new instance? (So if I modify Cells2, Cells1 won't be...
-
Hex(int) returns a string based on the given integer. Try this in the for loop:
Dim hx As String = Hex(binaryData(I32))
If hx.Length = 1 Then hexValue &= "0"
hexValue &= hx
Hope this...
-
You can check this out and see if that solves your problem. It deals with playing audio from the resources folder.
-
String.IndexOf() returns the index, not the line, of the first occurrence of the string being searched. Fortunately you can use String.Split() to split the string by each line, and use...
-
Yeah, exactly. Your output is backwards because of this.
-
Well, I don't think I should do the code for you.
But I have an idea of how you should approach this.
Create an array of [1, 2, 3, 4, 5, 6] and print it out.
Use a for loop 6 times, decrementing...
-
Hi, but I'm not sure what you are actually looking for. I'm not sure what 10 per line means.
Also, don't forget you can copy and paste code and use the [ code ] [ / code ] tags (no spaces).
...
-
Hi! Here's a quick guide for stubborn people like me who don't use XNA but still want to incorporate an XBox controller into their application or game. I was surprised at how easy it was.
Step 1....
-
Nope, that is not needed.
However, you could write it as one if statement to shorten your code:
If Messagebox.show("Are you sure you want to leave?", "caption", Messagebox.buttons.YesNo) =...
-
I think the user would need to have SQL Server Management Studio in order for it to be able to access the database. I just created a default database in Visual Studio and this is the connection...
-
Hi!
I was testing out some things because I needed to know this too. I think the best way is to add all of your images into the resources folder and then create a function like this in your main...
-
-
-
Here's the recursion:
Function Add(A As Integer, B As Integer) As Integer
If A = 0 AndAlso B > 0 Then Return 1 + Add(A, B - 1)
If A = 0 AndAlso B < 0 Then Return -1 +...
-
How is it possible that a programming language can compile itself? That seems pretty crazy. But then, isn't everything a bit crazy?
-
I finally understand how to add 2 numbers properly! Try it out yourself!
Function Add(A As Integer, B As Integer) As Integer
Dim C As Integer = CInt((Math.Sign(A) *...
-
Every control has a ClientRectangle property. And VB has a Rectangle.IntersectsWith(Rectangle) function built in. This would probably be the best way to check if a control is in a specific area. I...
-
Take this file, for instance:
<class type="identifier">
<demo>Hello World!</demo>
<demo>What kind of music do you like?</demo>
</class>
This commented code shows how to retrieve...
-
Hi all!
Here's a simple XML parser written with pure VB. The code can be found below. (You might ask why I did this. Do I need to have a reason?)
How it works is that every <tag></tag> is...
-
Hey all! I've been looking at and trying to understand languages like Brainf**k, which were amusing yet complicated. So then, that made me think - what does a language have to have in order for it to...
-
In this example, the database is referred to as an initial catalog...could that be it?
Data Source=190.190.200.100,1433;Network Library=DBMSSOCN;
Initial Catalog=myDataBase;User...
-
You're not crazy, I remember this too. It's a small thing, but you notice it when it's not there.
-
Hi! First of all, I would suggest that you put the [ code ] tags around the code to make it look neater.
Dim InletPoints As String = Me.InletPoints
Dim items() As String
items =...
-
Don't forget that you can write code on VBForums using the [ code ] tags.
Dim myRow As DataRow
For Each myRow In dt.Rows
empListview.Items.Add(myRow.Item(0))
...
-
All right! Thanks a lot for the help!
-
Thanks! So, is this what you meant? Literally change "Class" to "Structure," like this?
' A color with the default value of black.
Structure Color2
Private R As Int32
Private G As...
|
Click Here to Expand Forum to Full Width
|