Jump to content
Xtreme .Net Talk

Volte

*Experts*
  • Posts

    2372
  • Joined

  • Last visited

Everything posted by Volte

  1. LOL! :D
  2. Well, the ProgressBar appears to be NonInheritable for some ungodly reason, so I can't make a class of it and UserPaint it. Similarly, I can use the CreateGraphics method of the progress bar and draw directly on the progress bar, but because the Paint event comes after the form's or whatever, the text goes behind the little blocks that make up the progress bar. I could get into old fasioned API methods, but I think it would be more trouble than it's really worth. I would say either put the label above the progress bar, or just code your own UserControl. ProgressBars are among the simplest controls to code yourself.
  3. When you add a MainMenu object to your form, it should create a menubar at the top of the form. You should then be able to type your item text into the menu bar by double clicking, typing, and pressing enter. You can add menu items and sub-menu items the same way. Check to make sure that you haven't set the Visible property of the menuitems to False or anything like that. I suggest deleting the menus that you've got and starting over.
  4. Well, we could always add the header without removing the category; I just think it would stand out more. :-\ If it would involve too much work, then forget about it, but if it's just a simple addition (even if it's just to the default forum style; that'd do, I think) I think it would be worth it.
  5. That depends on what you've done so far. When you look at your form at design time, what does it look like? Have you laid out your menu structure using the integrated menu editing system?
  6. DirectX is covered by the Graphics forum (although a sub-forum wouldn't hurt :-\)
  7. Volte

    Thanks

    I agree! Thank you Bob (and other mods/admins who had a part in this) for doing this. I know I'll be much, much more active now! :)
  8. We don't want to look like we are anti-VB6; we do still run a VB6 forum, and I think we should give people who find this forum easy access to VB6 help, should they need it. Plus, it'll cut down on the misplaced posts. ;)
  9. Personally, I think the blank category should be removed, and a small announement put in the header under the logo saying something like This forum was created to help with the .NET framework and related subjects. If you need help with any other languages (primarily Visual Basic 6 and under), please visit our sister site at http://www.visualbasicforum.com. Thank you.
  10. In the footer: Should that not be Extreme dotNet Forum?
  11. Alright then. Thanks for clearing that up.
  12. That's understandable, but it's just that Bob specifically said on the other forum that statuses wouldn't change yet. I, for one, asked for my title removed this morning, so it doesn't particularly affect me, but what ever.. :-\
  13. Well, there is a basic tutorial on EliteVB about reading files. I suggest you read that tutorial, as well as reading the MSDN that came with your VS.NET. Look up StreamReader and StreamWriter to learn how to read and write text files. There are basically two ways to do what you want. You could either: 1) open two streams simultaneously (one reading your source file, one writing to a temp file), and reading line-by-line through the source file, while writing to the temp file if the line doesn't start with 'MBS' 2) read the lines into an array, and just loop through the array and overwrite the file with no temp files needed. The following code does the latter: 'Open the file you want Dim sr As IO.StreamReader = New IO.StreamReader( _ New IO.FileStream("c:\somefile.txt", _ IO.FileMode.Open)) 'Read in the entire file, close the file Dim strFile As String strFile = sr.ReadToEnd() sr.Close() 'Split it into its individual lines Dim strSplit() As String strSplit = strFile.Split(ControlChars.Lf) 'Open the file for writing, clearing it Dim sw As IO.StreamWriter = New IO.StreamWriter( _ New IO.FileStream("c:\somefile.txt", _ IO.FileMode.Create)) 'Set the newline character to a LineFeed alone (because 'the CarriageReturn is left over from the old file) sw.NewLine = ControlChars.Lf 'Loop through the array of lines and write to the 'temp file -- if it starts with MBS, don't write Dim i As Integer For i = 0 To strSplit.GetUpperBound(0) If Not strSplit(i).StartsWith("MBS") Then sw.WriteLine(strSplit(i)) End If Next 'Close the file sw.Close()
  14. Try replacing the MouseMove code with this: Private Sub lblTitleBar_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) _ Handles lblTitleBar.MouseMove If blnMouseDown Then Me.Location = New Drawing.Point(Me.Location.X + (e.X - MouseLocXonClick), _ Me.Location.Y + (e.Y - MouseLocYonClick)) End If End Sub edit: well, I guess you figured it out on your own.
  15. I just realized you can shorten that last line down to txtName.SelectAll, but the other way will work too.
  16. Are you in a loop? If you are, you could try a few things. For one, you could put Application.DoEvents() at the end of your loop (right before the 'Loop' part). Another way is to put Me.Refresh() at the end of the loop. If the code is in some place where you don't have the source, I don't know. You could look into threading, but there may be an easier way.
  17. The Err object still exists in VB.NET, along with LastDllError, but I'm not sure of the programming ethics that go along with it, since it's in the Microsoft.VisualBasic namespace, which as I understand is the compatability class. It should make a fine placeholder until you find a better way, however.
  18. Try this: txtName.Focus() txtName.Select(0, txtName.Text.Length)
  19. First of all, storing things in the registry is very beatable... just change the values or delete them. Second of all, "hiding" things in the registry is not good at all. I want to know exactly where every key in my registry is there and why. Not to mention programs like RegMon that can monitor this stuff. Easy stuff. There really is no way of completely unbeatable evaluation period thing. The most effective way of evaluating software is crippling it.
  20. Open the ZIP file you downloaded, click 'Extract All' or whatever it is in your zip program, and type 'C:\Program Files\Microsoft Visual Studio .NET\Vb7\' into the box. Make sure that it has the option set to extract the entire directory structure, not just the files. Click OK. Now it should work.
  21. In the Debug.Write window, that returns this:System.Windows.Forms.MenuItem, Items.Count: 8, Text: Testing 1 2But no name. :-\
  22. Alright, I'm a relative newbie to .NET, but I'm picking it up fairly fast. I have created an Ownerdrawn menu that has the XP style (it's duplicated pretty precisely I think). The problem is that right now, all the items have the same icon (for testing). I thought about using a collection of Image objects to specify which menu bitmap goes where (with the MenuItem name as the key). One problem: I can't figure out how to get the name of it in code. There's no 'Name' property. in the Intellisense. I'm probably missing something simple. :-\
  23. I just noticed a small bug -- all the stuff in [code][/code] tags is a bit large, and everything after the code seems to be abnormally large as well.
  24. It's looking great Thinker! Hope to get this thing working in the near future so we can recreate more of the old styles... Speaking of which, no-one here would happen to have any of the old .css files from the old forum, would they?
  25. One thing I don't like is the similarity between the new posts and no new posts... that'll be switched to the folders eventually right?
×
×
  • Create New...