Jump to content
Xtreme .Net Talk

Volte

*Experts*
  • Posts

    2372
  • Joined

  • Last visited

Everything posted by Volte

  1. You can use the API Viewer 2003 obtained from AllAPI to get API declares, constants and types from Win32 API. It even does its best to convert to VB.NET or C# if you want it to (though it doesn't do a great job). Even for a .NET developer it's a must-have in your utility box. :)
  2. There is a development SDK for Palm, but it is not .NET (at least, I don't think there is one).
  3. Well, I'm almost positive you'll never get a VB.NET to run on a Palm machine, but the .NET 2003 package comes with the Compact Framework, which allows you to develop for Windows CE 2002. You will probably be able to transfer much of your code, but you can't simply deploy it on both. You'll need to redesign whatever interface is there and probably redo some of the code.
  4. I don't see how one can be faster than the other... all either of them do is remove WS_VISIBLE from the list of window styles applied to the form.
  5. Er, you didn't change the event...Private Sub txtDescription_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) [b]Handles txtDescription.KeyDown[/b]You need to change *that* -- the actual name of the sub doesn't matter.
  6. Try using the KeyPress event -- you won't be able to use the KeyCode property because it doesn't exist, but there is a KeyData property which you can use.
  7. Just set Visible = False when you minimize it, and Visible = True when you maximize it.
  8. Actually, that was my suggestion too. And yes, you're right, it will contain spaces on the toolbar, but that's the price you pay. Why does it matter, anyway? That's not the way Windows isn't supposed to work.
  9. Obviously... Help with what?
  10. Just set e.Handled = True to make it ignore the key you entered.
  11. No on both counts. Since you can have variables called both backcolor and BACKCOLOR and they won't conflict, it'd have no idea what to do for you. If you use intellisense (control-space while typing) it will either autocomplete the word you are typing with the correct case, or bring up a list of possible matches that you can choose the one you want.
  12. Look into using databases. Look for your MSDN for information about using ADO.NET. Age and skill/ability to learn are completely unrelated. :rolleyes:
  13. There is some VB6 code here. Not sure if it works or not since I have a DSL connection which is always on, but it can be easily be converted to VB.NET so you can try it.
  14. Project Properties -> Common Properties -> Build You can change it there.
  15. You could either calculate the width of a space, the width of the text, the width of the window, and pad the caption with spaces (which is the easiest thing to do), or owner-draw the form's border and caption bar by subclassing and capturing WM_NCPAINT. If you want to do the first one, you need to use the Graphics.MeasureString method (use the Graphics object of the form, retrieved with Me.CreateGraphics()) to calculate the size of the text in the caption.
  16. TransparentBlt contains a memory leak in all operating systems preceding Windows 2000, and should be avoided like the plague. The only correct way to do transparent BitBlting is by creating the mask and using the SrcAnd/MergePaint combination. Look at my BitBlt tutorial (GDI32 Part III) tutorial on EliteVB. It's in the Graphics section. It's for VB, but it's fairly transferrable.
  17. If you use Courier New, you are safe; if I'm not mistaken, *every* computer with Windows comes installed with Courier New, regardless of options chosen during install. I'm fairly sure it's one of the required fonts.
  18. What are you using to open the picture?
  19. Clipboard doesn't return the object on the clipboard, it returns a DataObject class which contains information about the object. Perhaps you should try looking at that in the MSDN. Plus, the MSDN has numerous samples about the clipboard.
  20. Try looking at this COM wrapper control for the HTML editor control. It may not be exactly what you want, but I think it is.
  21. If you are making a Windows Forms control, you will need to create a custom designer for the control, and override the PreFilterEvents method to remove events. Look at divil's site for an excellent tutorial about adding custom designers to your components. There is also an excellent article here, by Shawn Burke, the man who created much of the Windows Forms implementation in .NET.
  22. You could declare the picture boxes as an array.Dim pic(9) As PictureBox '0-9 = 10 picture boxes Dim i As Integer For i = 0 to 9 pic(i) = New PictureBox() pic(i).Left = 100 pic(i).Top = 100 Next iSomething like that.
  23. You may want to use StreamWriter or BinaryWriter at this point to save the retreived resource to a temporary file, and then pass that into the Audio class.
  24. Well, the MSDN would know better than I, so I must be mistaken. Seems rather odd though. SelectObject should be used whenever you need it. There really is no way to go overboard with it, or conserve its use. Whenever you need to put a font or a pen into a DC, you need it.
×
×
  • Create New...