dark_majician's Q&A profile
Windows Forms How to add User & Pass to ConnectionString in app.config?
Hi, I excluded the sensitive data (username-password) from my ConnectionString , how can I add it from any C# class when needed i.ex: string username = textbox1.Text; string password = textbox2.Text; Ashish Basran wrote: Hello, As you are allowing user to enter the userid and password and not going to store in configuration, what you might do is: Create the connection string in application configuration(appSettings) and while using the connection string, replace the userID and password of the user before assigning the connection string to connection object. Hope this helps you. And how to do that or how to amend the c ...Show All
Visual C# Reinstall creates multiple entries in Add/Remove Programs
Hi, I have an app that I have compiled several times to an installation program. In VS2005 I have DetectNewerInstalledVersion = true and RemovePreviousVersions = true. Each time I compile I increase the version slightly so I can run the setup without error, but when I do all these things, after installing different upgrades several times I see new entries into Add/Remove Programs. Is there something I can do in Visual Studio to correct this Mario, You are right, it is completely counterintuitive!! I have a VS2003 WinForms app for which I am providing constantly newer versions to the folks who are testing it for me. I want the installation to be simple: Just one the new MSI file and have it install over top of the old installation. To ...Show All
SQL Server How do I create an SSIS project?
How do I create an SSIS Project in BIDS I installed BIDS, but I don't see any SSIS projects to create. When I click File - > New Project I see the following options under "Business Intelligence Projects" section. 1. Report Server Project Wizard 2. Report Server Project No where do I see anything about SSIS or integration services projects. Am I missing something Did I not download something I have Windows XP SP2 Visual Studio .Net 2005 SQL Server 2005 Express SQL Server Management Studio Express Installed Business Intelligence Development Studio My company has a SQL 2005 server that I connect to in which I want to run SSIS projects off of. I'm sure I'm just missing something small. Can someone point me to th ...Show All
Visual Studio Express Editions Read/Write INI
How can my program read and write to an INI file Goto Pinvoke.net here: it shows what should be the correct declarations: http://pinvoke.net/default.aspx/kernel32.GetPrivateProfileString http://pinvoke.net/default.aspx/kernel32.WritePrivateProfileString ...Show All
Visual Studio What are the limitations on evaluating expressions in 2003? (and now VS2005)
Hi everyone, Here's what I'm trying to do: I have a lot of static/global data in a given project that I'd like to access from a type-inspection addin DLL (used through autoexp.dat). There are plenty of examples of how to add your own inspection routines, but none of them cover how to augment that output with some other data from the program. For example: imagine a string table that is accessed by index. I'd like to intercept the index type and spit out the associated string from the table. I'm pretty sure there isn't a direct way to do this from the addin DLL since I don't have an address for the global table to query. There's the VSHelper code on CodeProject that uses a VS addin and EnvDTE to query a known global memory array ...Show All
Visual C# Digital Signature
I have a class 3 code signing certificate, which is not associated with MS Word when performing a certificate Export and Import. Therefore it does not show up in the MS Word Select Certificate dialogue box. I know you can use a class 3 code signing certificate to sign MS Word documents as I have a document that is signed with one. How do you get the certificate to show up in the Select Certificate dialogue box My opinion is that one must put the certificate in a system folder that MS Word uses to populate the Select Certificate dialogue box. What system folder and where is it I'm looking to perfectly understand the details as to what files go where. Thanks. ...Show All
.NET Development Need sample code for xml validation using SAX in vb.net2005
HI, I need a sample code for xml validation using SAX parser in vb.net 2005.i don't want the DOM sample. bcos i already using that object. can any one help me .. thanks in advance Yours BabuKP The .NET framework library as provided by Microsoft has no SAX implementation at all. As I have pointed out, .NET prefers a pull based XmlReader approach to the events based push parsing model of SAX. If you really want to use SAX with .NET then you need to look for third party implementations. ...Show All
Visual Studio Team System Response time Vs Connections
Hi, I am doing load testing on web application. I have executed the test with 100 users with Connection pool size was 50. Average response time was 27 seconds and I got the errors for average connection time out counter. I have increased the connection pool size from 50 to 100. When I have executed the load test second time I did not get errors for average connection time out counter. But response time was 60 seconds which is almost double than first time (27 seconds) Why response time varies when connection pool size increases. Is it right that increasing connection pool size when we get the errors for average connection time out counter In forum I have seen some messages connection per user is better ...Show All
Visual Studio Express Editions Date picker date set up
I want to set up the datepicker dateformat to dd-mmm-yyyy(ex:01-sep-2006) I changed the custom format,and format in design.It is ok.It looks like dd-mmm-yyyy I tried to print the value using coding. visual basic code: MsgBox (dtpStartDate.Value) the printing format like dd/mm/yyyy.(01/08/2006) but not dd-MMM-yyyy. I want the result should be in dd-MMM-yyyy I tried to change the format using coding like visual basic code: dtpStartDate.CustomFormat = "dd-MMM-yyyy" dtpStartDate. Format = DateTimePickerFormat.Custom MsgBox (dtpStartDate.Value) no use Any idea thanks no change with this ,same format DateTimePicker1.Format = DateTimePickerFormat.Custom DateTimePicker1.CustomFormat ...Show All
.NET Development Problem when starting two listening sockets simultaneously
I was hoping somebody might have some insight into this problem. I've been doing searches but haven't been able to find anybody encountering anything similar. In the main program thread I spin off two instances of a TCP server class, each in their own thread.. The main function for the server class basically looks like this: Socket listener = new Socket( AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp ); listener.Blocking = true; listener.Bind( new IPEndPoint( IPAddress.Any, port ) ); listener.Listen( 100 ); while( serving ) { Socket connection = listener.Accept(); // Pass the connection off to another thread } Normally this is fine. One of those TCP servers listens on one port, and the other on a different one. Recently ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Reading the buttons of Joystick Saitek x52
Hi all, Did anybody come across a C# sample that relates to Saitek X52 I have found some generic Joystick samples which help me read the buttons EXCEPT the Mode button. The GetButtons() function returns the codes of the pressed buttons, but I cannot get the status of the Mode button out. I just spoke to Saitek support - No .NET samples whatsoever. Any tips will be appreciated. Best Moni. Did you try the native(C++) version of the program. I am trying to determine if there is an issue in the managed version of DirectInput. SInce you stated that the control panel applet works (which uses DirectInput as far as I know) then its hard to understand why the sample apps don't You can find ...Show All
Visual Studio Cycling the active document
Hey, I'm trying to write an add-in that will let me use Ctrl+LeftArrow and Ctrl+RightArrow to go left and right through the documents as they are listed. I've encountered a problem that apparently everyone else has already in that the Documents list on the DTE object isn't in the order that they are displayed visually but it's sorted historically. I was wondering if anyone has any idea about how I could go about this My team wants the ability to navigate left and right through the list of tabs of source code as it appears in visual studio. Thanks Shawn Is there a way to iterate through the Windows collection and only get the code documents I'm not even sure as to whether that would be sorted in the UI orde ...Show All
Visual Basic Broken Site
From here: https://connect.microsoft.com/vbasic almost none of the links work...all bring back to the page above. Can't vote, can't get to feedback, cant't suggest anything. I checked with the Connect site admins yesterday and the site appeared to be fine from their side. I also see that you've entered a couple of suggestions now so it must be working for you again. Keep them coming! Sorry for the inconvenience. We appreciate your all of your suggestions. ...Show All
Visual Studio Team System Help with my team build project
I setup a build using team build and it created and xml file called TFSBuild.proj. My solution has several web projects and several other projects to which my web projects refer...such as my data layer, my file handling layer, etc... When I run the build it puts all of the .dlls into one folder called "release" and all of the code it pulled out of the source repository into a folder called "source". I would like it if after the build I had all of the code and referenced .dll's in a useful places, with the proper projects, ready for deployment. ok - lets say my first web project in my solution is called website, and it references several .dll's in the solution. I guess I could copy the code I want from the source ...Show All
Visual Basic Serialport Class
I am using the Serialport Class to receive strings of text from a serial device. However, if I write to the port, the stream freezes. I am assuming that it need to stop the read and “prepare” the port for writing and I am not correctly doing so, however I cannot seem to find the “command string” to do so in the Visual Studio 2005 Documentation. Can someone please point me to the right location Thanks. Private Sub SerialPort1_DataReceived( ByVal sender As System.Object, ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) Handles SerialPort1.DataReceived If e.EventType <> IO.Ports.SerialData.Chars Then Exit Sub Dim SerialData As String SerialData = SerialPort1.ReadExisting Be ...Show All
