Search results for query: *

  1. B

    Question Get value from DropDownButton

    I see my error now, I was trying to trap the value of the item clicked from the Dropdownclosed event of the DropDownButton, instead of the Click event from the actual item in the list.
  2. B

    Question Get value from DropDownButton

    Using VS 2010, there's a DropDownButton control where you click it and it pops down a list of options. I've looked and looked and can't figure out how to retrieve the value of the option that the user selects. Unlike the combo box, this button doesn't have a textbox. I've put the button onto...
  3. B

    Linklabel -- how to populate subject & body of email?

    Yes, and I understand concatenation... but the code there gave little insight on using concatenation with the MailTo thing. Finally figured it out with a some experimentation... the key is realizing that you can put stuff outside of the quotes and it still will show up in the body... not that...
  4. B

    Linklabel -- how to populate subject & body of email?

    Hmmm, I'm missing the connection between using a variable inside of the MailTo function and concatenation. Could you elaborate just a wee little bit? :) I'd like to do something like this: Private Sub linklabel1_LinkClicked(ByVal sender As System.Object, ByVal e As...
  5. B

    Linklabel -- how to populate subject & body of email?

    The code below seems like it would lend itself well to using a variable to put text into the body and subject, but it requires a "From". I won't have that information at run time. I assume there is a way to retrieve the users default email address, though, but is this the best way to go...
  6. B

    Linklabel -- how to populate subject & body of email?

    D'oh! I went to the other two links and didn't notice the 1st, needed link... gotta use the ampersand between the subject and body: mailto:user@example.com?subject=Message Title&body=Message Content Next question.... in my app, I have a code in a textbox that the user previously copy/pasted...
  7. B

    Linklabel -- how to populate subject & body of email?

    Thanks JohnH, as always your quick help is appreciated. I see that if put "?body" after the 'To' address, then it puts the following text into the body of the message. But in this case, the subject doesn't work, all text after "body = " ends up in the body. I'm having a hard time finding...
  8. B

    Linklabel -- how to populate subject & body of email?

    In my app I want the user to be able to click a linklabel on the form to send me an email. Easy enough using this: Private Sub linklabel1_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles linklabel1.LinkClicked...
  9. B

    Reading text file line by line, with resetting position to beginning of file

    Hmmm. Wow. The files are not that big, few hundred K at most, so reading them into an array from the beginning would be much better. Darn, wish I would have thought about that! Thanks very much JM!
  10. B

    Reading text file line by line, with resetting position to beginning of file

    I'm reading a text file with StreamReader, line by line. If a condition is met, then I do an operation and then start reading the file again from the first line. I realize I could close and then re-open the file, but surely this would be very slow. I could do this easily in VB6, but pulling...
  11. B

    Creating a new custom folder on destination PC

    I see. My apology for the inconvenience.
  12. B

    Creating a new custom folder on destination PC

    Believe me jm, I try! And I did see your post, but just did not understand it. I'm new to writing to these standard folders from code, and need example codes. I do appreciate your time taken to help us rookies.
  13. B

    DataGridView is slowwwwww....

    Dim p = GetType(DataGridView).GetProperty("DoubleBuffered", Reflection.BindingFlags.Instance Or Reflection.BindingFlags.NonPublic) p.SetValue(Me.DataGridView1, True, Nothing) Yeee hiiiiii!!!! That does it! Put it into my form1 load event 1st thing. The difference is night & day. Another...
  14. B

    DataGridView is slowwwwww....

    JohnH, I'm not using the CellFormatting event at all. I am running Windows 7 64bit. Does the first code just go into the Form1 Class with all of my other code? I put it there & get an error on the 2nd line of that: "Declaration expected" If I were to try the 2nd code snip, would I add a...
  15. B

    DataGridView is slowwwwww....

    InertiaM, I have not put Try..Catch error handlers in my code yet. Evidently it's an issue for lots of people, here's a page full: Fixing a slow scrolling DataGridView | Bitmatic Seems like they have a solution, but I just didn't understand it enough to implement it. Thanks for your reply!
  16. B

    DataGridView is slowwwwww....

    On second thought... I don't think adding a range instead of a row at a time will matter. The grid is already drawn on the screen, and if I minimize and then return to normal, it takes a couple of seconds to draw the screen. Very disappointing, hope there is a solution.
  17. B

    DataGridView is slowwwwww....

    I realize this has been covered here & there, but I'm wondering what the best solution is. My dgv has only 20 columns and 20 rows, some with colored background, and is painfully slow even on a relatively fast laptop. Some solutions I've seen include setting the dgv property to Doublebuffered...
  18. B

    Creating a new custom folder on destination PC

    Awesome. That works nicely. In the Properties window: DefaultLocation [CommonAppDataFolder]\BugMan\BugMansApp That creates my company folder and a folder for that application, and puts my distribution files into that folder. Now the really dumb question... how do I read/write to that folder...
  19. B

    Creating a new custom folder on destination PC

    No problem! I'm grateful for your help. I added the custom folder [CommonAppDataFolder] to the Setup and added a text file sample that would be distributed with the app. It did get installed, though just showed up in 'C:\Program Data\' folder. While this is certainly a step in the right...
  20. B

    Creating a new custom folder on destination PC

    Under the 'Add Special Folder' option, I only see "Users Application Data Folder" for data folders, and when I add files to this folder is warns that the data won't be seen by all users. Doesn't seem like a good option, I still seem to be doing something wrong or missing something. I'm using...
Back
Top