Marko Mihovilic'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 Announcing: SharpLudus, a software factory for improved game development experience
Hello there, I'm glad to announce the conclusion of the first version of the SharpLudus project, which puts together the Microsoft Software Factories Initiative, DSL Tools, DirectX and computer game development to create a custom environment targeted at the productive creation of games belonging to the "adventure" genre. The link to the project site is http://www.cin.ufpe.br/~sharpludus/ and I'd be glad if it can contribute somehow as a successful case study of (a subset of) DSL Tools and the Software Factories Initiative. PS: ensure to watch the demo video in the download area! Regards, -- AFurtado Thanks for sha ...Show All
.NET Development Help getting started on serial comms
Hello All I need help in starting to experiment with serial port comms. I have a device ( a gas analyser ) that I would like to read the output from via the serial port. I dont know what data it sends so my attempts to read text and byte data have not been succesfull. It has a row of LEDs showing ppm ( part per million) . What I would like to do is emulate those LEDs on the PC monitor. Where do I start Thanks hi , the serial port class is in the System.Io.Ports namespace, you should check the documentation. the first thing you have to do is create your SerialPort object w ...Show All
SQL Server SQL Express Manager does not run
I am getting an error message during the program startup. TITLE: SQL Express Manager ------------------------------ Error occurred during application start up sequence. Application will be shut down. For help, click: http://go.microsoft.com/fwlink ProdName=Microsoft+SQL+Server&ProdVer=9.00.1187.00&EvtSrc=Microsoft.SqlServer.ExpressManager.SRMainError&EvtID=ErrorDuringApplicationStartup&LinkId=20476 ------------------------------ ADDITIONAL INFORMATION: Method not found: 'Void System.Windows.Forms.MenuStrip.set_Raft(System.Windows.Forms.RaftingSides)'. (XMApp) ------------------------------ BUTTONS: OK ----------------- ...Show All
Windows Forms Timer Problem
hi iam having two windows forms , one form is using timer for refreshing, but if i open the other form in front of the first one the second one disappears i want to refresh the first window with timer only if it has the focus pls help Thanks in advance The form has a Focused property. I just did this: namespace WindowsApplication13 { public partial class Form1 : Form { private Timer timer = new Timer (); public Form1() { InitializeComponent(); timer.Tick += new EventHandler (timer_Tick); timer.Interval = 500; timer.Start(); } void timer_Tick( object sender, Eve ...Show All
.NET Development progress
I have this new code now, and everything works nicely, but i still cant copy the file to the destination, this code creates a new word document. i just need 2 copy it..... pls help Dim iPath, iFile, sPath, sFile As String OpenFileDialog1.InitialDirectory = "c:\test\test docs\" OpenFileDialog1.Filter = "Word Document|*.doc" OpenFileDialog1.Title = " Select a Document to move" OpenFileDialog1.ShowDialog() iPath = OpenFileDialog1.FileName() iFile = Mid$(iPath, iPath.LastIndexOf("\") + 2) sPath = "c:\test\archived docs\" Try System.IO.Directory.CreateDirectory(sPath) Catch ex As Exception End Try SaveFileDialog1.Filter = " ...Show All
Visual C++ why missing debug information in visual studio 2005
Hello, I am porting the applicaiton from VC6 to VC2005. There are no compiling errors anymore. However when I run the application in debug mode. It stopped at > rulefw.dll!std::_Fill_n<IGUICustomProperty * *,unsigned int,IGUICustomProperty *>(IGUICustomProperty * * _First=0x00000000, unsigned int _Count=0, IGUICustomProperty * const & _Val=, std::_Range_checked_iterator_tag __formal={...}) Line 2764 + 0xb bytes C++ and there is no further debug information in call s ...Show All
Visual Studio Indent Style
How do I temporarily change the active document's indent style within a macro Here is one way to do this. Change "CSharp" to the language you want. You can find what the language name should be by looking under the registry key HKLM\Software\Microsoft\VisualStudio\%VerNum%\AutomationProperties\TextEditor. This code sets the indent style to None. Using 1 would set it to Block and 2 would set it to Smart (if it is available). For Each prop As EnvDTE.Property In DTE.Properties( "TextEditor" , "CSharp" ) If prop.Name = "IndentStyle" Then prop.Value = 0 ' Change t ...Show All
SQL Server Enabling the Service Broker
I'm trying to enable the Service Broker for Sql Server 2005 because I want to be able to use a SqlDependency object. I ran the following query to see if my local sql server service broker was enabled: SELECT is_broker_enabled FROM sys.databases WHERE name = 'dbname'; It came back with a value of 0 (which means it is not enabled). I tried executing the following sql command to enable it: ALTER DATABASE dbname SET ENABLE_BROKER; The query has been running for over 5 mins and just keeps spinning (should it take this long to enable the Service brfoker), so I cancel it. I even try to issue the command to see if the service broker i ...Show All
SQL Server The tree hierarchy interface in cube browser
Hi, When browsing cube in SQL Server Management Studio, there is a tree hierarchy which lists measures and dimensions at left side. How could I embed this tree hierarchy interface to my application thanks, ...Show All
Visual Studio Team System TFS Version Control Error with notification
Hi, When I ask for a notification on the project, for example about every check in, I put my smtp mail address which is myproject_myname@mydomain my username in the domain is mydomain\myname (different from the name in the smtp address). I do not get notifications, but If I check the Applcation event viewer on the tfs application tier I see this error every time I should have recieved a notification: ________________________________ Source: TFS Version Control Event ID: 6008 Type: Warnning Description contains a long text which tells: TF53010: An unexpected condition has occured ... the ...Show All
Visual Basic System.Drawing.Image.FromStream (objMemoryStream).....exception - Invalid parameter used
G'day, I've been working on some code that extracts SQL server Image fields to Byte() arrays then converts them, via this little function, to a System.Drawing.Image. I use a collection of images through out the entire application. Now this has been passing in Nunit tests until the 12th July 2005. Now it fails. Where do I begin to solve a problem like this Public Function ConvertTo( ByVal ImageArray As Byte ()) As System.Drawing.Image '<summary> ' Convert a SQL Server database byte Array (byte array) to a Image. '</summary> Dim objMS As System.IO.MemoryStream Dim ...Show All
SQL Server Data processing extension - ODBC problem - GetOrdinal
Hello, I'm trying to develop new data extension for connection to Informix database. Reason is simple. Standard ODBC interface is locking rows in database, so I'd like to avoid it. And second problem with Informix is in date - specially DBNull value. It's presented as a "1/1/1" not as a null. So problem for me. I read the sample extension - File Share Data Processing - and started. My goal was completely simulate ODBC extension with small additions to IDbConnection.Open and IDataReader.GetValue methods. But as I realize - it's neccesary completelly implement all methods and classes for extension. After one week of work I'm still in ...Show All
.NET Development WSDL and WS Security
Hi there, This is not really a .Net related questions, but I've searched far and wide for an answer to the following question and have not come across one. So I was hoping that I'd find it here. In a WSDL how do I indicate that I require that the WS Security element is passed through the SOAP headers for each request Thanks You can check http://www.w3.org/TR/wsdl#_soap:header allows describing the headers for each operation. Diego Gonzalez [C# MVP] Lagash Systems SA ...Show All
Visual Studio Team System Rule provided an empty or malformed Url
Hi, in FxCop 1.35 beta i got a FxCop message on FxCop start for every user defined rule like this: Rule provided an empty or malformed Url: file:\\xxxx\yyyy\FxCop\HtmlHelp\RuleDescription\zzzzz.html The Url works and i couldn't see any problem there. Is this a bug in FxCop 1.35 beta or what i'm doing wrong Thanks for support Hubertus Hi Jeffrey, It works - great. Thank you very much. Hubertus ...Show All
