Jump to content
Xtreme .Net Talk

divil

*Gurus*
  • Posts

    3026
  • Joined

  • Last visited

Everything posted by divil

  1. I've posted a sample for you in the code library, it should be more than enough to get you started.
  2. I just threw this example together because I already had the code written. You can read up all about win32 tooltips in MSDN. This sample has three regions on the form, each one has its own tooltip. One of them is changeable via a textbox on the form. I've tried to wrap the win32 functions pretty well in two classes, so all you have to do is add one to another to add tooltips. Read the code, you'll see :) tooltipsample.zip
  3. You can use your object browser to find the delegate type and see exactly what your method signature should be.
  4. Whenever I use reflection to do things like that I always seem to get caught out by forgetting to specify BindingFlags.Instance - it's really annoying!
  5. Can't you go to Project -> Add User Control? Or is that not in the standard version?
  6. I'm afraid there is no simple example, if I have time I'll try to knock up a sample for you. You'll have to be familiar with Platform Invoke and do some reading of MSDN on the various messages you send to establish a tooltip window and configure regions.
  7. You'll have to implement this yourself, using code. You might find the methods of the ControlPaint class useful for drawing the selection rectangles and grab handles, but the moving and resizing you'll have to write yourself.
  8. Then there is nothing in the textbox. That is the correct way of doing it.
  9. Nope. The best you'll find is hosting IE and calling some method on that to make it print.
  10. I couldn't help noticing you are converting typenames to strings and comparing them. There is no need for this, use the following simple syntax instead: If TypeOf c Is Textbox Then etc
  11. The latest version of VB has bit shifting operators too.
  12. No, the icon gets compiled in to the exe file.
  13. divil

    Advice!?

    VB.NET is a language, ASP.NET is a set of objects used to work with html and page/session state. You use them together.
  14. Prints Charming! hahahaha! jfackler gets my vote :)
  15. Early binding doesn't stop you, it just means you have to cast your variables explicitly: DirectCast(a(0), Employee).MyField
  16. How about "UltraMegaPrinterMonitor"? Or "Ernie the fastest Printer Monitoring application in the West"?
  17. The framework as a whole has much less bugs, and so does the IDE. VS.NET 2003 and .NET 1.1 are primarily a bugfix release, hence the low price (covering shipping and media).
  18. Oh, my bad, I must have been thinking of VB6 or something.
  19. Alternatively: Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim primaryBounds As Rectangle = Screen.PrimaryScreen.WorkingArea Dim formBounds As Rectangle = Me.Bounds If Not primaryBounds.Contains(formBounds) Then Bounds = Rectangle.Intersect(primaryBounds, formBounds) End If End Sub This will also take accound of the taskbar space :)
  20. I suggest reading the language reference in the documentation.
  21. Debugging controls at design time is extremely tedious. You have to open a new instance of Visual Studio and attach its debugger to the first instance, which is the one running your control. You can then set the second instance up to break on CLR exceptions (Debug menu -> Exceptions) and when the exception is his in the first one, the second one will break in to source code.
  22. If you make the second tab active at design time, it should save that and that will be the active one at runtime by default.
  23. Can you give an example? :)
  24. Try using Regex.Split instead.
  25. This belongs in Random Thoughts - it's already been discussed recently here too.
×
×
  • Create New...