Search results for query: *

  1. Annorax

    Opening a text file by double clicking

    Thanks for the tip, I actually just discovered that. :) Here's a reworked solution: If System.Environment.GetCommandLineArgs().Length > 1 Then Dim i As Integer For i = 1 To System.Environment.GetCommandLineArgs().Length - 1 openFile(System.Environment.GetCommandLineArgs(i)) Next Else...
  2. Annorax

    Opening a text file by double clicking

    For future reference, I've managed to figure this out. You need to do the following: ' Check if the user is opening a file upon startup If System.Environment.GetCommandLineArgs(0) = "" Then Me.mnu_New_Click(Me.mnu_New, New System.EventArgs) Else Dim s As String For Each s In...
  3. Annorax

    Opening a text file by double clicking

    Hi everyone, I am writing a simple text editor. I would like the ability to be able to right click on a text file in my system and "Open With" using my program. Here is what I have so far: If Environment.GetCommandLineArgs() Is Nothing Then 'Make new file normally Else 'Open each file in...
  4. Annorax

    Using sub in other forms

    Thanks for the quick reply. :) I am not new to programming but I am new to VB.net. This should be very helpful. :)
  5. Annorax

    Using sub in other forms

    Hi everyone, I have more of a general newbie question: what is good coding practice for commonly used code? I am experienced in Java and there I know it's good to make a class with a bunch of methods to be used in many places instead of writing the method in each place. Is there a similar...
  6. Annorax

    Making a "Favorites" system

    After doing a lot of research, I found a nice way to do this for anyone who finds this thread in the future: http://www.vb-helper.com/howto_net_mru.html You can implement a Favorites system as this MRU system. The only downside is that, without modifying, the favorites are inserted in reverse...
  7. Annorax

    Color manipulation

    Works wonderfully, thank you. :)
  8. Annorax

    Color manipulation

    Hi everyone, I'm working on a text editor and I want the ability to save the Foreground and Background colors. I've been trying to find a way to save the colors to a file and upon startup, read them and set them. I have getHexColor and hexToColor methods as follows: Private Function...
  9. Annorax

    Newbie TabControl questions

    Thanks for the assistance. I've managed to get it to work by changing Dock=Top for the TabControl. It now no longer cuts off any of the MDI child. On somewhat of a related question, when I am typing in my RichTextBox, the vertical scrollbar does not appear if I go past the end of the window. I...
  10. Annorax

    Making a "Favorites" system

    Hi everyone, I'm making a tabbed Notepad like application and I would like to implement a Favorites system, similar to that in IE and Firefox, but for text files. Using the following website: http://www.vsj.co.uk/dotnet/display.asp?id=173 I've managed to get a dynamic menu system up and...
  11. Annorax

    Newbie TabControl questions

    Thanks for the help, #1 and #2 work wonderfully. :) However, I am unable to get #3 to work. I set Dock=Full for the RichTextBox but it has no affect; the tabs still partially cover the text box...
  12. Annorax

    Newbie TabControl questions

    Hi everyone: I'm trying to make a tabbed Notepad like program using VB.net. With the help of lots of tutorials and code examples, I have basic tab functionality working. However, there are some things I haven't been able to figure out: 1.) How can I make double clicking on a tab close it? Is...
Back
Top