dcsimg

Search:

Type: Posts; User: NinjaNic

Page 1 of 6 1 2 3 4

Search: Search took 0.38 seconds.

  1. Replies
    6
    Views
    510

    Re: DataBase Insert

    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...
  2. Replies
    6
    Views
    510

    Re: DataBase Insert

    Try adding quotes or `tick marks` around your database name and your table name.

    `sql2256547`.`table name`
  3. Replies
    1
    Views
    3,210

    VB.NET - Simple Database Connection

    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...
  4. Thread: Serialization

    by NinjaNic
    Replies
    2
    Views
    2,385

    Serialization

    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...
  5. Replies
    1
    Views
    329

    Re: Portable Classes

    A portable class library targets multiple Microsoft platforms. You probably only require the simple class library.
    ...
  6. Replies
    7
    Views
    1,054

    VS 2015 Re: Force Custom Event Handler First

    How would one accomplish this? Sorry if that sounds very low-knowledge, but I have never used tags before.
  7. Re: Looking for a condition in a text string of blank, reading backwards.

    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...
  8. Replies
    7
    Views
    1,054

    VS 2015 Re: Force Custom Event Handler First

    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,...
  9. Replies
    7
    Views
    1,054

    VS 2015 Force Custom Event Handler First

    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.
  10. Replies
    4
    Views
    1,653

    VS 2015 Re: How to use OAuth 1.0 in Visual Basic?

    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.
  11. Replies
    4
    Views
    1,653

    VS 2015 How to use OAuth 1.0 in Visual Basic?

    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...
  12. Replies
    6
    Views
    831

    VS 2017 Re: Is it possible to color the top bar?

    I suppose you could do that and then draw a bar directly onto the form.
  13. Replies
    6
    Views
    831

    VS 2017 Re: Is it possible to color the top bar?

    Yes, set the FormBorderStyle property to None.
  14. Replies
    6
    Views
    831

    VS 2017 Re: Is it possible to color the top bar?

    I would assume that's impossible, because I think Windows itself controls that.
  15. VS 2015 How to create a new instance of the same array?

    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...
  16. Re: adding zero if byte is less than 10

    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...
  17. Re: VB2010 - how play midi from file and resource?

    You can check this out and see if that solves your problem. It deals with playing audio from the resources folder.
  18. Replies
    1
    Views
    382

    VS 2010 Re: Find specific text in string

    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...
  19. Re: how to 10 per line this code help newbie in vb.net

    Yeah, exactly. Your output is backwards because of this.
  20. Re: how to 10 per line this code help newbie in vb.net

    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...
  21. Re: how to 10 per line this code help newbie in vb.net

    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).
    ...
  22. Replies
    0
    Views
    2,241

    Easy XBox Controller Support (No XNA)

    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....
  23. Replies
    3
    Views
    1,230

    Re: MessageBoxButtons.YesNo Help?

    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) =...
  24. Replies
    3
    Views
    554

    VS 2015 Re: Stopped at the first hurdle

    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...
  25. Re: How can I use an embedded resource from a dll

    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...
  26. Replies
    7
    Views
    1,634

    Re: I finally got it!

    Me too, to be honest.
  27. Replies
    7
    Views
    1,634

    Re: I finally got it!

    Good find.
  28. Replies
    7
    Views
    1,634

    Re: I finally got it!

    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 +...
  29. Replies
    42
    Views
    6,336

    Re: What counts as a programming language?

    How is it possible that a programming language can compile itself? That seems pretty crazy. But then, isn't everything a bit crazy?
  30. Replies
    7
    Views
    1,634

    I finally got it!

    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) *...
  31. Replies
    3
    Views
    695

    Re: Screen Peek ?

    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...
  32. Replies
    1
    Views
    3,211

    Re: Simple XML Parser

    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...
  33. Replies
    1
    Views
    3,211

    Simple XML Parser

    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...
  34. Replies
    42
    Views
    6,336

    What counts as a programming language?

    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...
  35. Re: Unable to get a connection string using an IP address to work

    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...
  36. Replies
    13
    Views
    1,526

    VS 2015 Re: Automatic parenthesis

    You're not crazy, I remember this too. It's a small thing, but you notice it when it's not there.
  37. Replies
    4
    Views
    628

    Re: If item does not exist.

    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 =...
  38. Replies
    3
    Views
    643

    VS 2015 Re: listview 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))
    ...
  39. VS 2015 Re: Initialize Array Without Default Value

    All right! Thanks a lot for the help!
  40. VS 2015 Re: Initialize Array Without Default Value

    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...
Results 1 to 40 of 235
Page 1 of 6 1 2 3 4



Featured


Click Here to Expand Forum to Full Width