Jump to content
Xtreme .Net Talk

Volte

*Experts*
  • Posts

    2372
  • Joined

  • Last visited

Everything posted by Volte

  1. Change both Long to Int32 and it will be fine.
  2. The documentation was right. As long as you do all your drawing in the Paint event (and no-where else), it will persist the graphics.
  3. This is a common bug. If you are using the BlueVelvet style, try switching to another one, like Lite or Lite with Blue.
  4. It's because you renamed your module. If you are in the IDE, double click on the error in the Task Pane and select the name of your module (modFirst) from there.
  5. GIF or JPG will be fine.
  6. Set the Form's AcceptButton property to that button.
  7. Detail view is report view, sorry. I'm still not understanding what your problem is. Can you attach a small screenshot of the listview after the icons are correctly sized?
  8. The report-view in ListView will only let you use small icons. You can't resize the items to make them 32-pixels high, unless you feel like getting into some messy hooking and subclassing (which you don't... trust me). Maybe I misunderstood you.
  9. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/vbtchWorkingWithMultipleFormsInVisualBasicNETUpgradingToNET.asp
  10. It uses the [api]ShellExecute[/api] API function, but .NET can do it with Process.Start. The file associations are stored in the registry under HKEY_CLASSES_ROOT I think.
  11. You absolutely should not take code from the SharpDevelop source code. It is GPL'd code, and they are quite strict about it. This means that any application you make that uses SharpDevelop code must both be open source, and have credit given to the SharpDevelop team. There are probably other restrictions too, but that's the basic idea. Use it as a reference, sure, but don't extract code.
  12. So, are you using an ImageList here, or what? I wouldn't recommend using .ico files for things like toolbars and whatnot, since they can act a bit wierd (showing the wrong size at times or whatever). I suggest you extract the files you need and save them as bitmaps (icons are basically just a bunch of little bitmaps in one file, anyway) and use those. Sorry if I misunderstood your problem - you were a little vague.
  13. You should use the FileSystemWatcher component.
  14. What specifically is this application going to be used for?
  15. In the Image menu, you can select from the Current Image Type submenu the icon you wish to view. You can then copy the icon to a new file.
  16. You could try using the KeyPress event. You may have to handle special cases (for example, if I press the Enter key in a non-multiline textbox, KeyPress will still fire even if the text itself doesn't change) but it appears to be the only way to do it.
  17. There's a free text control called CodeSense which is a syntax highlighter. It is a COM control, so it needs to be registered and all that, but you can get it here if you want: http://www.ticz.com/homes/users/nlewis/HTML/Software_Development/CodeSense/faq.htm
  18. 1) Yes, the code in my previous post will allow you to put a percent sign or not put one. You may even want to trim it so no extra spaces will throw it off: Dim sTax As String = txtFederal.Text.Trim() 'added the variable for cleanliness, and the Trim() 'call to remove any spaces that are padding the number. fedTax = Single.Parse(sTax.Substring(0, sTax.Length - 1)) 2) Yes, that's the way you do it.
  19. But I thought you wanted to be able to enter in a % sign? Try this, then:If txtFederal.Text.EndsWith("%") Then fedTax = Single.Parse(txtFederal.Text.Substring(0, txtFederal.Text.Length - 1))The problem is that it's removing the last character (which I assumed would be a %). If it's not always going to be % you need to check, which is what my code above does.
  20. Right before that line, put this:MessageBox.Show(txtFederal.Text.SubString(0, txtFederal.Text.Length - 1))and post here what it says.
  21. You need to strip off the % in order for it to parse the number correctly. For example:fedTax = Single.Parse(txtFederal.Text.SubString(0, txtFederal.Text.Length - 1)
  22. Have you got your database opened in the .NET Server Explorer window? That will create a lock-file as well.
  23. Does the directory 'Hello World' exist in that folder?
  24. Have you tried also handling the Click event to do this? Although traditionally when doing things such as data entry, clicking on the textbox does not cause the text to all be selected.
  25. Look at the Process class in the MSDN. More specifically, look at the ProcessStartInfo.RedirectStandardOutput. This allows you to communicate with the stdin and stdout using I/O streams built into the .NET framework, rather than using complicated P/Invoke methods which would end up being more trouble than it's worth.
×
×
  • Create New...