DoS's Q&A profile
Windows Forms How to keep the decimal separator the same regardless of culture
Hello, I have a vb.net2005 application that was developed in the en-US culture and uses . as the decimal separator. When this application is run on a machine in which the culture has a . as the decimal separator, it runs without error. However, when it is run on a machine with a culture that uses a different character for the decimal separator, a System.InvalidCastException occurs. My application requires the user to input decimal numbers. Is there any way to force the code to recognize . as the decimal separator regardless of culture I have to tried to force the decimal separator to be . through code u ...Show All
Smart Device Development what
i downloaded what the link said would be the device emulator but got bpvault.asp, what do i do with that am i not getting the right link or something or do i have to get the program off of the bpvault is it like an image or something Can you post the link you tried to use You should not be seeing a redirect to bpvault. Barry ...Show All
.NET Development multithreading issue - please help
Hi, I'm having big issues using multithreading. As it is quite difficult to explain I've made a sample application to illustrate my problem: http://graphicsxp.free.fr/WindowsApplication11.zip It starts a new thread, which DoWork function calls a delegate to do do operations on controls (tabcontrol, datagrid....) There is also a popup that contains a progressbar to show the progress in real-time. The problem is that updating the progressform in the delegate does not work, so I can only update the progressform before or after calling the delegate, which is pointless as progress should be updated as operations on control are being ...Show All
Visual Basic Datareader.HasRows???
I have a windows form that i want to insert data if no row exsist and updata data if the row exsist, so far i have If dr.HasRow = True Then Update Else Insert Is this the right way to go about it....if so why do i get an Object not set to the instance of an object exception.....any help would be great thanks....... Hello. I think what you are trying to do is: if dr.hasrows then while dr.read do some stuff end while else do something else end if However, you cannot update a database from a datareader. It is firehose of data that is only one way. You would probably have to have a procedu ...Show All
.NET Development Using System.Net Class
i want to write a program which will download a file from internet.......but during that i want to show some updates of most likely like progress or so...... i came to know that i have to follow the IAsync...but no further could you please provide some useful info. The timeout value choose is going to depend on several things... What server you are making the request to. Is the server frequently overloaded What is the average response time for the server What is the longest response time for the server Do you trust the server to correctly respond within a reasonable time One possible timeout is the ...Show All
.NET Development Access to a smartcard private key
Hi all, I'm trying to access a private key (X509 certificate) stored in a smartcard (Gemplus GemSAFE Card CSP), but i always get the same error: System.Security.Cryptography.CryptographicException: Hay mas datos disponibles. (In english, "More info is available") at System.Security.Cryptography.CryptographicException.ThrowCryptogaphicException(Int32 hr) at System.Security.Cryptography.Utils._GetKeyParameter(SafeKeyHandle hKey, UInt32 paramID) at System.Security.Cryptography.Utils.GetKeyPairHelper(CspAlgorithmType keyType, CspParameters parameters, Boolean randomKeyContainer, Int32 dwKeySize, SafeProvHandle& safeProvHandle, ...Show All
Windows Forms Open Access Database located in ClickOnce Install Directory
I am using ClickOnce to deploy my application which uses a MS Access database to store the data. I would like to add functionality to my application to allow the user to open the Access Database to view the raw datatables. How might I go about opening the Access database that is stored in the ClickOnce created installation directory Thanks! Mike It will be better if you could make your access database as data file. Data files are downloaded to a special directory called DataDirectory and can be accessed using the code shown below. if (System.Deployment.Application.ApplicationDeploymen ...Show All
SQL Server An error has occurred during report processing. (rsProcessingAborted) The report server installation is not initialized. (rsRep
I'v reinstalled RS, then I configuret it. But when I want to open a report raise this error An error has occurred during report processing. (rsProcessingAborted) The report server installation is not initialized. (rsReportServerNotActivated) (rsRPCError) Any Ideas Thanks in advance hi, this probleb caused becaus mainly of the initializtion of reporting services you need to initialize the reporting service in the sql server for that u need to do start-->all programs--->sql server2005-->reporting services-->configure--->initialize -->check the box and press initialize button ...Show All
SQL Server Locking positions on page
Hi Guys I have almost managed to be able to drive the production of invoices for an old legacy app through RS2000. My final problem is that a subreport that is containing within a list on the report page is pushing everything below it down... Any hints on be able to stop this kind of action i already restrict the number of rows that the subreport returns, so there should be enough space on an A4 pages for what i want TIA Stephen ...Show All
SQL Server Virtual Cube Migration
What are best practices around virtual cube migration When the cube was migrated, it became a physical cube with linked measure groups. However, when I try and add a dimension to the cube, and edit the granularity within the Dimension Structure tab, I get this. Regular relationships in the current database between non-linked (local) dimensions and linked measure groups cannot be edited. These relationships can only be created through the wizard. This dialog can be used to delete these relationships. What's the purpose of a linked measure group if I cannot add a dimension to the same cube What wizard Andrew, Bas ...Show All
Windows Forms isMdiContainer = true
After setting the isMdiContainer = true the property of the form the background color of the form has become dark gray How to set it back to the default control color Now background color of the form and background color of the control is totally looking different. Thanks I am unable to change the background color of my form ...Show All
SQL Server retrieves the information about the pipeline components
Dear Experts, I can look the values of the proprieties in each PipelineComponentInfo, for example: ComponentType: Transform CreationName: DTSTransform.Merge.1 Description: Merge Transformation FileName: C:\Program Files\Microsoft SQL Server\90\DTS\PipelineComponents\TxMerge.dll FileNameVersionString: 2000.90.1049.0 IconFile: C:\Program Files\Microsoft SQL Server\90\DTS\PipelineComponents\TxMerge.dll IconResource: -201 ID: {08AE886A-4124-499C-B332-16E3299D225A} Name: Merge NoEditor: False ShapeProgID: UITypeName: Microsoft.DataTransformationServices..... but I don't know what means the proprieties: FileName, FileNameVersionString, Ic ...Show All
.NET Development IIS And Impersonation - accessing file shares?
hi all, i have two servers, one web server (called WS01) and a file server (FS01). I have a new drive on FS01 and i want to store my uploads to it. The problem is that the two servers are separated, they are located in the same place, and can see each other via private ip addresses but are not on a windows network together, so they dont share user accounts. I was testing the sites on our servers and discovered that i can't get into the storage on FS01 even using identity impersonate = true. I tried a workaround i found on ASP Alliance ( http://aspalliance.com/336 ) but cant get it to work i managed to create a virtual dir on ...Show All
.NET Development .NET library to draw math function
Hi all experts, I'm looking for a managed library that can draw two-dimensional Math functions (y=2*x, y=sin(x), etc.) Have tried to Google it but cannot find a satisfactory result. Is there anyone here who has come across such a component Thanks very much. Dotnetjunky Fantastics. This is exactly what I want. Thanks a lot. ...Show All
Windows Forms Caching
Hi, How can I implement caching of data coming from a database in Windows Forms. In Web forms we have Cache, Session objects and I could use them, is there any equivalent in Windows Forms Is there any other alternative also Regards, Kunal Yes, you are right, the data could be the same also and thats why I was looking at cahing it, I will do it now by implementing a singleton class at the server and using its dataset member to respond to the clients. Thanks to both of you. ...Show All
