amitsingh18's Q&A profile
Visual Basic Secure Connection String? is there such a thing?
Hi Everyone, Im developing a VS.net application which connects to a SQL server over the internet, i have a SSL certificate running on this server and data between the application and the server is encrypted. which makes me rather happy. However using .net Reflector i just opend up my code and low and behold there is my conenction String in full sight!!!! which essentially means that anyone can have fun with my database :( i have read a lot of help pages but nearly everything is in C# which doesnt help me a lot, is there any way to A) not show the connect string at all (without using winows authentication as i have lots of users) Or to encrypt it so that evn if the program was decompiled or memory sniffed that they could not get t ...Show All
Visual Basic limiting key stroke
hello, i would like to limit my keystroke, heres what i used on my vb6, can i have any suggestion about transferring it into .net code Private Sub Amount_KeyDown(KeyCode As Integer, Shift As Integer) Select Case KeyCode Case 110, 190 Dim count As Integer For count = 1 To Len(Amount.Text) If Mid(Amount.Text, count, 1) = "." Then Amount.Locked = True End If Next Case 48 To 57, 96 To 105, 8, 46 If Amount.Text = "0" Then Amount.Text = "" End If Amount.Locked = False Case Else Amount.Locked = True End Select End Sub thanks in .NET you can use the KeyDown event and look at the KeyCode that has ...Show All
.NET Development Update is not a member of odaLedenBoeken(=TableAdapter)
hi, I got a big problem concerning updating my tables, I have a program with 2 bindingsources and 2 bindingnavigators They use the same dataset,but a different adapter Updating with my first bindingsource works perfect,like a charm, but when trying to update with the second bindingsource,it fails. I use a table tblVerhuur, wich contains data like "From","To","Person","Book Number", but in the dataset, I added the column "Title" to that tabel, so that it will automaticly look up the title of the book in tblBooks using Book number in tblVerhuur But when trying to generate update commands,nothing happens, I read about this before, when using JOIN it fails, but how can I let it work t ...Show All
SQL Server KB918222 Windows 2003x64 R2 fails
When I try to apply this post SP1 patch to SQL Server 2005 x 64 on a Windows 2003x64 R2 system it fails everytime. The following is the HOTFIX log: 07/12/2006 15:02:06.781 ================================================================================ 07/12/2006 15:02:06.781 Hotfix package launched 07/12/2006 15:02:08.046 Product discovery successfully completed during the install process for MSSQLSERVER 07/12/2006 15:02:08.046 SP Level check successfully completed during the install process for MSSQLSERVER 07/12/2006 15:02:08.046 Product language check successfully completed during the install process for MSSQLSERVER 07/12/2006 15:02:08.046 Product version check successfully completed during the install process for MSSQLSERVER 07/12/2 ...Show All
Visual Studio 2008 (Pre-release) Handling events generated by Contents of ContentControl in a parent of ContentControl
Hi, I have a control inheritted from ItemsControl which contains a number of specialized ContentControls. I would like to handle all the events (say, the MouseButtonDown events) generated by the Content of the ContentControls at the level of the parent ItemsControl. Obviously I can override the OnMouseButtonDown method in the ItemsControl, and, thanks to RoutedEvents, I will recieve all the events generated within a ContentControl. The problem is that the RoutedEventArgs.Source property is usually an item within the ContentControl rather than the ContentControl itself. What is the best approach for amalgamating events generated by the ContentControl and its contents I don't really want to define new RoutedEvents just for this purpose ...Show All
Visual C++ How to catch MFC Application error causing application closing
Probably most of us have seen the dialog box with the following message: (AppName) MFC Application - (App description) has encountered a problem and needs to close. We are sorry for the inconvenience. If you were in the middle of something, the information you were working on might be lost. Please tell Microsoft about this problem. ... I have added many try and catch traps, but have not been able to catch this error. Could anyone offer some tip Thanks, Among the best solutions is a careful reveiw of the code to ensure that all errors are caught, reported and proper corrective action is taken (such as exit after reporting if there is nothing else that can be done). The error you are encountering is likely ...Show All
Visual C# Time
Okay, so I am trying to make an alarm clock program for computer, to familiarize myself with C#. What I need help with, is I have the dateTimePicker tool for setting the alarm, and I have a label for displaying the current time. My coding problem, as it were, is that I cannot figure out how to make the label display the current time, or how to get my program to play the music when the time comes around. I already have the ability to open a file, and have set the file filters for WAV, WMA, MP3, MP4, and MIDI files. so, my program can open files, but of course, at this moment, it cannot use them. Any help would be greatly appreciated. alright, found it and downloaded it, and I have been trying to pu ...Show All
Visual Studio Express Editions fatal error C1189
Every time i try to compile something, i get this error: "Your active configuration is set to DEBUG. Click here for important information!" How to fix this Building mod for UE #define _REALLY_WANT_DEBUG, solves it Thanks ...Show All
Visual C# Why does 'String' not have a copy constructor?
Is there a reason that the 'System.String' type does not have a copy constructor A 'copy constructor' is a constructor that takes its own type as a parameter. I would have expected the string type to have copy constructor as it should permit strings to easily share the internal reference to the string data. This would both improve performance and reduce memory consumption as the internal string data object is shared, and not constructed, from the existing string to the new string. Am I missing something There is no such thing as "Copy Constructor" in C# so I assume that you want a contructor like String(String another); The problem is that it is completly useless. Strings in C# (unlike m ...Show All
Visual Studio Tools for Office Prevent outlook from closing or user from changing a item
Hi again! Im having some troubles on outlook add-ins. Does anyone knows how to: Detect that outlook is closing and ask the user if he really wants to close outlook while the add-in is performing some action (example: sending data or receiving from a server). In this situation is there a way to prevent outlook from closing Detect if a user is changing a item. Prevent a user from changing any item while the addin is doing something. I was hoping for a solution that works both in 2003 and 2007 office systems. Thanks for the tips. Regards, N. Pinto So your saying that i should: activeExplorer().close += ... (CloseEventHandler) CloseEventHandler { // Prompt user ...Show All
Visual C# Converting images to matrix form
Hi! I am currently doing a project on Locality-Sensitive Hashing. One query I have is whether is it possible to use C# to convert an image to a unique matrix of high dimensions. Any help would be greatly appreciated. You can certainly use this declaration: int[ ] image = { x0, x1, x2, … }; but I think this could get a little tedious. A little more detail in your question would provoke a more accurate response. ...Show All
Software Development for Windows Vista Urgent: Scheduling service in Sharepoint workflows
Hi, Hosting a workflow in sharepoint yields in major scheduling service issue. The manual scheduler service can't be controled and thus the delay activity in turn isn't feasible. A possible walkaround was to create a task with a duedate. A windows service will run on timely basis and checks all the tasks with expiry date and updates them. In theory, updating a task will cause the workflow to trigger the OnTaskChanged method, but in practise, this wasn't the result. When this task is updated, the workflow isn't affected, whereas when manually updating the task an error occurs "event isn't received". The reason is due to the fact that the updated workflow in the windows service doesn't run the scheduler and as aresult, the workf ...Show All
Game Technologies: DirectX, XNA, XACT, etc. System.Reflection.Assembly
I'm finally getting around to porting what I had written during beta 1 over to the RTM. I'm thinking about building my engine in a modular fashion so that I can issue pluggins to extend its abilities easily. The XNA documentation lists System.Reflection.Assembly as an supported object on the 360. Is this true, and how does the FromFrom, etc methods work on the 360. Obviously the file paths would not be the same as Windows. I do not have an Creators Club Membership to verify how this works on the 360, but would like to know so that I could potentially plan for such functionality (If possible). A quick search on the forums did not reveal any prior posts on this topic. Thanks. System.Reflection.Assembly.LoadFrom can take a ...Show All
Visual Basic Need help converting 2005 project back to 2003
I recently converted a project to 2005. There were no problems.. however I now need to convert that project back to 2003 in order to give it to another developer. Is there a way to do this I made no changes after conversion. Take the backup that you have and give it to them. You did tell the upgrade wizard to backup the project Even so, you have the origional source code backed up elsewhere of course, don't you Perhaps CD or DVD. Maybe it's in a source control. You must have a copy, somewhere...If not, you will have to admit you screwed up big time. This should be the one and only time it ever happens (every developer is allowed to mess up like this once in their whole life). However, a ...Show All
Visual C# ESC or Break character??
Hello. What is the break or esc character I need it to write a SMS text message on a SerialPort. Regards. Ctrl+Z is character code 26 (0x1A). If that still doesn't work, try using SerialPort.WriteByte() to send such control characters, they may not have an equivalent string representation when the SerialPort encodes the string into bytes to send on the wire... ...Show All
