Skorpion's Q&A profile
Smart Device Development unable to connect to pocket pc device(dell axim x5) from visual studio though activesync 3.8 is up,running and connected
Hi all, I have installed MS-Activesync 3.8 and it shows the status as "connected" and synchronized(when my dell axim x5 is docked in its cradle which in turn is connected to my pc via a USB cable. The pocket pc OS version=4). I'm even able to synchronize files between my desktop and the handheld. However, when I start Visual Studio 2004 and click on Tools->Connect to device and choose Pocketpc followed by Pocket PC Device and click Connect, i get a message saying "Connection Failed - cannot establish a connection. Be sure the device is physically connected to the development computer" (though the activesync icon is in green ...Show All
Visual C# Protected Override code
I have just started playing with the RC of VS2005, In the current project I need to Override the OnPaint Event of the windows form. When I did this in the Beta 2 system, it produced the override and added an exception to the code. Now when I try it in RC it adds the following "base.OnPaint(e)". Now the question I have is does this need to be in the code block if I am going to be providing the override code Do I leave it there, and Add my code to the event With the last comment about leaving it there, where do I put my code so that the over ride works correclty. Do I put it above the base call, or below. Obviously, it depends on if yo ...Show All
SQL Server SMO Method Performance
I've run a series of performance tests on a test app that uses smo for creating sql server tables (including columns, indexes, triggers, and foreign keys) and stored procedures (including parameters). On a 2.7GHz machine with 512MB ram (both app and Sql Server running locally), the series of tests yielded the following results: Table.Create() 0.3 ==> 0.6 seconds PrimaryKeyIndex.Create() 0.7 ==> 0.9 seconds Trigger.Create() ~0.06 seconds StoredProcedure.Create() 0.12 ==> 0.14 seconds With creating a large number of tables/indexes/stored procedures in the app, I'm concerned about performance. Are there ways to quicke ...Show All
SQL Server Problems with SQL Task
Hi! I have a problem running a package and one of its SQL Tasks. This is the action the task performs: DELETE FROM Fac_Vendita WHERE Data >= I pick the value from a variable I get from a previous task, and I map it in the new task like this: Variable name: User::dur Direction: Input Data Type : DBTIMESTAMP Parameter Name: 0 I get this error: DELETE FROM Fac_Vendita WHERE Data >= " failed with the following error: "Invalid character value for cast specification". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or conne ...Show All
Visual Basic Access The Result Of A Function Called In A Splash Screen
Hi, My application currently has three classes - MainForm.vb, SplashScreen.vb and a user-created class Server.vb. In the latter class, I have a function which pings a server (at the moment I'm just using the Google IP as I will get a "True" result). When my splash screen is shown, the function is called so the user is informed if the server can be reached. What I want to do is access the result of this function in my MainForm load event (at the moment I'm just using a Button click event) without having to call the function again. I've tried putting a public variable in my MainForm.vb class which the splash screen changes according ...Show All
.NET Development Exposing a class to remoting
Hey everybody! I just started getting into .NET Remoting about a week ago, and have began to really understand the power behind it and am currently working on exposing a data-accessing component I have created as a remote object. I have about 6 objects that all do similar data-accessing functionality therefore all inherit from one abstract class which does most of the 'common' work. I would like to expose these 6 objects to be run on a remote server. I have choosen to expose these objects from Singleton activation mode (i.e. not SingleCall) which ensures that at most one copy of each of these classes are made and execu ...Show All
Windows Forms Exception Error
Why would the following line: Dim dlResult As DataLayerResult = m_DataLayer.Login(txtUserName.Text, txtPassword.Text) give me an exception error System.NullReferenceException - Object reference not set to an instance of an object when I'm sure I am passing a user name and password across Many thanks Mark Thinking about it, I should explain further: I'm using a similar structur ...Show All
Visual Basic Buttons
Hi, I would like to use round buttons on my forms and wondered if there was a way to do this in Visual Basic Any assistance would be much appreciated. Best regards, Jae Hi, I`m just learning my way around in MVS2005 Express Edition and I need to create a form with : 1. A round red "Stop" button : 16mm dia approx 2. A round green "Go" button : 16mm dia approx At present I only have the choice of a rectangular button from the common controls toolbox. Can I import buttons in or create my own Also I need the apply a 5mm radius to the corners of groupboxes..how can thi ...Show All
.NET Development ADO.NET/Access DB Insertion Exception
I’m working with an Access Database and ADO.NET. I have a record insertion routine that works on some tables and not others. The exception is “syntax error in Insert Into Statement” and it’s from an improperly constructed string. Public Function InsertRecord( ByVal NewRow As DataRow, ByVal Table As DataTable, Optional ByVal Update As Boolean = True ) As Boolean 'works NewRow(DataRecords.ciRecordNum) = Table.Rows.Count ' Autoincrement Table.Rows.InsertAt(NewRow, Table.Rows.Count) If Update Then Using CmdBuilder As New OleDbCommandBuilder(Adapter) Try ...Show All
Windows Forms Autoscroll
When I use AutoScroll, scrollbars never show up if the controls are outside of the container to the left or top of it, only to the right or bottom. How do I fix this Yes you can access autoscrollbars by using p/invokes to the Windows Shell functions. Check this link: http://msdn.microsoft.com/library/default.asp url=/library/en-us/shellcc/platform/commctls/scrollbars/scrollbarreference/scrollbarfunctions/setscrollinfo.asp But this is not something you need to do know. Still you might want to check my post on richtextbox & autoscrollbars to see a sample on how it works: http://forums.microsof ...Show All
SQL Server Controlling PDF export filename
Folks, Our client has requested that we change the export file name (PDF and others) to match the report name. Currently, the name is based on the report's filename (eg, foo.rdl exports as foo.pdf) -- this causes problems because the same RDL is being used for a few fairly different reports. Is this controllable at all thanks, --randy If you are using the ReportViewer control, you can set the DisplayName property. This will affect the export file name and the document map root node label. If you are using direct url access to the report server, the name can't be changed. In that ...Show All
Visual Studio Team System Cannot browse any site!!
Hi, I have installed Visual Studio Team Foundation Server Beta 3 Refresh successfully. But when I try to browse the Sharepoint Central admin site, I get a window prompting for a userid/pwd. NO userid passes this test and I get an error page (I have installed the VSTS on a Windows Domain Controller and created the necessary users for setup/service and reports as mentioned in the installation guide.) I read in one of the blogs http://blogs.msdn.com/robcaron/archive/2005/04/21/410484.aspx that the order of installation also matters.I ensured that IIS and the Sharepoint services were installed AFTER promoting the PC to a Domain Controller PC. P ...Show All
Visual C# System.Configuration.ConfigurationManager Not Found!
I'm developing a basic application, and I'm saving the connection string in the app.conf. when I'm compiling i get this warning.... Warning 1 'System.Configuration.ConfigurationSettings.AppSettings' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings' but when i try to use the System.Configuration.ConfigurationManager it is not found! so what can be the problem did microsoft forgot to add the class on the framework release it is specified everywhere but in the actual assembly. As Blar Allen Stark siad, you pr ...Show All
Visual Studio 2008 (Pre-release) How to find namespaces/Objects that are "out of date" ?
Hi! When frameworks are updated some namespaces change there content, are removed etc.. is there a good site where you can find in which namespace your object are in the actual framework, but the definition you have is in an old version.. that maybe sounded strange but here’s an example.. I’m reading an article from Jan 2005 about the object UITimer in the System.Threading At that time .NET v1.2 something was the deal, but now with .NET 2.0 there is not such an object with that specific name.. has the object been removed,replaced, renamed When i google on this specific object I only find out of date data from the .NET 1.2 era, nothing like ...Show All
SQL Server Can't Deploy AdventureWorks Database
Hi, We attempted to reload the Adventure Works DW in Analysis Services 2005 after a previous install. We first dropped and uninstalled the sample OLTP databases, then removed the previous install using the add/remove programs tool. We then installed the samples again using the AdventureWorks Data Warehouse Database and Analysis Services Project, attached the two databases to the database engine, and then attempted to deploy the Adventure Works. sln project using the Business Intelligence Development Studio. We encountered the following error when we processed the AdventureWorks DW Standard Edition database in Analysis Services: Error 1 ...Show All
