r/visualbasic • • May 26 '15

Homework /u/poody24 Asks a homework question...

5 Upvotes

I need to create a button that does this specifically, but I don't know the code to use. Add a button that will take the text that the user will enter into the txtName text box and place it into the label. The button will also make the text box and picture box disappear. Any Ideas??


r/visualbasic • • May 12 '15

Web Server

5 Upvotes

I have a dedicated Minecraft server. I'd like to build a basic web server that shows detailed info about my server and let's me know if the Minecraft server process is running.

That way I don't have to keep an RDC window open while I play and so I can view stats when I'm away from home.

I've never built a web server app, so any tutorials or advice would be excellent.


r/visualbasic • • May 04 '15

Info How to Learn to Code

Thumbnail
youtube.com
5 Upvotes

r/visualbasic • • Jan 06 '14

Vb.net playing multiple sounds at once problem

5 Upvotes

I'm trying to make a program that will play multiple sounds at once. I have looked into multiple threading but it seems like it's over my head without an actual person there to show me the ropes. I have tried changing the format and location of these two sounds and just about everything else I could think of. After three weeks I gave up saying it would come to me. After six months of on and off searching it hasn't. Does anybody have any ideas? EDIT: i was trying to do this for a game but the game got deleted by mistake. So now i am just trying to play 2 sounds at the same time with two different buttons to start them


r/visualbasic • • Dec 05 '13

What is the deal Visual Basic courses?

5 Upvotes

DISCLAIMER: This is NOT a slam against the people coming here looking for help, please do not take this as an insult or discouragement.

I am not a professional developer by any means, simply a hobbyist when I have time, but I notice that there are a lot of questions posted here and on forums by students who (often writing their final projects) have not even a basic understanding of how to use the language. I mean, it's their FINAL and they are asking how to run For Loops and If statements, etc...

I would think by the end of the first (or second at the latest) week, students should understand basic looping and conditional branching constructs.

Who is teaching theses courses? Is it the fault of the teachers? Or are the students just not paying attention and are at the last moment trying to cram in what they should have done earlier?

/rant


r/visualbasic • • Nov 15 '12

So I wanted to do do some VB in Windows 8 but...

5 Upvotes

It's been a while since I've done any VB, I'm not a master programmer, but I've had fun dabbling here and there, I even coded some VB6 and VB.net apps at a previous job.

I'm bored atm playing games on my PC and need a new outlet so I thought I'd get back into either VB, or even C#.

I'm on Windows 8 and I installed the VS 2012 trial, but it only lets me make Windows Store apps which is cool, but I want to make desktop apps not XAML store apps.

Has MS totally done away with desktop development or am I missing something in VS because all I see is XAML, Class Library, Windows Runtime Component, and Unit Test Libray projects.


r/visualbasic • • Jun 08 '12

Need help with some coding time?

5 Upvotes

What I need the time output in a 24 hour output to look like: 07:53 or 14:34

What I have

Dim todaystime As Date

todaystime = Format(Now,"hh:mm")

what this outputs

3:00:00 AM

need:

03:00


r/visualbasic • • Mar 30 '12

Learning VB and trying to write a program will count the number of times a certain letter appears in a textbox. I'm lost and need help!

5 Upvotes

Hey guys,

I know this may be an easier one, but I'm completely lost. I have some of the program written but am stuck with the rest of it. Here is what I need the program to do. The stuff written so far may need to be scrapped because I'm completely lost.

There are checkboxes for the letters that need to be found (A, E, I, O, U, and ST). When a checkbox is selected I need for the program to find the number of those letters and then display the number in a label.

I have this written up for code so far, but I am lost with even if the code written is correct. I have no idea how to display the count of each individual letter in an individual box. I have also attached a screenshot of the interface to give you all a better idea of what I need.

http://i.imgur.com/nplWK.png

And here is my code (I apologize in advance for any stupid mistakes made):

Private Sub btnCompute_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCompute.Click

    Dim intText As Integer
    Dim word As String
    Dim sChar As String
    Dim i As Integer
    word = Me.txtScan.Text

    If cbxWord.Checked = True Then
        intText = txtScan.TextLength
        lblWords.Text = intText.ToString("n0")
    End If

    Do While Boolean.TrueString
        If cbxA.Checked = True Then
            txtScan.Text.Contains("A, a")
        End If

        For i = 1 To Len(word)
            sChar = LCase(Mid(word, i, 1))
            If cbxA.Checked = True And sChar = "a" Then
                intText = intText + 1
            End If

        Next i

        For i = 1 To Len(word)
            sChar = LCase(Mid(word, i, 1))
            If cbxE.Checked = True And sChar = "e" Then
                intText = intText + 1
            End If
        Next i

        For i = 1 To Len(word)
            sChar = LCase(Mid(word, i, 1))
            If cbxI.Checked = True And sChar = "i" Then
                intText = intText + 1
            End If

        Next i

        For i = 1 To Len(word)
            sChar = LCase(Mid(word, i, 1))
            If cbxO.Checked = True And sChar = "o" Then
                intText = intText + 1
            End If

        Next i

        For i = 1 To Len(word)
            sChar = LCase(Mid(word, i, 1))
            If cbxU.Checked = True And sChar = "u" Then
                intText = intText + 1
            End If

        Next i

        For i = 1 To Len(word)
            sChar = LCase(Mid(word, i, 1))
            If cbxST.Checked = True And sChar = "st" Then
                intText = intText + 1
            End If

        Next i

        MsgBox("None Found" & intText)
    Loop

End Sub

UPDATE Got it to work by putting a -1 next to For i = 1 To Len(word) and by deleting the loop. Thanks all for your help!!


r/visualbasic • • Jan 21 '12

Is it possible to detect how I'm connecting to the internet, for example is it possible to differentiate between WiFi and Ethernet?

5 Upvotes