mhojlund's Q&A profile
Visual Studio Tools for Office Button is not getting removed after uninstalling the Word add-in
Hi All, I'm creating and installing a Word Add-in. The add-in creates a button on standard toolbar. When I uninstall the add-in the button is not getting removed. The add-in is the basic add-in from the link http://support.microsoft.com/default.aspx scid=kb;en-us;Q302901 as it is. The code in OnBeginShutdown is as follows: public void OnBeginShutdown(ref System.Array custom) { object omissing = System.Reflection.Missing.Value ; System.Windows.Forms.MessageBox.Show("MyCOMAddin Add-in is unloading."); MyButton.Delete(omissing); MyButton = null; } Can anyone let me know what am I missing I've even tried using oCommand ...Show All
Visual Studio Design decision: Integrate custom MSBuild project to VS2005
Experts, We have a huge code tree that builds with nmake. We have create the VSIP package in ATL/COM to integrate it into VS2003 and VS2005. Currently, we have transfered the build system from nmake to MSBuild using our own tasks and targets. Now we are going to create VSIP package to integrate the MSBuild project into VS2005. It seems that managed languages have advantages to access and use the MSBuild interface. So we face the design decision: Shall we create a whole new managed package or add MSBuild support to the old native ATL/COM package We prefer to use the second way because most of the team are familiar with ATL/COM. Can some bod ...Show All
SQL Server Properties affected by Expressions
Hi, is there any way to see which property is changed/affected by expressions If not that would make things really complicated because you look at a property and it seams to be OK but the task doesn't do what it's supposed to because "behind the scenes" the setting is changed by an expression... Thanks, Take a look at the updated UI for the File Watcher Task. I expose the expression instead of the property when set. Hope MS implement something similar, as I know I have spent way too much time cursing trying to get stuff to work, and it was all down to an expression I forgot about. Screen shot here- File Watcher Task ( http://www.sqlis ...Show All
Visual Basic Why Can't I see My Data In My Datagridview Control?
Hello all. Please for give me if this question is not posted in the right area. I have just downloaded VB Express and am trying to display data in a dataset in a datagridview and can't seem to do it. I've tried binding directly to the dataset..... eg. MyDataGridView.Datasource = MyDataset MyDataGridView.Datamember = MyDataset.tables(0).tablename But that has gotten me nowhere. i then tried to use an BindingSource object I found and that also got me no where. I know my dataset is returning data because I was able to use a listbox control to quickly display the first column in the table as visual check of the existance of any data in the datas ...Show All
.NET Development Nested Web Controls
Hi! To create a special report, I have to use nested Repeaters as below: <asp:Repeater ID="rpt1" Runat="server"> <ItemTemplate> <asp:Repeater ID="rpt2" Runat="server"> <ItemTemplate> </ItemTemplate> </asp:Repeater> . . . </ItemTemplate> </asp:Repeater> But I may not call the inner Repeater through my code. Therefore it is impossible to set the Data Source and the other properties of rpt2. Please help me. Regards! M.Sadegh Samiei True... you cannot ...Show All
Windows Forms two datagridviewcombobox columns in datagridview
In a datagridview i have two datagridviewcomboboxcolumns, when i change the value of the first comboboxcolumn i want it to filter the second comboboxcolumn. How can this be done Hi You can refer http://forums.microsoft.com/msdn/ShowPost.aspx PostID=61470 . ...Show All
Visual Studio Express Editions How to move form without the title bar?
Hi, I have a problem on my application, i have an image an set it as form, and I set the form borderstyle to none, the problem is, i can't move the form. Can u help me pls :( You can right click on the program in the task bar, select move and use your arrows. Or you can write your own code to move the form if the user clicks and drags. ...Show All
Windows Forms UserControl, child control, and scrolling
Greetings, I have a custom user control. Because I have a complex hierarchy of child object that can be drawn to the screen (potentially thousands of objects) I opted not to derive them all from Control/UserControl for various reasons. Instead, they all derive from a custom class that has no base class (except object). The UserControl has AutoScroll = Tru ...Show All
Visual Studio Express Editions missing project template, Windows Service (.NET)
I'm trying to create a managed service using VC++ 2005, express. I've done this once a couple of weeks ago but now, either I'm missing something very obvious or somewhere the project template has gone missing. When I select File->New-> Project, I can't see windows service (.NET) under the list of installed templates. If anyone can spot what's missing I'd be eternally grateful. My apologies, you're right. I'd been building the service in 2003. thanks for the input. ...Show All
Visual Basic VB.net 2003 and api
i have a software and his api in the form of dll file this api contains all the neccessary function to make the same software with customarization. i am using vb.net 2003 how can i use these in functions [in dll file ] in my program. Thanks it is an unmanaged dll i want to use the functions inside that dll i have text file in which all the function description is given here i write one. int MtCreate(void); Socket object creation for the connection with the server. Returns handle of opened socket (internal socket number) in case of success. Or -1 in case of a mistake. There is a restriction on quantity of simultaneously existing socket ...Show All
Visual C# How to put custom Attribute to auto-generated Partial Types members?
I came across to an issue, actually it’s in C# language in general (partial typing & auto-generated code), but I'll use DLinq as illustration. DLinq has tool to autogenerate persistent domain types as Partial Types. These domain types members are marked with DLinq ORM related Attributes. Now, how do I mark those members with my custom Attributes (or other BCL's Attributes) outside the generated Partial Type file We all know, editing autogenerated code will "guarantee" your handwritten part will be overwritten the next time we re-run the autogeneration tool. There ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Exporting to .X
Okay, I've been messing with this for like two days and I still can't get textures to work, so I figured I'd post here. I'm using Maya 7.0 and I've gotten the exporter installed and I can export geometry just fine, but I'm doing something wrong with where I'm putting the textures/what kinds of textures I'm using/parameters. I'm not sure. I export to a .x file and when I load it up in the DirectX Viewer, the object is there, but there is no texture. I downloaded the Deep Exploration trial and I get the same error, so it has to be a user error. How do you properly texture for export, export the texture reference, and where does the texture go ...Show All
.NET Development Large data transfer
I created a local web service that accepts a byte array as a parameter and then I write the data in the array to a hardcoded file name. I added the following entry to the web service app's config file and my computer's machine.config files: < httpRuntime maxRequestLength = " 1048576 " executionTimeout = " 180 " /> I can successfully transfer 50 megs worth of data but it fails with the following error msg when i try to send a 100 megs of data (1 gig is my goal): {"The underlying connection was closed: An unexpected error occurred on a send."} System.Net.WebException: {"The underlyi ...Show All
Software Development for Windows Vista Vista 5308 Media Center Extender issues
Does anyone know if the extender function in the Media Center module of the February CTP is compatible with the Xbox Media Center Extender (MCX) I have been attempting to set this up on my test system, and will get as far as the programming the device stage of the extender setup, but at this point the setup will sit there for over an hour without completing. Is there an update that will need to be obtained to allow this to function, or is this feature only compatible with devices such as the Xbox 360 at this time Morias I have an Xbox 360 and I get the exact same thing that happens to you. It will autom ...Show All
SQL Server Instead Of Update Trigger w/ Self-Referencing Table
Setup: Using SQL 2005 I thought it was the other way around - that AFTER triggers were evaluated after a statement and that INSTEAD OF fired before. In either case, perhaps the parser is evaluating the statement that way. Try throwing Profiler on it to see what's really happening. See: http://www.microsoft.com/technet/prodtechnol/sql/2000/reskit/part10/c3761.mspx mfr=true for more info. What are you trying to accomplish Perhaps there's another way to do what you're looking for. Buck ...Show All
