Jump to content
Xtreme .Net Talk

Volte

*Experts*
  • Posts

    2372
  • Joined

  • Last visited

Everything posted by Volte

  1. Can you paste exactly what code gives you the Object Reference Not Set error?
  2. Graphics.FromImage() returns a Graphics object. You need to change the last few lines of code to this:Dim bmp As New Bitmap(ModImg) Dim g As Graphics = Graphics.FromImage(bmp) g.DrawImage(bmp, New Rectangle(265, 10, 200, 200), 0, 0, bmp.Width, bmp.Height, GraphicsUnit.Pixel, Attrib) bmp.Save("c:\blah.bmp")
  3. I doubt there's an easy way to setting the style on another program, even with reflection. What is it you need to do, anyway? Why do you need to set a style on another app? In order to set the style, you will need to retrieve the Windows.Forms.Form object representation of the window, and as far as I know, there's no way to get a Form object out of an hWnd.
  4. We will not write your programs for you. Look at http://www.rentacoder.com for info on how to pay for other developers to do it for you. You are unlikely to find anyone to do it for free. This isn't the place to look for help with stuff like that anyway.
  5. Since that's the only way to do it effectively, it's not really nutty. More like "required". :-\ What does this program do, anyway? If it's so small, creating it in C++ should be no problem (assuming you're familiar with C++).
  6. Try this:Me.SelectNextControl(Me.ActiveControl, True, True, False, False)
  7. I'd say that's your best bet. If you mess around with raw RTF codes (look at the TextRTF) property, you can speed it up quite a bit.
  8. No, since (as far as I know) SetStyle only works from the constructor.
  9. This looks like C problem to me. Does this have anything to do with .NET?
  10. Get the API Viewer 2003 from http://www.allapi.net - it has a VB.NET syntax option. http://www.activevb.de/rubriken/apiviewer/index-apiviewereng.html
  11. Not in Word 2000, no. Possibly in 2003, but I haven't looked at it yet.
  12. If you can post the zip here, we can update it for you no problem.
  13. Hey Don, good to see you again. You'll find what you need in the ControlPaint class. Put this in the form's Paint event: ControlPaint.DrawBorder3D(e.Graphics, Me.DisplayRectangle, Border3DStyle.Etched)There are other bump styles, just check out the Border3DStyle enum.
  14. Why is 7 far too young?
  15. That example will only work if s is defined as:Dim s As String = "Mike Smith 123 Something St. Here"
  16. Oh, that changes everything. Use the first 15 chars as the firstname, the next 25 as last name, and the rest as address.
  17. It's not totally fool-proof, but you could simply take the first word (up to the first space) as the first name, the second word (first space to second space) as the second name, and the rest as the address. This will only work in no First or Last names have spaces with-in them.
  18. Use the Select method and pass the row index to select a whole row.
  19. You might want to look at serializing the layout and properties and such into XML or another format. Read about [msdn]System.Xml.Serialization[/msdn] namespace for more information.
  20. Dim curPos As Integer = RichTextBox1.SelectionStart
  21. You can compile the library as a DLL and use it from VB.NET projects, regardless of what language it is orginally in.
  22. Actually CRLF is 13 and 10, not vice versa. Plus Chr() is part of the VB compatability library, so if you want to avoid it you could do something like this:theString = theString.Replace(System.Text.Encoding.ASCII.GetString(New Byte() {13, 10}), "")A little longer, but I personally try to write code that stays the same (except syntax of course) between VB.NET and C# - Chr() will not work in C#.
  23. You have to activate the menu first. For example: &File ...E&xit Alt-F-X would cause the File->Exit menu item to fire.
  24. Ugh... Access... Give me MSDE over Access any day. Anyway, have you looked here: http://www.microsoft.com/sql/msde/default.asp - there's gotta be something there. Also, try searching Google.
  25. Lotto is an array, and so is UserNum. You have to specify an element for UserNum. For example:If Lotto(count) = UserNum(count) Then
×
×
  • Create New...