Search results for query: *

  • Users: B2Ben
  • Order by date
  1. B2Ben

    Extracting Path from a Shortcut file...

    Thanks, JohnH... that did the trick. Some of the vb files triggered warnings in VS2005, mostly for a depricated variable type or something, but nothing bad enough to prevent me from compiling. For my purposes (getting the path) it worked great.
  2. B2Ben

    Extracting Path from a Shortcut file...

    Thanks, that works very well! I'll have to file that one away for future use. However, this is a pretty simple app, with no external DLL references. I'd like avoid using the script host DLL if I can, and keep the app self-contained in one EXE. If anyone else knows how I can do this, let me know.
  3. B2Ben

    Extracting Path from a Shortcut file...

    Hey all - I'm trying to make my application more robust by allowing files to be dragged-and-dropped onto the executable, thus opening the dropped files when the program launches. This is working well so far. I'm getting the file path(s) from the command line arguments and processing them. The...
  4. B2Ben

    Custom msgbox... resize to fit text?

    I learn so much from you, JohnH... Thanks!
  5. B2Ben

    Custom msgbox... resize to fit text?

    Excellent... I'm getting closer - Thanks. When I resize the form, it's including the title bar and bottom border height in the overall pixel height of the form... how can I determine these heights and include them in my new Form.Height?
  6. B2Ben

    Custom msgbox... resize to fit text?

    sorry... using VS.NET 2003... forms don't have an Autosize property
  7. B2Ben

    Custom msgbox... resize to fit text?

    I'd like to build a simple msgbox-style form, that can display a little or a lot of text, and resize itself appropriately to display it. How can I make my form and label resize correctly? Any assistance is appreciated :-) Thanks
  8. B2Ben

    What I built, with your help

    Hey all - Just wanted to share with the forum what I built with VB.NET... I couldn't have done it without the help of the vbdotnetforums.com community :) http://www.b2ben.com/blog/?id=29
  9. B2Ben

    My.Settings

    Just store a string containing the form's name or a related keyword. When you load up, use a select case something like this Select Case My.Settings.LastOpenFormName Case "FormA" ' Load Form A here... Case "FormB" ' Load Form B here... Case "FormC" ' Load Form C here...
  10. B2Ben

    how to represent "anything" using regular expression in VB.net?

    Another good cheat sheet: http://www.ilovejackdaniels.com/cheat-sheets/regular-expressions-cheat-sheet/
  11. B2Ben

    how to represent "anything" using regular expression in VB.net?

    I recommend using this tool to help you troubleshoot and learn regular expressions: http://www.ultrapico.com/Expresso.htm It's come in very handy for me... and when you find a regular expression you like, it will generate the code for you.
  12. B2Ben

    Can't use standard "Terminal" font?

    When I originally pursued this, it was because the Terminal font had symbols for some of the unusual characters (ASCII 1 through 6 for example). Courier and Lucida Console just had empty rectangles for the characters I wanted to see. I found a font that was close to what I wanted, but I didn't...
  13. B2Ben

    Control LEDs with program

    This might help: http://www.phidgets.com/ They look like fun... wish I could justify buying one of these toys for myself :-)
  14. B2Ben

    Viewing HTML stored in a variable...?

    I would like to create a report after running a serties of operations, and I would like to write that report in HTML. However, I don't really need/want to save the file to the hard drive. Can I write HTML data to a variable, and view it in some sort of browser control? I've never worked with...
  15. B2Ben

    DLL Functions, etc...

    Is there any way to retrieve the various functions/subs/etc and their signatures from a DLL... or do I need to know all them and their proper syntax? It would make coding a bit easier... so I thought I'd ask :)
  16. B2Ben

    Control LEDs with program

    The only reason those USB wires worked was because two of the wires in a USB cable serve as a 5-volt power supply to the device. Those 5 volts will power the LED, but you can't control it in any way.
  17. B2Ben

    Accessing DLL files...

    I got it... it works like a charm! I created the code to be executed by the run-time compiler, and just made it into an embedded resource. At run-time, I extract the text from the embedded file, do a search & replace to change the path of the DLL file, compile it, and run my function. Works...
  18. B2Ben

    Accessing DLL files...

    Crazy... compiling code on the fly... this should be fun. While I have your attention... got any examples of compiling/running code on the fly? :)
  19. B2Ben

    Accessing DLL files...

    Dim Path as string = "C:\folder\file.dll" <DllImport(Path)> VS2003 produces an error: "Constant expression is required" (referring to using Path in the DllImport function)
  20. B2Ben

    Accessing DLL files...

    OK... is that a .NET 2 thing? I have VS2005 at home, but I use VS2003 at work. Forgive my ignorance, but could you show me a more detailed example on what you did? As for storing settings... it's more complicated than that... When a customer buys our software, they pay for certain features...
Back
Top