nigor's Q&A profile
Visual Basic Paste As Visual Basic
Did anyone make the Paste As Visual Basic utility work It was described on this MSDN article: http://msdn.microsoft.com/msdnmag/issues/06/02/PasteAs/default.aspx I was able to generate the setup wizard, install and activate the Addin. The command appeared on the menu. But when I click the command on the menu, nothing happens. The dialog box that should appear does not appear. If anyone could make it work and can give me some hint, I'd appreciate it. Thanks. Fernando Correia. Hi, I found out that 'Nothing happens' because the runtime failed to load PasteAsVB.dll when trying to create the form / dialog box. If you copy all DLLs in the installation directory (under "Program File ...Show All
Windows Live Developer Forums Mapinfo co-ordinates
Can anyone help in identifing the projection used in virtual earth to display. We are importing coordinates from mapinfo tables in Irish transverse mercator grid and converting to lat/long but the points are not displaying in the incorrect position. Any help appreciated. Thanks Derek. Here is a reading from Mapinfo: Easting 247118.68 Northing 198208.55 -7 17' 51.260496 53 1' 57.058752 and the same in decimal degrees -7.29757 53.0325 ...Show All
Visual C# Question on Localization
i have another few questions about localization is there any walkthroughs for building a application to be multilingual for .net 2005 beta2. And also what is the best way to update resources from outside the project. I know winres will work to update each form, but how do you compile to a dll from outside the project, because i would like to just ship the exe and reference a dll for resources can this be done . I hope you dont mind me asking these questions. thanks in advance i would not ask but i am pulling my hair out to get around this kered Hi Vikram, Them links were very helpful and put me in the right direction i already have a multi-lingual sample ...Show All
Visual Studio Team System The underlying connection was closed: An unexpected error occurred on a receive
Hi, I am getting below error while running VSTS load test continuously. Any idea about this Thanks & Regards, Naga Is this a problem with the VSTEST or on theserver side I am running a local version and I get this error. at System.Net.Security._SslStream.EndRead(IAsyncResult asyncResult) at System.Net.TlsStream.EndRead(IAsyncResult asyncResult) at System.Net.PooledStream.EndRead(IAsyncResult asyncResult) at System.Net.Connection.ReadCallback(IAsyncResult asyncResult) We are trying to determine if it is a limitation of the tool or the servers/code Thank you for any help. ...Show All
Visual C++ fatal error C1085: Cannot write precompiled header file
I am having trouble resolving the following error and can not reslove it. Does anyone know how I can resolve the following error. 1>c:\program files (x86)\microsoft visual studio 8\vc\include\map(41) : fatal error C1085: Cannot write precompiled header file: '.\Win32\Debug/32dpak.pch': Insufficient system resources exist to complete the requested service. This is starting to look /sound more like a potential "sharing violation". I need to work around this problem in the build of a customer's application (i.e. I need to know what to avoid doing in order to avoid triggering this problem). Has anyone identified the resource in question or a change in options or in procedure /practic ...Show All
Windows Forms Eject CD
Hi, I am making an application that allows user to eject CD through pressing some button. How can I do this Do I have to call some API which API would that be any alternative ways any pre-built DLL from some website Thanks, I'm using Visual Basic Express 2005 and the syntax is different for this but the commands to use when calling the function, such as set CDAudio door open are the same. However, it will only open or close my top drive when passing the appropriate command to the function. How would I con ...Show All
Visual C++ MFC CToolBar and BTNS_WHOLEDROPDOWN, BTNS_DROPDOWN
Hello, I'm createing a CToolBar instance in my application, and I want to add two functionalities: ToolBar button with a small arrow, which is not separeted button - there for I used the BTNS_WHOLEDROPDOWN style for this button ToolBar button with a small separeted arrow button - there for I used the BTNS_DROPDOWN style for this button. and after that I add the code: pToolBar->GetToolBarCtrl().SetExtendedStyle(TBSTYLE_EX_DRAWDDARROWS ); My problem is: In functionality 1, from some reason the button which is style was change to BTNS_WHOLEDROPDOWN does not react, catch event or give me any sign that it's "alive" In functionality 2, the above is happening only to the small arrow button, though when I pressed the original bitma ...Show All
Visual Studio Tools for Office how to turn off outlook security warning dialog box using C#
Hi, How can one get rid off the Security Warning dialog box which pops up when you try to access a property of ContactItem in Outlook 2003 I'm using Visual Studio Team Suite Beta 2, Microsoft Outlook 11.0 Object Library, Outlook 2003. I've written a webform to get the list of contacts and display it in a listbox. But everytime the webform loads, an outlook security dialog box pops up. I'm not sure if this is the right forum but I couldn't find another one specifically for Outlook 2003 programming. Here's the code. protected void Page_Load( object sender, EventArgs e) { Outlook. Application app = new Outlook. Application (); Outlook. NameSpace ns = app.GetNamespace( "MAPI" ); Outlook. MAPIFolder contac ...Show All
Visual Studio Team System CA2225 OperatorOverloadsHaveNamedAlternates requires Compare on non-IComparable type
I have a generic Set<T> class implementing a set. This class is IEquatable, but not IComparable. It overloads a few operators, including == and != (for set equality) and <, <=, >=, > (for subset/superset testing). FxCop fires warnings that I should provide provide a method named 'Compare' as a friendly alternate for operator op_LessThan, op_LessThanOrEqual, op_GreaterThanOrEqual, op_GreaterThan. But this type has only partial ordering, so that while I can determine if set A is "greater than" (superset of) set B, I cannot represent the comparison of both sets in a single flag 1/0/+1 (there would need to be a fourth option: not comparable). I admit that overloading these operators is maybe not a good idea, but gen ...Show All
.NET Development How to update data based on dataset entries
I have a xml < xml version="1.0" > <Amazonbooks> <Mybook> <MyBooktitle>Astronomy</title> <booknumber>b121</booknumber> <city>SHILLINGTON</city> <state>PA</state> <description>Astronomy b121 Description on 19 dec</description> </Mybook> <Mybook> <MyBooktitle>Geology</title> <booknumber>b212</booknumber> <city>West Palm Beach</city> <state>FL</state> <description>Geology b212 Description on 19 dec</description> </Mybook> <Mybook> <MyBooktitle>Astrology </ ...Show All
Visual Studio 2008 (Pre-release) Application.GetRemoteStream() break in RC1
just moved an XBAP app from June CTP to RC1. the app is making an Application.GetRemoteStream() call to download a file to parse on the client (with a relative Uri). this used to work in June CTP, but RC1 returns a null (not a SecurityException). in fact, it fails in both partial trust and full trust. any idea what has changed Thanks, casey what i've found is that i can load the resource from the main XBAP assembly in our app, but the call fails from any other referenced assemblies. it always returns a null StreamResourceInfo for the other assemblies. i tried different ways to reference the path (e.g. /doc.xml vs doc.xml) ... still null. Uri uri = new Uri ( "doc.xml" , Ur ...Show All
SQL Server Custom Errors
Hi, I am showing my report in the web application using Report Viewer control.In the report i have start date and End date parameters.While running the report if i give startdate as '45/66/20007' it is displaying a message which is not user friendly.Is there is any way we can handle this type of errors and display our own custom error messages. Thanks in advance It is the ReportError event for the ReportViewer. private Microsoft.Reporting.WinForms. ReportViewer rptvSelReport; Example: private void rptvSelReport_ReportError(object sender, ReportErrorEventArgs e) { MessageBox.Show(e.Exception.GetBaseException().Message, DIALOG_FORM_CAPTION,MessageBoxButtons.OK, MessageBoxIcon.Erro ...Show All
Visual C++ Using hotkeys to select edit boxes
Hi Folks; I've looked (and asked) everywhere and my resource-finding skills have proven wanting. My question is simple as is the answer I assume. I have a number of hotkeys registered in a Win32 app. Hitting those keys should set the caret in one of several text fields though I haven't found anything that shows how to do that. Any suggestions This a standard feature of the IsDialogMessage function, so in a dialog this works if a static control with a text that contains a & before a standard character is placed just before the edit control. The the ALT key and this character is pressed IsDialogMessage moves the focus to the next edit control. So if you are using a modal Dialog this is the standard behaviour. ...Show All
Windows Forms DataGridView Row Height DoubleLine
hallo, i want to give my CustomDataGridView a Contextmenue where the user can say the Row should be displayed in one Line / two line Mode.... i tried to handle the update from the Rows with a RowTemplate, but i think this would only work with new Rows. When i go through the Rows Collection an set each Height to the new Value this is very slow. i would be lucky for an advise Arnold Try someting like this: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace Sample2 { public partial class DgvContextMenu : Form & ...Show All
Smart Device Development error while using POOM
error convert from string "09/15/2006 12.00 am" to long is not valid I need to add entry to the pocketpc appointment in wm5.It works fine when i directly give the date format in application theAppointment.Start = new DateTime (2005, 05, 09, 09, 00, 00) when i used combo.box to select date which is in format " 09/15/2006 12.00 am" it gives the error like this. error convert from string "09/15/2006 12.00 am" to long is not valid code using combobox is as: theAppointment.Start = New DateTime(ComboBox1.Text). help me,what can i do ...Show All
