Jump to content
Xtreme .Net Talk

Bucky

*Experts*
  • Posts

    803
  • Joined

  • Last visited

Everything posted by Bucky

  1. Well, you could take a screenshot of the desktop, then paint it on a fullscreen window. Then gradually, with a timer, combine each pixel's color with a color that is closer and closer to gray. You can mix colors using a cool method VolteFace posted here (Note that this code is in VB6, but it should not be difficult to convert. Besides, you said you were up for a challenge! :))
  2. Yes, this is what he's referring to. The Sockets in .NET are classes instead of controls, however, and are much more powerful than the old Winsock control.
  3. Bucky

    Silly me

    Yes, Shell will work, but it's part of the VB6 compatability layer and thus should be avoided.
  4. It's not a utility, it's a toolbar built into the VS.NET IDE. Just right-click on any toolbar and select Text Editor on the list.
  5. Well in C# you can span comments across multiple lines by opening and closing the comments with /* and */. As for VB.NET, there is a toolbar (named "Text Editor") that has buttons that comment and uncomment blocks of highlighted text.
  6. I want to see multiplayer GameBoy games that you can play online through an emulator or some type of cable, and I want Nintendo to officially support it right now! Actually, this wouldn't be too hard to program with a Winsock, a Comm control, and a spliced link cable, now, would it? Hmm, ideas, ideas.... Anyway, I'm also a Halo junkie at the moment (and I'm in MA! What a coincidence!) Battlefield 1942 is another one of my favs.
  7. You can use the [mshelp=ms-help://MS.MSDNQTR.2003FEB.1033/cpref/html/frlrfsystemdrawinggraphicsclassmeasurestringtopic1.htm]MeasureString method[/mshelp] of the graphics object to determine the size of the string drawn with a certain font. Also, the tags for code are and [code=csharp] for VB and C#, respectively.
  8. Yes. ASP.NET is not a different language, it is merely a subset of the Framework that allows the creation of web services and server applications. An ASP.NET application can be written in any .NET language, whether it be C#, VB.NET, or J#. You can also use any namespace in the Framework in these apps, not just the ASP.NET namespaces.
  9. Make sure that the using directive for the System.Windows.Forms namespace is placed at the very top of the code page, before any namespace or class declarations, and that it's not inside some other class within the same code file.
  10. Unless there is an app running on the client machine that would return the physical path of the URL, I don't think it would be possible beacuse the paths are all relative to the computer in the eyes of other computers across the LAN.
  11. Okay, then try going to http://www.prunes.org/ and see where it gets you. :) Did you have any idea that California has its own Dried Plum Board?!
  12. Where is the file that the URL is pointing to? Is it on the local computer, or on a server somewhere across the Internet?
  13. IntPtr is a structure that is basically a strongly-typed Integer. It's meant for storing things like window handles and procedure addresses. It does not actually create a pointer that you can play around with. If you need to pass a pointer of a variable to a function, pass it regularly, but declare the parameter as ByRef in the method's signature.
  14. Are you sure you're doing the things in the correct order? Make sure that you first draw fill, then resize the rectangle, and finally draw the border, in that order.
  15. Bucky

    Timestamp

    If that's the case... Dim seconds As Long seconds = Convert.ToInt64(Now.Subtract(DateTime.Parse("1/1/70")).Ticks / TimeSpan.TicksPerSecond)
  16. Haha Robby, good point. :) Iceplug, how could they get for for compiling if it's a feature built into the .NET framework? There's no reason it shouldn't be perfecty legal, just look at SharpDevelop.
  17. [mshelp=ms-help://MS.MSDNQTR.2003FEB.1033/cpref/html/frlrfsystemwindowsformsbuttonbaseclassimagetopic.htm]Set the Image property[/mshelp] As for icons, check out this thread on the sister forum.
  18. If it's not a problem to display the SubItems with excess 0's, just concatenate an extra 0 on the front of the single-digit values. Then it will sort correctly.
  19. No, because you are creating a new instance of the object and then setting it to the variable. You are not modifying the current object in the variable; you are merely replacing it with another object.
  20. What you can do is cast the MdiParent property of Form2 to a type of Form1, then access the properties of the MainMenu control. Be sure that the access modifier for the menu controls is set to Public, or else you won't be able to see it. Dim parentForm As Form1 = DirectCast(Me.MdiParent, Form1) ' Cast the parent form type to Form1 parentForm.MainMenu.MenuItems(0).Enable = True ' Enable the menu item here (put in your own code) Me.Close()
  21. EndAccept never gets a chance to be called. When calling Shutdown, the error points to the line listenSocket = null; When calling Close, there is only a disassembly location for the error.
  22. If you would like to let this error occur but handle it more gracefully (by redirecting the user to an "error" page or something), add code in Application_Error event of the Global.asax file. You can check if the error is this error by calling Server.GetLastError().
  23. I have tried each and both of these methods, with no success. Calling Shutdown first raises a SocketError when I try to Close or dispose of the Socket, quote, "A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied". Just calling Close raises an InvalidOperationException that only says "AcceptCallback", and it points to a location in the disassembly, though Close is what causes it.
  24. Prunes, or dried plums? Does it really matter?
  25. If you uninstall your monitor's drivers and use the default "Generic monitor" driver (or whatever it's called), I believe you can then change your monitor's resolution, colors, and refresh rate to anything. Don't change the options to anything too extreme, however, because if it's not an option you had before then the monitor obviously doesn't support other modes.
×
×
  • Create New...