Jump to content
Xtreme .Net Talk

divil

*Gurus*
  • Posts

    3026
  • Joined

  • Last visited

Everything posted by divil

  1. No. The framework has a class for modifying the hue/luminance/saturation of colours, but in their infinite wisdom Microsoft made it private. You'll have find a third-party way to do this or write your own.
  2. MySubName()
  3. Environment.CommandLine
  4. Is this code in the Paint event of the panel?
  5. The PropertyGrid reflects classes. There's no way to just add and remove random properties to/from it. You might be able to fake it using a class that implements ICustomTypeDescriptor.
  6. You can use the ControlPaint.Light function to increase a colour's brighness by a given factor.
  7. Does it work if you don't add them as linked? Is there a reason why you're not using the ToolboxItem constructor that just accepts a Type?
  8. Sorry, I don't know of one like that offhand. Try Google.
  9. Only Windows XP supports icons with alpha channels. I don't know why toolbars wouldn't work with 32bit png images in them, possibly because it's only a .NET wrapper for the win32 toolbar. If you tried using a third-party toolbar written entirely in .NET you might have more luck.
  10. If there's only two options, it's only necessary to wire up the event to one of them. After all, the event gets fired when the user has checked it, and when they have checked something else if it was previously checked.
  11. You could try appling a ToolBoxItem(True) attribute to your tabpage, then you might be able to persuade it to appear in the toolbox.
  12. You'll need the .NET framework runtimes installed of course.
  13. I wouldn't bother writing that class. .NET already provides a (optionally) very low level socket class that should be ample for your needs. TCP/IP _does_ guarantee that your packets will arrive, and in the right order too. The only thing it doesn't guarantee is that they won't be broken up or stuck together, but the data will arrive correctly. Of course, it's up to the programmer to use delimiters if it's necessary to distinguish from one packet to the next.
  14. I can't think of one - unless your dll in turn references another dll which needs to be present.
  15. I guess your "home baked function" is making the image unreadable.
  16. You need to include the dll in your setup project so it gets installed on your user's system. Further, since it is a COM dll and requires registering, you need to mark it as such in your setup project. There is usually a per-file setting that you can change to "self register" or similar.
  17. Change your Change subroutine to accept a parameter of type Form1, and then call it from the form passing Me. You can then adjust the form's instance to your heart's content.
  18. No, I don't think so. MS released WebMatrix which is a free IDE for ASP.NET development, and comes with a webserver written entirely in .NET that supports ASP.NET, if you're desperate.
  19. Use AddHandler to bind the event to a procedure in every loop iteration: AddHandler pPicture.Click, AddressOf myProcedure Private Sub myProcedure(sender As Object, e As System.EventArgs) 'sender is the picturebox that raised the event End Sub
  20. "Binary" doesn't mean the file is unreadable... it sounds like you want to encrypt it.
  21. I guess you would have to inherit from TabControl, make a new TabPages collection based on your own page, and even use your own designer to specify that the verbs use your pages when creating new ones.
  22. How many other threads did you make recently in the Windows Forms forum? Your name is clearly by the thread. Future people searching for help on modifying text files won't find what they're looking for if it's in a thread supposedly about buttons, will they?
  23. If you have a win2k machine, you have Microsoft IIS already on there, and can use ASP pages right out of the box.
  24. I really hate working with that HTML Help Workshop - MS suggest using chm help files in .net apps (and I have done so) but still provide such a poor quality tool to make them with! I really hope they integrate a help compiler in to the IDE at some point - it would be so easy for them to do. </rant>
  25. Robby here...I had a hard time merging these threads, so I'm invading your post Divil. This is a spin-off from another thread. The discussion is: - Using Option Strict On - Using VB functions such as Mid$, Left$, Len, CInt, Clng, MsgBox etc... ________________________________End of Robby's note: When you stop relying on VB doing the work for you :P Turn on Option Strict, always. It stops you doing bad things like mixing data types and not explicitly converting.
×
×
  • Create New...