simon_'s Q&A profile
Windows Live Developer Forums Permission Denied?
I have noticed something weird and I can't find any other posts about this but for some reason my map loads correctly on some computers and not others...I get a permission denied error when the page loads - after displaying the default map of the US, it then won't zoom into DC with my GeoRSS xml feed of pushpins. My map: var map = null; var layerid=1; function GetMap() { map = new VEMap('myMap'); map.LoadMap(); var veLayerSpec = new VELayerSpecification(); veLayerSpec.Type = VELayerType.GeoRSS; veLayerSpec.ID = "CourseMap"; veLayerSpec.LayerSource = "xxx"; veLayerSpec.IconUrl = "xxx"; veLayerSpec.Method = 'get'; veLayerSpec.FnCallback = onFeedLoad; map.AddLayer(veLayerSpec); laye ...Show All
.NET Development Function and argument matching with regular expressions.
I have strings like: MyFunctionCall(a.b(c.d.f, a).c,a.b.c.d) I would like to have a regular expression that can return if it is a function call, the name of the function and a list of the arguments to the function. I have started with: Regex regex = new Regex ( @"( <function>[A-Za-z]+)\(" + "\r\n" + @" ( >" + "\r\n" + @" [^()]+ " + "\r\n" + @" " + @"| \( ( <arguments>)" + "\r\n" + @" | \) ( <-arguments>)" + "\r\n" + @" " + @" )*" + "\r\n" + @" ( (arguments)( !))" + "\r\n" + @"\) | ( <function>[A-Za-z]+)" + ...Show All
SQL Server EnumAvailableSqlServers() fails to detect LOCAL installed instance when disconnected from network
I am using EnumAvailableSqlServer to build the standard select Sql Server dialog with controls to select the server, instance and database. This all works fine - other than the well reported problem of detected multiple instances - however I have noticed that when disconnected from the network the call fails to even detect the locally installed sql servers. What is the recommended method of determine whether an instance of sql server is installed locally. I can call Server->Databases, but this leads to a timeout / excpetion if no instances are detected which is slow. Is there a recommended registry key I can check that won't change between versions or another API I can try. hx, Nick Checking regi ...Show All
Visual Basic Application Configuration
Hello. A question, please. I am working with VS 2005. I don't find how can I set the working enviroment. I mean DEBUG, RELEASE. I know that I must see a bouton called SOLUTION CONFIGURATION, but I dont have it. Can anyone help me Thanks... You will need to enable 'show advanced build configurations' . Goto Tools->options->Projects and Solutions->General and set the checkbox True . ...Show All
Software Development for Windows Vista Aero interface is not loading
Hi, I installed Vista RC1 ultimate edition on a IBM T41 and the Aero interface is not loading and i do not see a option to enable this interface. Can someone walk me on how to enable this interface. One of the reasons for installing this Os was to experience the interface. Chetan You wont be able to. Unless you've upgraded your laptop (I have the same one) Aero needs a video card with at least 128 MB of VRAM to run. Marc ...Show All
Visual C# DataGridButtonColumn
Hi People, I have created a DataGridView and added a DataGridViewButton to the column. all is good. I run and i see buttons. But , what event is it that catches when you press the button. I have used other thrid party comps that make it easier (OnCellButtonPress) or something similar, but now i have made it a mission to figure out how it works in a standard DGV component. Can someone help please KM ...Show All
Visual C# Buttons/TextBox/Integers
Thank you for you response in advance. I am making a Windows application that will ask the user to enter their security code. They have to use the buttons that are on the windows app. Their code is a four digit code. I have tried several ways to get the four digit number to appear but everytime I click a button the new number appears and the old disappears. I tried to convert the int to a string and then append it to the textbox and to what was already in the textbox. This is what I tried: private void numberOne_Click(system args bladdy blah) int numberOne = 1; string num1 = Convert.ToString(numberOne); codeBox.Text = Append.(num1).codeBox.Text: //append the 1 to whatever is already there. ...Show All
Windows Forms Determine if List is displayed for ComboBox
I have a situtation where I need to not let the mouse roller change a value in a drop down list. I was able to accomplish this by trapping the 'MouseRoller' event and canceling it for a ComboBox. However, now my users want the mouse roller to be enabled if the list is displayed for a ComboBox so they can scroll through the items. So I was wondering if there is a way to know if the list is being displayed for a ComboBox editor I am hoping to use it in the 'MouseRoller' event and not cancel the event if the list is in fact being displayed. Thanks in advance. Thanks for the reply...Yes, logically that is what I am looking for, but there is no such property 'droppedown' for combo that can give me what I am loo ...Show All
.NET Development ORA-01008: not all variables bound error
Hi, When I tried to execute similar following query py passing Param1 and Param2, I am getting "ORA-01008: not all variables bound error". Select * from Table1, (Select Col1, Col2, Col3 from Table 2 Where Col = :Param1 and Col2 <= :Param1 and Col3 > :Param1) abc Where table1.col1 = :Param2 Can anyone help me in this. Regards, Ananth. Hi, in orcale official document, error message ORA-01008 means: ORA-01008 not all variables bound Cause: A SQL statement containing substitution variables was executed without all variables bound. All substitution variables must have a substituted value before the SQL statement is executed. so, you can try to use substitution ...Show All
Visual Studio Express Editions Deserialization
This is very aggrevating!!! I have serialized three simple questions (textboxes) that is entered by the user. I cannot figure out how deserialize and have the three textboxes show what I have serialized My code (Visual Basic Express) on my main form is as follows: Imports System.Xml Imports System.Xml.Serialization Imports System.IO Public Class Form1 Private theCollectionOfPatients As New ArrayList() Private Sub DoSerializePatient( ByVal patientcollection As ArrayList) Dim theTypes(1) As Type theTypes(0) = GetType (ArrayList) theTypes(1) = GetType (Patient) Dim theSerializer As New XmlSerializer( GetType (ArrayList), theTypes) Dim theWriter As New FileStream ...Show All
Visual Studio Unable to create a new DSL project from Visual Studio
I have reinstalled Visual Studio and the latest SDK and I start to experience problems while creating a new Domain Specific Language Designer Project. At first, after the project is unfolded I get the error message box saying “ The method or operation is not implemented” . When I press OK, I can work. I still need to run the text template manually because it probably fell before it could complete it. However, the problems are not over yet. When I run the solution, I get an error inside the experimental hive saying: “ The following files were specified on the command line: ..\..\..\Debugging\Debugging.sln. These files could not be found and will not be loaded.” Btw, I have no problems opening DSLs I develo ...Show All
.NET Development XmlDeserialization string into bool
I created my C# class file from xsd.exe I have an xml file which I Have deserialized successfully. Now in the xml file I want's some nodes to be of boolean type.Same in the class file. My xml file is < xml version = " 1.0 " encoding = " utf-8 " > < Exporters > < Exporter > < ExporterName > FirstExporter </ ExporterName > < TransformationFileName > FirstExporter.xsl </ TransformationFileName > < IsEnabled > True </ IsEnabled > <!-- True || False --> < IsTransFormtionNeeded > True </ IsTransFormtionNeeded > <!-- True || False --> < CopyToFtpNetWorkLocal > F </ CopyToFtpNetWorkLocal > <!-- F f ...Show All
SQL Server Connection Manager Deployment with master/detail package
Hallo, I'm currently strugling with the setup of our packages for deployment to a new environment. We are working with a master/detail package setup. One master package is created that will call all child packages. In the master package we don't have any connection towards our source and/or target databases/sourcesystems. Everything works fine, however, starting to deploy the whole set of packages, it seems that we don't have the option to set specific properties of our detailed packages, e.g. connection properties. But this is just what we need. When we are adding a job in the Job Agent for our master package to be scheduled, we want to be able to set all different connection manager properties, not only the one from the mast ...Show All
Visual Basic VS - prompt before exit?
When I'm about to exit VS2005 (or VS2003) it doesn't prompt me if I'm sure. Is there any way to set this option I looked in VS options and searched registry keys, but didn't find anything. I'm probably missing something obvious. Can u help me, please Thx in advance Hmm, still doesn't add up. The windows have their own close button, the one with the black X. Do you use the tabbed documents interface (Tools + options, General, "Window layout") ...Show All
Visual Studio Express Editions Accessing records for processing in VB Express / SQL Server Express
I am a rank VB newbie and have run up against a brick wall with the app I am trying to develop. How does one embedd SQL inside VB code to access data in the database for processing The documentation and tutorials talk about using predefined widgets (like tables and grids) to view and edit the data by I want to read records into variables to do stuff with them . I just want to connect to the database, embed some SQL inside my code so that I can access and process records in the database. Make sense I would appreciate any help... Simone here is some pseudo code for you to take a look at.... Dim cmd As New OleDb . OleDbCommand Dim cnxn As New OleDb . OleDbCo ...Show All
