Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
W

WizardOfPeyton

@WizardOfPeyton
About
Posts
10
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Point out the error
    W WizardOfPeyton

    I will attempt to look at this again. The example code you initialy listed includes 'omissing' as the parameter to various methods. Where is this defined?

    C# help csharp asp-net json

  • Enter key pressed in a VS.NET addin control
    W WizardOfPeyton

    I have also been working on a few add-in for VS.Net. I think I can help you with closing your toolwindow. I created a data member called Tool Window in my Connect class private Window ToolWindow; Save the Window returned from the CreateToolWindow(...) call. ToolWindow = applicationObject.Windows.CreateToolWindow(addInInstance, progIdAttributeObj.Value, "Your Tool Window", guidstr, ref objTemp); To destroy the window call the following. I do this in the OnDisconnection(...) method. ToolWindow.Close(EnvDTE.vsSaveChanges.vsSaveChangesYes); I have noticed other issues with ToolWindows, similiar to what happens with the Properties ToolWindow. After debugging the application your working on, the Tool Window does not 'reappear' when debugging is finished. Good Luck.

    C# question csharp visual-studio help tutorial

  • Adding to the Visual Studio View Menu
    W WizardOfPeyton

    I would like to be able to add to the View menu in Visual Studio. I am developing a add-in and want to be able to display my own ToolWindow as needed. I am able to add my menu to the top level menu with the code below, but as stated I want this menu Item added below the View menu. I don't want the menu item displayed until the add-in is loaded. The Wizard generated code shows how to add to the Tools menu, but when I try to do the same with the View menu it does not work (CommandBar commandBar = (CommandBar)commandBars["View"];) // Add to the View menu object []contextGUIDS = new object[] { }; Command viewCommand = commands.AddNamedCommand(addInInstance, "ViewAutoReplace", "Auto Replace View", "View the Auto Replace Tool Window", true, 53, ref contextGUIDS, (int)vsCommandStatus.vsCommandStatusSupported+ (int)vsCommandStatus.vsCommandStatusEnabled); CommandBar barView = commandBars["MenuBar"]; CommandBarControl barControl = viewCommand.AddControl(barView, 2); I have tried commandBars["MenuBar.View"] and ["MenuBar.&View"] with no success.

    C# csharp visual-studio tools tutorial

  • Point out the error
    W WizardOfPeyton

    I think I found what you are looking for. This was posted at devcity.com under CommandBarButton Picture thread. I don't want to take credit for the solution. Here is what was posted. I was attempting to change the icon displayed on a tool window using the ToolWindow.SetTabPicture(), which needed a IPicture object. Make sure your bitmap is the correct size. I was getting a parameter incorrect exception until I corrected the size of my bitmap. Hope this helps. _commandBarButton.Style = MsoButtonStyle.msoButtonIconAndCaption; //put an icon ont he button Image _icon = System.Drawing.Image.FromFile("c:\\cloud.ico"); _commandBarButton.Picture = WService.ImageConverter.ImageToIpicture(_icon); using System; namespace WService { /// /// Summary description for ImageConverter. /// public class ImageConverter : System.Windows.Forms.AxHost { public ImageConverter():base("59EE46BA-677D-4d20-BF10-8D8067CB8B33") { } public static stdole.IPictureDisp ImageToIpicture(System.Drawing.Image image) { return (stdole.IPictureDisp)ImageConverter.GetIPictureDispFromPicture(image); } public static System.Drawing.Image IPictureToImage(stdole.StdPicture picture) { return ImageConverter.GetPictureFromIPicture(picture); } } }

    C# help csharp asp-net json

  • Point out the error
    W WizardOfPeyton

    I am also trying to do something similiar, where did OleLoadPictureFile(...) come from. Did you add a referenceto the project to make it available. I can't find any documentation on that method. If you could let me know I will dig into this further.

    C# help csharp asp-net json

  • Finding a Window
    W WizardOfPeyton

    Yes he does understand English, and he does know what he is talking about. I posted the original message. I also thought you reply was in bad taste. I am attempting to 'hook' into another applications messsage queue, similiar to what spy++ does but from within the .net framework.

    C# csharp question

  • Finding a Window
    W WizardOfPeyton

    Does C# and or .NET provide a function similiar to the WinAPI FindWindow or FindWindowEx methods?

    C# csharp question

  • Automation
    W WizardOfPeyton

    First Question: Unless the author of the .NET app has added support for Automation it will not have an automation model. If the application does have an automation model you would likely have to get the doc's from the authoring company. Second Question: I don't know the answer to this. I would assume there has to be some way.

    C# question csharp c++ com testing

  • Top issues?
    W WizardOfPeyton

    I would like to have Auto Replace within the code editor. I would like to be able to type a predefined sequence of characters and have them automatically replaced. For example I would like to type 'sys ' and have that replaced with 'System'. It would be nice to have a dockable view to allow for the configuration of this feature. I have looked into creating a Add-In, but have not found a way to get keypresses from the editor window, only when the LineChanged.

    Visual Studio visual-studio question

  • DirectorySearcher
    W WizardOfPeyton

    I am not able to get a list of Users from my Domain Controller using a DirectorySearcher. I am catching an execption "A referral was returned from the server". I have added setting the RefferalChasing option to 'all' and I still get the same exception. The Domain, and Server are correct(changed here to protect the guilty). Does anyone have any ideas? DirectoryEntry Root = new DirectoryEntry("LDAP://Domain/cn=Users,DC=Server"); DirectorySearcher Searcher = new DirectorySearcher(Root); Searcher.ReferralChasing = ReferralChasingOption.All; try { SearchResultCollection Results = Searcher.FindAll(); foreach(SearchResult Res in Results) { Console.WriteLine(Result.Properties["cn"][0]); } } catch(Exception Ex) { Console.WriteLine(Ex.Message); } John Marshall JMarshall@aafcu.com

    C# com sysadmin question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups