Jump to content
Xtreme .Net Talk

mutant

*Experts*
  • Posts

    1922
  • Joined

  • Last visited

Everything posted by mutant

  1. You should be able, on the System Requirements page says it supports Windows XP Home.
  2. Does that happen when you choose a certain feature or what? XP Home doesnt support web development.
  3. What you are doing is simply drawing over the picturebox, not to any bitmap object. If you want to draw onto the PictureBox's Image then you have to create graphics object for the image: Dim gr As Graphics = Graphics.FromImage(PictureBox.Image) 'then draw using that graphics object Now everything will be drawn onto the actual image.
  4. Yes, you can assign any bitmap to the Image property. When you are using the DrawImage, is onto your picturebox (for example in Paint event) or are you drawing to an image/bitmap object (by creating Graphics object for it)?
  5. This will return it for you: System.Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) The SpecialFolder enumeration contains a lot more other special folders. Then you simply get it using the GetFolderPath() method.
  6. I think that would be true, while browsing Microsoft's website earlier I noticed something about a free exam voucher if you already taken the VS6 exam.
  7. I dont know of any recommendation but you could search Amazon.com, it came out with some rusults for Object Oriented Programming. Im assuming thats what you want because of the thigns you ask. http://www.amazon.com/exec/obidos/search-handle-url/index%3Dbooks%26field-keywords%3DOOP%26url%3Dindex%3Dbooks%26store-name%3Dbooks/ There are a few from MSPress there.
  8. Cast the MDIParent object of your mdi child to a type of the parent and then access the toolbar: DirectCast(Me.MdiParent, ParentType).Toolbar1.something() :)
  9. Did you insert any picture into your picture box? If you dont then this error will occur.
  10. InPtr.Zero is simply a 0, a handle or pointer initialized to 0. :)
  11. You could create a Bitmap object from the PictureBox's Image object and then use the GetPixel method of the Bitmap object. Dim b as Bitmap b = Picturebox1.Image dim c as Color = b.getpixel(100,100)
  12. Change all Long declarations to Integers. Also, when using Win2000, XP or 2003 you cant just shut off the computer, your application needs permission.
  13. If you reference a DLL then you should be able to see what It contains using the Object Browser. You can view it by going to the menu: View, Object Browser
  14. File class is in the System.IO namespace too. What are the exact errors you are getting?
  15. There shouldnt be anything wrong with your code, are you sure that is the only argument that the exe accepts or maybe you need something else. Are you sure you can pass in the directory? Maybe you could try passing in a file name.
  16. If you want to see if a certain type of a form is opened then you could do this: Dim f As Form For Each f In Me.MdiChildren If TypeOf f Is Form3 Then 'do something if a form is of the Form3 type End If Next
  17. You would have to use that API. What do you mean it doesnt work? Are there any errors or what is happening?
  18. You need .NET framework, without it the applications wont run.
  19. Put quotes around the {BACKSPACE}.
  20. Please use this forum for VB6 questions :): http://www.visualbasicforum.com/
  21. If you want to display an HTML page you can use the Web browser control, you caan find it in the COM Components tab while adding control to the toolbox.
  22. Your form right now should have something like this: Public Sub New() MyBase.New() InitializeComponent() End Sub Thats the constructor. You have to change it so it accepts an argument: Dim anobject As argtype 'variable that will store what you passed in Public Sub New(ByVal arg As argtype) 'accept an argument MyBase.New() InitializeComponent() anobject = arg 'assign the passed in object to the local variable Then when you declare your form: Dim NewForm As New Form2(the object you pass in)
  23. If you want to pass it between forms then you could edit the constructor to accept that variable of the form that you pass the variable into. If you want a variable that is accessible to all forms and classes then simply create a class that will hold a shared instance of the variable. :)
  24. Close() method disposes of the form too.
  25. Overriting an image using Image.Save works for me. Are there any specific errors you are getting?
×
×
  • Create New...