Search results for query: *

  1. W

    NotifyIcon context menu doesn't alway open

    Nevermind, I figured out what I did wrong. I had an event created for a single click on the trayicon to activate the form. I wanted the form to activate if the user single clicked on the tray icon. Now I have it check the window state status first. Thanks.
  2. W

    NotifyIcon context menu doesn't alway open

    I've got a windows form application created in VB 2005 that is working great with the exception of the context menu for the NotifyIcon. I've created the NotifyIcon as well as the ContextMenuStrip and I've assigned the ContextMenuStrip to the NotifyIcon. The ContextMenuStrip contains the...
  3. W

    Copy text from a listbox

    That worked great!! Thanks a lot!!!
  4. W

    Copy text from a listbox

    Wow thanks! I like the listview much better and the solution you posted to copy the items works great! My only problem now is that I'm not sure how to select all the items in the listview. The number of items in the listview will be completely random. Whether there are 2 items or 10,000 items...
  5. W

    Copy text from a listbox

    Dim s As String s &= ListBoxMAIN.SelectedItem & ControlChars.NewLine Clipboard.SetDataObject(s) This successfully copies one item in the listbox exactly as I need it, however, I need it to be able to copy all the selected items in the listbox. Any help is much appreciated! Thanks...
  6. W

    Copy text from a listbox

    Hey Experts, 1) I'm trying to copy the items of a ListBox to the clipboard so I can paste it into an excel document. I need the copied text to be in one row (to make it easy to paste into one column of the excel spreadsheet all in sepperate cells). The code I'm trying to use is below. I know a...
  7. W

    Using CreateProcessAsUser

    What about CreateProcesswithLogonW? Does anybody know how to use that?
  8. W

    Using CreateProcessAsUser

    Hello, I need an example on how to use CreateProcessAsUser. I would like to hardcode a user/password into a vb.net program so that I can have trusted people run cpl files (control Panels) as the local administrator, without knowing the password. For Example, I would like my program to...
  9. W

    Show me an example for this site?

    Hello, Could somebody show me an example for the Visual Basic .Net code used on this page? http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemsecurityprincipalwindowsidentityclassimpersonatetopic1.asp Thanks, Pat
  10. W

    How do I use this module?

    If there is anybody out there that knows how to use impersonation (run portions of a program as a different user) please help me out! Thank you! Pat
  11. W

    How do I use this module?

    Nobody knows how to use this module? Or know how to impersonate another user? :(
  12. W

    How do I use this module?

    Hey Experts, I have a module that I got from a book that is supposed to handle impersonation. I have no idea how to incorporate this into my code and it's the last big piece I need to get the entire program working how I want. Here is my module: Imports System.Security.Principal Module...
  13. W

    Menu Icons

    wow, thanks so much! This is much better than what I had! You're a life saver!
  14. W

    Menu Icons

    Is there a better way to make menu icons? How would you guys do it? Pat
  15. W

    Menu Icons

    Hello I'm a begginner to VB.net and I have a question on how to add icons to menus. I've searched all over and I've found several different examples, however, I could only get one of them to work and now I need help customizing it. Basically this code does everything I need it to do except it...
Back
Top