Jump to content
Xtreme .Net Talk

mutant

*Experts*
  • Posts

    1922
  • Joined

  • Last visited

Everything posted by mutant

  1. This tutorial might help you: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csref/html/vcwlkplatforminvoketutorial.asp :)
  2. Background compilation is considered by me one of the best things VS.NET has to offer. I dont get why you are getting mad at it, if it finds an error it simply highlights it. :)
  3. You could simply add the handler to the TextChanged event during form load: Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load AddHandler TextBox1.TextChanged, AddressOf TextBox1_TextChanged End Sub
  4. Form1 is the name of your class, as for the name of the object you can call it whatever you want as long as its a valid name. You cant inherit more than one object, Form object is the base for all your forms that you add controls and code too.
  5. Apache cant run ASP.NET, if you want to use .net web apps the server must have .NET Framework installed.
  6. Are those files being in use?
  7. If you start one executable from your program then at the startup you can pass in a command line, but other than that I dont think you can do it.
  8. I mean something like this: Public Class SharedObjects 'you can call it whatever you want Public Shared TheTextBox As TextBox 'store an instance in this variable End Class As the variable is shared it can be accessed from any part of your application by simply using: SharedObjects.TheTextBox.Something()
  9. The converter produces a non standard code, like default instances and things like that from VB6 that shouldnt be used in .NET. Most people here will not suggest using it. If your program is very big and works then you shouldnt have to convert it. If its small and could use some of the new functionality then you could rewrite it yourself.
  10. If you do it like that you will always create a new instance of that form and in turn a new instance of the TextBox which might not be what you always want. If you simply want one instance to which you refer store it in a shared variable in a class.
  11. You cant refer to a textbox on another form just by its name like you are doing: TxtFind.Text ...... You need to use the Form object you created: frm.TxtFind.Text.... Also, dont use quotes around the object name like you did with the Replace method, same thing applies as what I said above. Also I dont see you showing the form in any way. Try what Bucky said above, frm.ShowDialog(), before checking any values.
  12. It looks like you want to do that so I just suggested how to do it. :)
  13. To insert things to an array list you can use Insert or InsertRange which can accept an array. Then to move it back to an array you use ToArray method of the ArrayList.
  14. Only Graphics objects or Rectangle is accepted alone in the overloads, only the last overload accepts a Region but also another argument, CombineMode.
  15. If you use an array list then you can simply use the Remove or RemoveAt method of it. A normal array doesnt have a method like that.
  16. Oh, you cant change how InputBoxes work. You would have to create your own form that asks for that input.
  17. Are trying to do this using Managed Extensions? If yes then you can use the System::IO::StreamReader to read in the file and then assign it to a variable: String* str; //string variable System::IO::StreamReader* reads = new System::IO::StreamReader(S"hello.txt"); //new instance of StreamReader str = reads->ReadToEnd(); //read the whole file using the ReadToEnd() method reads->Close();
  18. Do you mean how to use that code Bucky showed you with the InputBox? Could you rephrase your question please.
  19. What do mean it wont recoginze it? There is an error or what? What you have works for me after I initialized the array to a number.
  20. Use the FileSystemWatcher component, its in your toolbox under Components section or IO.FileSystemWatcher. Set the filter to monitor a directory and use the Created event to check the file names.
  21. Its probably because you add one to z before doing anything to the listbox and it overflows by one. Try putting z =+ 1 after modifying the listbox.
  22. mutant

    thread's?

    thread.Abort() :)
  23. You dont need a dummy control, if you have other controls on your from then what VolteFace showed you will work instead of of focusing a dummy control. :)
  24. I would suggest you to migrate, Object Orientation is really one of the most useful things you will ever have in programming and VB.NET is fully OOP. And the wealth of classes in the Framework is all worth it. If you are looking for an IDE and dont want to use VS.NET there is a free one: http://www.icsharpcode.net
  25. IDEs like VS.NET and SharpDevelop are being built using the same technology so there shouldnt be differences.
×
×
  • Create New...