Jump to content
Xtreme .Net Talk

homebrew311

Avatar/Signature
  • Posts

    31
  • Joined

  • Last visited

Personal Information

  • Occupation
    School
  • Visual Studio .NET Version
    Standard

homebrew311's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hey I made this program that randomly pops up and shows a scary picture and plays a scream to scare people. I have the scary picture embedded in the program, and I'm trying to put the sound in it too. Does anyone know how to play an embedded sound?
  2. Thanks a lot guys I got it to work.
  3. I took away the New in front of the Form1 and when the code executes I get an error saying "Object refrence not set to the instance of an object." Am I doing this all wrong? Sorry if this question is easy for you but I just don't know.
  4. Oh yeah sorry I forgot about the lbUsers.Items.Add thing in the post, but it's there in my code. I'll try not making a new instance. Thanks for your help.
  5. Hey This has been very confusing to me and I can't think of any way to get this to work. I'm trying to make a simple instant messenging program as a summer project. For now I am working on the server part. I have the main form class (Form1) and a client handler class (ClientHandler). Once a user is connected, I want the client handler class to add the user name to a listbox on the main form called "lbUsers". In the beginning of this whole project, I thought that this would work: 'some code Dim MainForm as New Form1() MainForm.lbUsers.Add(Me.ClientID & " (" & UserName & ")") 'some code but after trying it out, the code didn't add anything to the listbox. Does anybody know how to add an entry to a listbox from another class?
  6. Hey everybody I have just a quick question. I have seen programs that hide with the F5 key, and then unhide when the F5 key is pressed again. For instance, the program is running, you hide it, you load up Word and start typing a paper, then you hit F5 again and the program unhides. There was nothing in the system tray or taskbar or anything. Does anybody know how to get keystrokes entered even if your application is not in the foreground?
  7. Hi everybody, just a quick question: what is the difference between UDP and TCP?
  8. How do I send packets back and forth?
  9. What should I enter in as the port? Sorry, I don't really have any knowledge of server stuff.
  10. Yeah I got it now. Thanks a lot guys.
  11. Dll code Public Class Class1 Public Function Bob(ByVal int1 As Integer, ByVal int2 As Integer) As String Dim Ans As Integer Ans = int1 + int2 Return Ans End Function End Class Button procedure Private Sub btnStart_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnStart.Click Dim DLL As Dll_Test_Dll.Class1 MsgBox(DLL.Bob(1, 2)) End Sub
  12. homebrew311

    DLLs

    Every time I make a DLL and try to use it, the host program always returns a "Object reference not set to the instance of an object" error. What am I doing wrong?
  13. Thanks, but I'm still a newbie at VB and I don't know how to do all those web services and such. Think of it this way, I give some of my programs to my friends. Lets say that I coded an "update" feature into a program I wrote. How would I have the program connect to my computer and have the host on my computer distribute the download? (I'm too young to get fixed IP domains and servers and stuff)
  14. Hey guys, I am just wondering how I would be able to connect to a server, get some info, and disconnect. If you've ever seen those 'Weather Bug' programs that get the temperature every 5 minutes or so, then that is a great example of what I want to do. Another example is how SpyBot Search and Destroy checks to see if there are updates available, and if so, download them. Does andybody know how the do this in VB.net?
  15. Thank you a lot. I also found a way around it. Open the project file in notepad after making a new windows project, and find "WinExe" where it says "Project type" and change it to "Library". It works so far for me.
×
×
  • Create New...