NiklasL's Q&A profile
Visual Basic invalid parameter
Can anyone tell me why this throws a system.argumentexception:Invalid parameter Imports System.Drawing Public Class form1 Inherits System.Windows.Forms.Form # Region " Windows Form Designer generated code " Public Sub New () MyBase .New() 'This call is required by the Windows Form Designer. InitializeComponent() 'Add any initialization after the InitializeComponent() call End Sub 'Form overrides dispose to clean up the component list. Protected Overloads Overrides Sub Dispose( ByVal disposing As Boolean ) If disposing Then If Not (components Is Nothing ) Then components ...Show All
SQL Server Windows Mobil – SQL- Symbol MC70 Problem
Have an App using SQL CE 2.0. If the App is open and the device is powered off and then back on; the following happens when an update of the data base is attempted: 1. Pocket PC 2003 – IPAQ No problem all is well. 2. WM 2005 – Dell No problem all is well 3. WM 2005 – Symbol MC70 SQL error 0x80004005.** App is compiled under eVC 4.0 ** Some results if App is compiled under VS2005 Is this: a.) My problem b.) WM 2005 problem c.) Symbol ...Show All
Visual Basic OLE, VS6.0, if isError(A.CLSID = B.CLSID) then read
[OK, Translate & Update] Note 1: I've Edited this Post, The old question is now obsolete. I've got both VB6 and VBE (VB8), the old problem was solved with the new software. Now: Where can I get a Tutorial and Example for Serialization(Old Persistible Objecs) And MarshalByRef Note 2: I dont have Internet access from the my computer (so I can't use OnLine Help) Que lastima.... 1.) por posts en engles solamente 2.) Vb6 no es supportado( ) aqui. Por favor, viven Visual Basic 6.0 Resource Center OTP ...Show All
SQL Server Unable to retrieve data from AdventureWoks
Hi all, I have one question. It looks easy, but, I couldn't figure out the problem. I download and attach the AdventureWorksDB and AdventureWorksDW sample databases. I run the following query to test its functionality. use adventureworks go select * from production.location go and it gives me an error messeges which says: Msg 208, Level 16, State 1, Line 1 Invalid object name 'production.location'. Similar type of query is executed successfully in the adventureworksDW database. Please let me know if you have any idea Hello, Where is the Location table located It cannot find the table. ...Show All
Visual C++ Can't Get the Form to appear
I have a program that I am working on. I have run into this problem countless times and it is strange to me that it works sometimes and other times does not. I have created an application using Visual C++ .NET 2003 standard. Here is an example of the situation. I add a new form called aboutDialog. Set the form properties. In another form I add the #include "aboutDialog.h" In the code I have the following: aboutDialog *about = new aboutDialog(); about->ShowDialog(); The compiler is failing to compile and giving a C2061, and C2065 error code. It states ...Show All
Windows Forms Datagrid Refresh Problem
Hello, I have a datagrid. When I refresh the datagrid, the selected record becomes unselected and the datagrid record selector goes to the first record at the top of the datagrid. Is there a way to retain the selected record after a datagrid refresh. Thanks Peter Sorry for the mislead. I am actually using the .net datagrid, but the refreshgrid command&nb ...Show All
SQL Server Unable to connect to Analysis Services
Hi, I've just installed SQL Server 2005 Enterprise Edition (trial). I can't connect to Analysis Services via SQL server management studio (on localhost). I have the following error : cannot connect to <server_name\instance> : A connection cannot be made to redirector. Ensure that 'SQL Browser service is running. (Microsoft.AnalysisServices.AdomdClient) When I check the SQL Browser service, the service is running fine. The firewall is off All SQL Server services are running green Thanks a lot for an answer. Did you install named instance of Analysis Server Try installing SP1 CTP release ...Show All
SQL Server Top 20 ordered and rest grouped into 'others'
Hi guys. I want to create a top 20 product list from a few thousand products. I want the rest of the products to be grouped into 'others'... I also want the products to be ordered by the facts in the cube. Thus the product dimension would dynamically change depending on the Time dimension thats being selected. is this plausible Thanks Tom No, this query is for trying in MDX Sample Application if you are using AS 2000 or directly in the Microsoft Managment Stuidio if you are using AS 2005. When you are designing a cube the only part of the query is that is between ' '. ...Show All
Visual Studio Tools for Office How to (programmatically )get rid from the actionpane reference ?
I have a vsto doc with an actionpane containing a button containing code to get rid of the actionpane before a user saves a document instance in a sharepoint library. The code basically is : Globals .ThisDocument.RemoveCustomization(); Globals .ThisDocument.ActionsPane.Clear(); When an instance is opened the content of the actionspane is indeed cleared, however I still get a message to choose an xml expansion pack (actionpane), cause the actionpane schema is still linked I think ( If a uncheck it and save the document the message no longer pops up) How can I programmatically remove the action pane schema link ...Show All
Visual Studio Express Editions vwd express beta 2 unable to open .mdf files
installed vwd beta 2 and the process also installed sql server express April CTP. I used to have the two versions of the beta 2 installed and everything was operational. With the vwd beta 2 and sql server April CTP, I try to add a database with the "add new item, SQL Database" option from right-clicking on App_Data directory in the Solution Explorer. The process seems to execute, except when I try to open the database (intravis.mdf), I receive this error: "The file cannot be opened with the selected editor. Please choose another editor." I also do not have any items on what I suspect is the database tab, ne ...Show All
Windows Forms MouseMove event
Hi I have a MDI form with a label and I have a EventHandler for MouseMove. But it doesn't show me the proper x,y location of the mouse pointer. What sould I do The code of the EventHandler is given below: private void Form1_MouseMove( object sender, MouseEventArgs e) { int x = e.X; int y = e.Y; label1.Text = "x = " + x + " y= " + y; } What do you mean by "not the proper x,y location" MouseMove should give you the mouse coordinates in relation to the the upper left corner of the client area of the form (or whatever control the event is cap ...Show All
Visual Studio vstemplate, custom project
The ProjectType Element for vstemplate states that the value must be one of the following values: csharp, visualbasic, jsharp or web. What if we are creating a new project type that we want to appear under "Other project types". How do we specify this Thanks, Mike Nevermind, I found the answer. I'm setting it on the same line as: [ ProvideProjectFactory ( typeof ( XgenProjectFactory ), "XgenProject" , "XgenProject Project Files (*.xgnproj);*.xgnproj" , "xgnproj" , "xgnproj" , @"..\..\Templates\Projects" , LanguageVsTemplate= "Xgen" )] Thanks ...Show All
Visual Studio Team System Customizing bug form
Hi there, How do I make sure that the group box is only as big as it fills all the controls in it and does not leave any empty area, so that it looks better as well I can utilize maximum area of the form. Basically how do I set/control the height (as I can do for width by percentwidth attribute) of any control or group in form Thanks, Anu Hi Sagar, Do you know how I can make all of my FieldControls the same size I have several groups with controls in them. However some controls are larger than others. I want them all to be the same size (width x height). Is there an attribute for the Control element to ...Show All
SQL Server Client Printing Hangs
We are accessing SSRS reports using web service. We call the Render the reports using http://<server>/ReportServer/Pages/ReportViewer.aspx reportName&rs:Command=Render All reports render fine. However for one particular report when we click the print button on the report viewer in IE, Active-x pops up a message "Printing Now" and hangs eternally. The error occurs even when I am logged in with Admin privileges to the machine and Active-X client works fine for other reports except this one. Work-around tried: If I call the same report from Report Manager it works fine. Even on the server I have been able to print t ...Show All
Visual C++ How do I execute my program in Visual C++ 2005??????
just followed a hello world tutorial but it doesnt say how to run the program - can somebody tell me how to run it which button do I click on If youa re doing this a lot, you may it very convenient to always run after rebuild. (My programs are always correct so I only even run once ;-)) To do this use a post build event: Alter Project properties, Build events. and copy "$(TargetDir)\$(TargetName).exe" --result_code=no --report_level=detailed --catch_system_errors=no into the 1st command line field and Autorun "$(TargetDir)$(TargetName).exe" into the description (optional) The ...Show All
