Ian Donald's Q&A profile
Visual Studio 2008 (Pre-release) Declaring InputGestures
Some basic c# question: How do I declare a command witch includes InputGestures. I can’t seem to figure out the c# syntax public static readonly RoutedUICommand Refresh = new RoutedUICommand("Refresh", "Refresh", typeof(System.Windows.Input.ICommand), ); Best regards, Thomas Andersen try public static readonly RoutedUICommand Refresh = new RoutedUICommand("Refresh", "Refresh", typeof(System.Windows.Input.ICommand), new InputGestureCollection[]{new KeyGesture(Key.L, ModifierKeys.Alt),....} ); ...Show All
Windows Forms local windows in IDE - What control
What control does the IDE use for the local windows in VS.NET IDE Pat I get it now. I was thinking that there was a control I should have known about for the local windows. I'm slow. ...Show All
Visual Studio Error running Beta Uninstall tool or Manual Uninstall
I get this message on one of my machines, others did not have this problem. I get this message either running the tool or trying a manual uninstall. Error Messge: The installation package could not be opened. Verify that the package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer Package. [ OK ] All other dev machines ran the uninstall tool fine. Any ideas what's happening here Carl Used smartzap to fool it to think everything is uninstalled, now I get the dreaded 1324 error: Illegal character in folder path 'Program Files' ...Show All
Windows Forms VB express DatePart in datagrid
Hello I use VB express to discover VB... I use a datetime picker to set a field in an SQL DB (sql express) After, i use a DATASET, DATABINDING, TABLEADAPTER as show in the tutorials to show a datagrid with all my info. Well, everything is running good excepted that the field "DATE" in my datagrid show the "complete" date "dd/mm/yyy hh:mm:ss" and I'd like to see only the DATA part "dd/mm/yyyy" I read a lot of posts in multiple forums but I couldn't fix it at this time Could you help me Thanks Oliver Waow, 120 views and no answer... :-( is it so difficult Or may be my poor english isn't good enough :-) In my ...Show All
.NET Development Can aspx page use more than one code-behind (or other .cs) file?
Is there a way for an aspx page to use more than one .cs file as a source file or Code-behind file that contains classes and functions that the aspx file can use I know that I can build an assembly and then reference that assembly, but I want a simpler mechanism that uses attributes in the Page directive to refer to more than one file. Hi! Thanks for asking! I'm a member of the ASP.NET team, and was just popping over here to see what was going on. The best place to ask ASP.NET questions is over on the ASP.NET forums at http://www.asp.net/welcome.aspx tabindex=1&tabid=39 The short answer ...Show All
SQL Server Failed to generate a user instance of SQL Server
Hi, I have visual basic team 2005 beta that come with sql server express, and i am trying to connect to a database on my local computer. And i get this message "Failed to generate a user instance of SQL Server due to a failure instarting the process for the user instance. The connection will be closed". If u ever heard of the Northwind database it is the one i am trying to use I don't know much about how to configure server, but i am running this on Window XP Pro and i am using a a user account with administrator privilages. I even tried to create a new database and i get the same message. ...Show All
.NET Development Validating Schemas with DTD
Hello, I wrote the following code: XmlReaderSettings readerSettings = new XmlReaderSettings (); readerSettings.ProhibitDtd = false ; readerSettings.Schemas.Add( null , xsdFile); readerSettings.ValidationEventHandler += new ValidationEventHandler (ValidationHandler); XmlReader xr = XmlReader .Create(ms, readerSettings); The xsdFile I add to the schema contains DTD, when I want to add it I receive an exception that DTD is not accepted and that I should set the ProhibitDtd property to false. As you can see the property IS set to false, but I still receive the exception. What to do about this I can't remo ...Show All
Visual C++ Using old MFC dll with CString in a VC++ 2005 application
I have a MFC extension DLL that is compiled with VC++ 6.0 using the Visual Studio 6.0 IDE. I want to use it in a class library created with Visual C++ 2005. I use the .lib and .h files and access the MFC DLL. Every thing is OK until I call a method of a class defined in it that has a CString parameter. Then compilation succeeds but linking fails saying that it can not find that method. If I compile the source code for the MFC dll with the VC++ 2005 compiler, no more error is issued. But when I use the resulted DLL in my other applications that are still compiled with VC++ 6.0 they will get the linker errors. Is there any way that I ca ...Show All
SQL Server article for subscription that does not exist ?!?
Hi There I hope someone can help me asap. I need to alter a column on a replicated table. So i execute sp_dropsubscription and sp_droparticle for the table for all publication to that article in the database. Usually i just alter the table and then execute sp_adddarticle and sp_addsubscription afterwards and everything is cool. However in this case after i drop the subscriptions for the article, when i try alter the table it says it is being replicated. I query sysobjects and see that the table has replinfo = 1 , this is snapshot replication, but i only have transactional replication I used to have snapshot but that was dro ...Show All
Windows Forms Best fit all column for a listview
Hello. I noticed that when you double click at the end of a column in a listview (details style) the column changes the width so that all the text should fit. Is there any way I can do this at runtime So I would like to do something like BestFitAllColumns() for a list view. Thanks for your future help (I hope ). Hahaaaah I've found a solution! [DllImport( "User32.dll" )] public extern static int SendMessage( IntPtr hWnd, uint msg, IntPtr wParam, IntPtr lParam ); private void button1_Click( object sender, System.EventArgs e) { SendMessage( listView1.Handle, 0x101e, new IntPt ...Show All
Visual Basic Help System
For a vb.net03 windows application, can you give me some refernces to how to implement an internal application help system. Thanks, Fred There are all sorts of third-party Help System development tools available. Most of what Microsoft provides tends to be programmer focused. Below are a few I've either used or am aware of: HelpScribble WestWind HelpBreeze HTML Help Generator HelpNDoc Microsoft HTML Help SDK RoboHelp ...Show All
Visual Studio Express Editions Suite integration toolkit executable encountered a problem
Hi, everytime I try to install visual web developer, i get an error message saying suite integration toolkit executable has encountered a problem and has to close..or something to that effect. I have reformatted my HD, and installed a fresh copy of XP +SP2. I have activated as well as registered my copy of xp.I downloaded the setup file from the msdn website. I dont have any previous versions of visual studio installed, but i ran the auto uninstall tool all the same. Can someone please suggest what i can possible do thanks, vas Get the latest version of SP2 Also manually install .net fram ...Show All
SQL Server Return more than 4000 characters from CLR stored procedure
Hi, I have a clr stored procedure that takes in 2 parameters, input xml and a query name. The stored procedure transforms the xml with a the xslt for the given query name (stored in a database). I am currently using and output parameter that is of type NVarChar(4000) to retrieve the xml in .net. This all works fine unless the xml that is being transformed is greater than 4000 characters which will happen. Are there any ways of returning a string/xml greater than 4000 characters (in the region of 60-70k characters). Thanks for your help N I am using Sql Server 2005 and .net 1.1, by clr sp I mean I have create ...Show All
Visual Studio Team System Cannot Open Microsoft Project
While going thru Managing Work Item, There is a file that needs to be opened "Adding New Work Item in Microsoft Project, the file is Development project mpp, got the following Error: project cannot open the file Check the file name and path is correct Check the file format is recognized by project NOTE: I have Installed latest and greatest Microsoft project Regards, Asif Khan Please be more specific with the steps you make till get the error. Each time I want to add, change work items to a team project, I've to copy project file to my local computer to connect to Team Foundation Server ...Show All
Windows Forms Error trying to publish project
Hello, I seem to be having an issue publishing a program . Here is the error I am receiving: Error 2 SignTool reported an error 'Failed to sign bin\Release\HTMLTextConverter.publish\\s etup.exe. SignTool Error: IStore2::Open returned error: 0x80070001 Incorrect function. SignTool Error: An error occurred while attempting to open the certificate store: "My" '. HTMLTextConverter Anyone know why I am getting this You should be able to publish to the network. Can you try by speicfy ...Show All
