Jump to content
Xtreme .Net Talk

mutant

*Experts*
  • Posts

    1922
  • Joined

  • Last visited

Everything posted by mutant

  1. 'for example 12% opacity Me.Opacity = 0.12 'or 67% opacity Me.Opacity = 0.67 Opacity accepts a Double value and a value between 0 and 1.
  2. First of all you are trying to use an Object object (:)) for a form where you should use the Form type unless you are casting the object. Second, when you change the object type to Form those will show errors because those methods/properties from VB6 are not available in .NET. :)
  3. You can use all the classes and objects from th .NET Framework in any version of VS.NET. Since the ADO.NET objects are part of the framework then you will be able to connect to the DB through code but not using the IDE(one of the limitations :)).
  4. It doesnt really make much difference, VS.NET mainly helps to make your work a lot easier. Some of the differences between the two are the possible project templates you can start with, for example Standard doesnt have a project type for a DLL but you can create one easily using the command line. There other things that make the development easier that are missing in Standard. If you wanted to you could develop any application you can with .NET Framework using notepad and the command line compiler :).
  5. The best way is to close all forms then close the startup one on which your message loop is based. :)
  6. If you want to just read the whole file you can use the ReadToEnd() method. Then searching the string that you got for specific things shouldnt be hard using the methods that the String Object provides. Do you have any more specific questions about this? :)
  7. Did you try using the MailAttachement object? Dim attch As New Web.Mail.MailAttachment("Filename") msg.Attachements.Add(attch)
  8. Using modules in an OOP language like VB.NET is not very good :) You have to indicate that you are using a module, which you didnt need in vb6: Module ModuleName 'code End Module
  9. You can download the Speech SDK that was made for VB6/C++ and use it, currently the only Speech SDK there is for .NET is for ASP.NET (its still in beta though).
  10. mutant

    sorry.

    You need the .NET Framework runtime to run the apps written using the .NET Framework, but the file with the .NET runtime is only about 23MB so it shouldnt be a problem. C++ (not C++.NET) doesnt require anything additional on most systems because the requirements are already built into the OS.
  11. You might want to look here: http://www.xtremedotnettalk.com/showthread.php?s=&threadid=69691 :)
  12. Are you saying the lines dont show up after the image is saved? If yes then you are probably drawing to the picturebox itself and not the image object it contains to which you have to draw for anything to become the part of the image,
  13. You could use the conecpt the JumpsInLava showed you or you could use an array list to store all the picture boxes and add or remove whenever you want using the same apporach shown in the JumpsInLava's post. JumpsInLava, format the code use the vb tags: [ vb ] [ /vb ] But without spaces, if I didnt use spaces it would format it and you wouldnt see the tags :).
  14. You could set the Name property of a control like that.
  15. You need to add it to the control collection of the form: FormObject.Controls.Add(PicBox_1_2)
  16. You dont need any special type of a project to make app without a form. Simply delete the form, go to your Solution Explorer, right click your project and go to properties and you should see an option called Startup Object. Set it to Sub Main. You dont need to call Application.Exit() if you dont run any form because when the code in Sub Main finishes it automatically exits.
  17. I think a DockingSuite control by Divil would be what you are looking for: http://www.divil.co.uk/net/controls/dockingsuite/
  18. You shouldnt use End, ever, its not recommended as it doesnt clean up anything, it only shuts down the program. If you form doesnt even get shown then what about not having the form at all and using Sub Main to execute the code and then it will exit automatically when the code in Main is done.
  19. If you just want to get the days only then its very similar: DateTime d = DateTime.Now; DateTime d1 = DateTime.Now.AddDays(3); TimeSpan ts = d1.Subtract(d); MessageBox.Show(ts.TotalDays.ToString()); //use the TotalDays property to get days only
  20. Your DLL project is called Wavs and you are importing Waves, maybe you should check the namespace you put your DLL class in.
  21. You can use the TimeSpan object to see the difference between two dates: Dim b As Date = Date.Now Dim b1 As Date = Date.Now.AddDays(2) 'add two days to the current date 'so there is some kind of a difference to compare :) Dim ts As TimeSpan = b1.Subtract(b) 'subtract the first date 'and return it to the timespan object MessageBox.Show(ts.ToString) 'show the difference
  22. If FormObject.Focused Then 'do something if the form is focused End If :)
  23. Use the SaveFile and LoadFile methods of the RTB. Also I would suggest using IO.StremReader for reading and IO.StreamWriter for writing, they are part of the framework and better then the old vb6 methods. :)
  24. You could use those: Me.SuspendLayout() 'and Me.ResumeLayout() It will stop the layout from changing until you resume it, and when it is supsended then change the properties.
  25. The Framework doesnt ship with a .NET native MeskEdit.
×
×
  • Create New...