Jump to content
Xtreme .Net Talk

divil

*Gurus*
  • Posts

    3026
  • Joined

  • Last visited

Everything posted by divil

  1. divil

    ByVal, ByRef

    Your class is a reference type, so it'll always be passed by reference. Only value types (structures and the primitives) can actually be passed by value.
  2. There's no ASP.NET checkedlistbox.
  3. No, it's in the toolbox by default.
  4. Check out the SubItems property of the ListViewItem class. You can get each column's text through this collection.
  5. I've had this happen to me before, the open in new window function just doesn't work at all. I can't remember what I did to fix it, but I remember the answer was in the Microsoft Knowledge Base.
  6. Google doesn't operate on keywords, it works by searching the page contents. To mark your site to be indexed by Google, visit the url below. http://www.google.com/addurl.html
  7. When VS.NET came out there were jobs posted requiring between 1-2 years experience in C#. I had that experience because I jumped the bandwagon as soon as the first beta emerged. So it's not that uncommon.
  8. One of the overloads for System.Reflection.Assembly.Load takes a byte array which (reading the documentation) looks like it might do what you need.
  9. My thoughts: There shouldn't be separate controls for each person, instead there should be a set of controls for one person, and they should be populated when each person is selected from a combo box at the top of the form.
  10. MSDN has all the info you need.
  11. The documentation (or the object browser) will tell you the delegate type for an event.
  12. The documentation in MSDN is automatically generated from the source code.
  13. Good lord, 500 textboxes? Can I ask what this is for? Have you considered using a grid or list-style control instead?
  14. System.Configuration.ConfigurationSettings is the full path of the class, it's in System.dll.
  15. I did it last night...
  16. That just means somebody has wrapped a normal declare in a class and called it Win32API :)
  17. The last code he posted works fine, if you just replace the Longs with Integers in the RECT structure. I tested it before I posted before, and I just tested it again. It's possible in the form_load event that the form's window handle has not yet been created. It would be a good idea to make sure the form is visible before attempting to get its size and position, but I've had no problems.
  18. The Tooltip component is a great way of extending your controls to add tooltips to them. However, it has no inbuilt capability for displaying balloon-style tooltips so I knocked up this example. A Tooltip is a special window maintained by the component you put on your form. Windows takes care of the positioning and resizing of the window to give it that familiar look, but the Tooltip component has to create and maintain that window. It keeps track of its window internally, and here's where the nasty part comes in. I use reflection to get a hold of the native window the Tooltip component keeps in a private field. Once I have that, I can then access its hwnd, and from there change its window style. The style we need to remove is WS_BORDER, because when that is combined with balloon tooltips great ugliness ensues. The styles we need to make sure are applied are TTS_BALLOON and TTS_NOPREFIX. After using GetWindowLong and SetWindowLong to accomplish this change to the window style, that's it. All tooltips displayed from then on are shown with a balloon. I've attacked a zip file containing a simple project. The large button has a tooltip, and pressing the smaller button invokes our code that forces subsequent tooltips to be balloons. [edit] Removed ghost reference - thanks Derek [/edit] balloon.zip
  19. Ok, I'm going to upload an example in the code library of how to get the .NET tooltip extended to use balloons instead of regular tooltips.
  20. The GAC is only global to one machine.
  21. If your text file is in unicode, there will be two bytes per character. The easiest method of checking a file's size is to use the FileInfo class and check its Length property.
  22. Ok, I just had to try it. All I had to do was apply TTS_BALLOON to my tooltip window's style and it worked.
  23. I think you'll be out of luck on this one. You won't find a way to stop ctrl-alt-del doing what they're supposed to in any recent incarnation of windows, and probably not the other things you need either. Why not leave Windows to have its own login dialog?
  24. I think there's just a flag you can apply to normal tooltips to make them appear as balloons. I already have a working implementation of tooltips through win32 so perhaps I'll give it a shot.
  25. VB6 requires runtimes too. If you want an application that doesn't require runtimes, use a language like C or C++.
×
×
  • Create New...