Ed C's Q&A profile
.NET Development RFID Reader Project
Hello, I'm currently working on a project which involves a serial port RFID Reader. I have connected the Reader to COM2 of my PC and i'm trying to get the signals from the RFID Tags. I'm using Visual C# and SerialPort class. The problem is that i can't read or write to the port. I even tried to write something to the port using port.Writeline("string") and then read it with Readline() but it seems that nothing is written and nothing can be read. When i set the RtsEnable to TRUE the BytesToRead property changed from 0 to 9 no matter what i did and still i couldn't read anything. I also wanted to ask you if you have any code samples to send me or if any of you has written a similar program that works. I need to fix t ...Show All
Visual Studio Team System Quesry on Database Testing.
Hi. I am working on an E-Banking application which requires large database to be tested. I am puzzled about how to carry out this testing and how to start(like is it with procedures/triggers/assertions). I request the members to assist me and guide me to carry out database testing in a smooth manner. I would advice to look at Sachin Rekhi his blog which goes in to detail on unit testing and data generation http://blogs.msdn.com/sachinre/ There will also be a MSDN webcast that will show you the basics coming on line in the coming days, watch Sachin his blog and an announcement and link to this. -GertD "DataDude" Development Manager ...Show All
Windows Forms set a Datagridview datasource to datareader
How can I set a Datagridview datasource to datareader My code appears below... //Build the connection and open it System.Data.OleDb.OleDbConnection con = new System.Data.OleDb.OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Application.StartupPath + @"\MyDb.mdb;User Id=admin;Password=;"); con.Open(); //Create SQL statement string sql = "SELECT * FROM Log"; //Open a command object using the connection and prepare the sql statement. System.Data.OleDb.OleDbCommand cmd = new System.Data.OleDb.OleDbCommand(sql, con); //Run the command System.Data.OleDb.OleDbDataReader reader = cmd.ExecuteReader(); //Loop though and display the first col ...Show All
.NET Development Emails send Through Exchange Server.
Hi All, I need your help regarding sending Email through Microsoft Exchange Server. Is there any code snippet or any .dll which will give me the brief idea As per my info Exchange server act as wrapper and invokes SMTP internally to send the mail. Outlook is client and been connected to exchange server. I don't want to install outlook on my machine and want to directly connect to exchange server which is located at company network. How Should I connect to Exchange Server I have done googling lot but most of comments have use SMTP Server. I am able to send mail using SMTp Server, I have installed a third party SMTP server(ANSMTP) and used for sending mails. I also tried sending mails through Outlook using C# , it's done ...Show All
Visual C++ Change mapping in ATA-driver
I want to connect a IDE hard disk to a pxa processor. Now I have to change the physical mapping in the standart ata-driver in wince. Does anyone know where I have to do this changes in the driver I cant finde the adress mapping. thx Please direct this question to the DDK newsgroup at http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.development.device.drivers&lang=en&cr=US . This forum is meant for Visual Studio realted issues, and as such not implementation matters. Thanks! OTP. ...Show All
Visual Basic Visual Studio 2005 Pro - Academic Version
I'm thinking about ordering VS Pro from school, but they can't give me details (it's not kept in stock)... does anyone have the academic version and does it require internet regsitration/activation Some people are saying yes, others are saying no. Thanks Any mention of off topic item was evidence and reasoning for this on-topic question. Express products on CDs do not require it - only downloads. I also have the VS standard version CD which do not. I've had these for about a year or so but only since last week I've finally abandoned VB6 Pro for Net.. but now I want to go 64bit Pro. ...Show All
SQL Server Feasibility of Filtering in this Scenario...
Background: I'm a young developer working on a project that involves merge replication between SQL Server 2005 Mobile Edition and SQL Server 2005 and I've been having a hard time wrapping my head around exactly how to implement the best filters for the subscription(s) and publication(s). Users of our application are Auction goers who collect data about AuctionItems in a mobile db and sync that information with a central db once he or she is finished. The central db is, obviously, pre-populated with most of the information about any/all AuctionItems. Central db information is available to view/change via web access. Multiple users can change the same Auction data so there will be overlapping partitions. What I would like to do is: Present ...Show All
Windows Forms Dropdown List
Is there a way to make a Dropdown List typing enabled in a web application. Thank you in advance hello U_T_A I dont thnk that we can attempt this,because its against the design of that control ,but again why did u actually need such a functionality ...Show All
Visual Studio Express Editions Failing to write List
Hi, I am trying to write data to a text file using the FormClosed event as I just want everything that is in the list sent to a file, no matter how the data has been manipulated while held in memory string s = myList.Items.ToString(); if(s != null) { WriteData(s); } static void WriteData(string s) { using (TextWriter w = File.AppendText(@"MyData.txt") { w.WriteLine(s); } } I have wrapped the first part in a try block, but the exception doesn't seem to catch it. The text file is full of these lines System.Windows.Forms.ListBox+ObjectCollection and it should be full of my data line 1 my data line 2 etc., tia, Markku is close, try this: foreach (object i ...Show All
Visual Studio Express Editions Database Calls
I am working with the API of another software company and I am at the point where I am able to click on something from there activex control and send something to VB saying what I clicked on...I am just assigning the text in a textbox for testing purposes. I would like to use this text to search a new database I am making and when it finds its be able to bind all the data that is on that row on the screen when this object is clicked. Any ideas on the best way to do this Thanks Okay I went back the basics and used the built in connection to SQL threw VB 2005 express and got everything working with exception of the dynamic part. I right clicked on the database in the Data Sources pane and select Edit DataSet with Designer. Then I adde ...Show All
.NET Development proxy error when consuming internal web service
I've pulled out much hair over this, so I hope a guru out there can quickly see the err of my ways. I have created (with the help of some code from articles) a web service that accesses an external web site (outside of our company firewall). I have coded the web proxy and credentials into the web service. In testing via a browser, the web service performs correctly, in that it authenticates thru the firewall and returns data to the browser in XML format. Now I need to consume that web service in an ASP.NET application. However, it fails with the error : The request failed with HTTP status 502: Bad Gateway. The client code is pretty darn simple, so I'm embarrassed that it's not easily working. The sanitized code is below (client and web ...Show All
.NET Development XML Serialization of Custom Classes and Web Services
Hi All. I am stucked with xml serialization. I am having one custom class and one Web service which is having one web method to return instance of my custom class. But when proxy class is created for my web service, properties of my custom class are not exposed as properties but are exposed as fields. My custom class looks like this: <Serializable()> _ Public Class Trade public m_TradeId as integer public m_TradeName as string Public Property TradeId() as integer get() Set() End Property Public Property TradeName() as string Get() Set() End Property This class instance is returned through Web service web method. But the proxy which is generated for the webservice is not exposing Propert ...Show All
Windows Forms Want to add scrollbars to a DataGridViewTextBoxCell
I have a DataGridView with a DataGridTextBoxColumn that supports multi-line data, but the size of the data sometimes exceeds the sizes of the cells. How can I add scrollbars to all of my DataGridViewTextBoxCells in a DataGridViewTextBoxColumn, or even better, to any in which the cell text is too large to fit in the cell's display area (Similar to System.Windows.Forms.TextBox.ScrollBars = both) In the editing control showing event you can tell the textbox to show the columns Imports System.Data Imports System.Data.SqlClient Public Class Form1 Dim ds As New DataSet Private Sub Form1_Load( ByVal sender As Object , ByVal e As System.EventArgs) Handles Me .Load Dim strCon ...Show All
Visual Studio Team System Accessing TFS from a web app
I have this web application that has to access my TFS site. And even though I'm using the SAME lines of code I was using in a dummy Windows App, when I run the site I get. TF30076: The server name XXXX provided does not correspond to a server URI that can be found. Confirm that the server name is correct. I tried creating a TFS object in C# with new valid network credentials but it doesn't seem to work either. Any clues It's probably because the Team Explorer client has never been ran on that machine by the user teh ASP application is running as to register the short name "myserver" with the url "http://myserver:8080". When specifying the server, use the full URL instead, i.e. " ...Show All
Visual Basic How do you link a dataGridView to a form showing data detail
Hi, I've created a dataset using the 2005 wizards with two linked tables. Call them Order and OrderItems. I've created a form showing the detail of the Order table by dragging the OrderTable over from the Data Sources window. I want to show a datagridView showing the related order items. I have tried dragging the related table over as a DataGridView but although the datagrid appears with the right headings, nothing shows up when viewing the form. What am I doing wrong Is there any example code around that could demonstrate this Many MANY thanks! John Using the drag and drop form building, you need to expand the parent table (orders) in the DataSources window and then drag the ...Show All
