drS's Q&A profile
.NET Development Serial data to a text box
Hi I am just starting out with C#. All i want to do is collect data from the serial port and show it on my form Text box etc. Eventually I want to save the data to a file. I have created a form with a button and a textbox, plus serialPort1 tool. The following does not build private void button1_Click( object sender, EventArgs e) { textBox1.Text = serialPort1.ReadExisting; 1. Use Visual Studio 2005 - Only it got SerialPort Class 2. Add Namespace ....... using System.windows.Forms using System.IO.Ports; YourNamespace { yourClass { //Decla ...Show All
SQL Server SAN Replication
I'm wondering if the technology exists to use SAN replication for sql server 2005 disaster recovery. I have a bunch of prod servers I want to add to a san, I then want to have another bunch of servers at a dr site connected to another san. Is there a technolgy ( non sql ) to enable full ( real time ) san replication of the data ( for SQL Server databases ). I don't need alternate suggestions, this solution has been proposed to my clients, I don't think it's available, any confirmation one way or another would be very helpful, thanks. Yes, I am working with the HP tecnology Continuos Acces ...Show All
.NET Development Using .config file with Assembly.LoadFile or Assembly.LoadFrom
Hi I am loading one assembly at run-time using Assembly.LoadFile or Assembly.LoadFrom. The assembly is a windows executable and also it has a [Name].exe.config file. The [Name].exe.config includes sections of <dependentAssembly> where one of them is shown below. < xml version = " 1.0 " encoding = " utf-8 " > < configuration > < runtime > <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> < dependentAssembly > < assemblyIdentity name = "name " publicKeyToken = " d11ef57bba4acf91 " /> < codeBase href = & ...Show All
Visual Studio Express Editions C# & Regional settings
I have a COM Interop DLL written in C#. I create an instance of it in VB. The DLL does not seem to pick up any change in regional settings while the instance in VB is still active. On restarting the VB session, all is well. Is there some way of ensuring that the DLL picks up the latest regional setting Thanks. ...Show All
Visual Studio Team System How can I override an event handler?
If I have a base class A and a derived class B how can I override an event handler and keep FxCop happy public class A : Form { ... this .pictureColor.Paint += new System.Windows.Forms. PaintEventHandler ( this .pictureBoxColor_Paint); ... protected virtual void pictureBox_Paint( object sender PaintEventArgs e) { Base.OnPaint(); } } class B : A { internal B( ) : base () { } protected override void pictureBox_Paint(object sender, PaintEventArgs e) { &n ...Show All
Visual Basic ERROR The data provider or Service Provider returned an state E_FAIL
Hello I have a Problem, I installed Microsoft Visual Basic 6 and in Some ocations using adodc or an Recordset Object in the RecordCount an other methods VB return the next error : ERROR The data provider or Service Provider returned an state E_FAIL Please HELP ME !!! There are probably a number of reasons this could occur. I'd ensure that I had the latest MDAC components installed on my machine for number 1 and if you want a response then post the code to allow someone to see the code that is running and the detail the line it is failing on. We want to help but we aren't telepathic. As these forums are really for VB ...Show All
Software Development for Windows Vista Vista installation problem
hi i have downloaded windows vista and have tried installing it (i am using daemon tools to mount it) 3 times on a 40gb ide hard drive. i have 2 40gb had drives 1 with xp on and 1 for vista. also i have a 250gb external 1 for backups. part way through the installation after it restarts for about the 3rd time it boots into xp and when it finshes loading i get a message saying: Your Windows Vista installation has failed Your previous version of windows had been restored. To try installing Windows Vista, back up your files, and then perform a clean installation. And i have from the start been doing clean installations simply bec ...Show All
Visual Studio 2008 (Pre-release) SomeOtherLINQ
Hello everybody, I am wondering if it will be made possible to develop other version of LINQ, using data sources other than SQL or XML. I mean, are there any plans for making appropriate APIs public Tom Jastrzebski This is absolutely possible Tom. As a matter of fact XLinq and DLinq are just using the extension mechanisms made available by the LINQ technology. Take XLinq for example. There are two main ways that XLinq works with the underlying LINQ technology to provide XML Query and Transform capability. One, have all of the appropriate methods return IEnumerable<T>. For ...Show All
Visual Studio Express Editions I want to save the listbox to a file .i will look the listbox when i open the program again.and how do i?
the same subject Hey, You can't save the listbox, but the data for the listbox. What is your data source. Brian ...Show All
SQL Server Souce and Dest auto-mapping
Hi, in my package there are several Connection Managers linking DB2 databases and there is one "fake" CM which copies the connection string of one of the other "real" CM depending of the need. Then I've made a Data Flow containing an OLE DB Source and a Destination Adapter. The Destination has a "table name from variable" access through a fixed Connection Manager, and the Source has "sql command from variable" access and uses the "fake" Connection Manager, which has "inherited" the connection string from one of the "real" CMs. The point is: When I drag the arrow from the OLE DB Source to the Destination, some mapping metadata are set, and th ...Show All
Visual Studio Adding a new Window via DTE2.MainWindow.LinkedWindows
Hey all, I have been working on my Add-In for a while in VS2003 and moved it over to 2005 and now I want to be able to have my window integrated into Visual Studio. Is there a good reference to doing this I have just started looking at DTE2.MainWindow interface and also the DTE2.MainWindow.LinkedWindows. Do I simply need to implement Window2 interface and then add it to the LinkedWindows collection and that is it I did find some information but I would like a good example of how to do this so I am not hunting forever. Or do I have to use the CreateToolWindow instead and if I so how do I use my existi ...Show All
Windows Forms Free Controls?
I need serious help with this. I am fairly new with VB... We have a class project coming up in two weeks, that we have been asked to start working on now. In this class project we are required to use VB.Net controls. At least one. But I am having trouble finding any free ones, that aren't for a trial basis. I would like&nbs ...Show All
Visual Studio Team System Sharing issue in VSTS Source control
Hello guys, I'm trying to migrate our VSS database to VSTS Source Control and I don't really understend how can I make "sharing" happen at VSTS For example we have next VSS source tree: $root |-DummyProject |-Includes |-ProjectA |-ProjectB Both of them have shared files from <Include>. My question is: What is an alternative for us in VSTS in terms of do not re-organize our current code Thanks a lot guys. Two basic ways: Use different relative paths. Let's say your layout is: $/root |-Common |-CommonLib1 |-CommonLib2 |-DummyProject |-ProjectA |-ProjectB |-Includes |- [C ...Show All
.NET Development Using FtpWebRequest to check if a directory exists.
I'd like to know if there is anyway i can use the FtpWebRequest class to check if a directory exists before creating it on the server. The reason i ask is because if you try to create a directory that already exists it throws a WebException and disconnects from the server. This gives a performance hit if we are trying to create alot of directories on the server that already exists due to the disconnects/reconnects. TIA, lushdog Yes, you can set the FtpWebRequest.Method to "NLST" and use it to check if the directory exists on the server Mariya ...Show All
Visual Basic Rotating an image or bitmap object
Hello, I'm looking to (through code) rotate an image or bitmap object. It has to be to any angle, too, not just 45 or 90 degree intervals. I HAVE code to do this, however, the centerpoint for rotation ends up being the top-left corner of the bitmap. I need it to rotate from the centre. Thanks in advance to anyone who can help. You need to do a translate transform by half the width and height of the bitmap, so that the point of rotation is the very centre. Then translate back when you've rotated it. ...Show All
