Rathish P S's Q&A profile
Windows Forms Copy all data from Datagridview into a new datatable
Hi, I was wondering if any have done this before. What I need to do is, copy all the data from a Datagridview into a datatable. Please reply back if you can help. Thank you. Rick.. Well, you can't copy it "from a DataGridView", but you can copy it from it's DataSource. The DataSource can be an type of Object which implements either IList or IListSource. Now, if that object happens to be a DataTable then it shouldn't be that hard: public DataTable ExtractDataTable(DataGridView dgv) { DataTable dtSrc = dgv.DataSource as DataTable; DataTable dtDest = null ; if (dtSrc != null ) { DataTable dtDest = new DataTable(); dtDest.Merge(dtSrc); } return dtDest; } ...Show All
Software Development for Windows Vista Windows Workflow and .net Frustration
Hi Folks, I'm damned frustrated. I try to develop a statemachine Workflow. First I watched the nice webcasts of some indian fellow, than form the pdc and so on. May most of you have done the same stuff. I bought some time back the book for Windows Workflow foundation. I downloaded the samples, took the labs and so on .... Some days later I tried, I guess, as most of you some sample, I checked out with the stuff you can download. Than the greate moment, development time desging the workflow and in the mind the webcast, what live is so easy and the world so nice. Ok now it starts: My VS2005 crashed some 8 - 9 times, in one step my full project was crashed while designing OK it's beta 2 ( but still it's beta ) Than my des ...Show All
Visual Studio Team System Problems with extracting hidden form fields
1) Problems with extracting hidden fields After parameterising the requests, that were meant to extract the form hidden fields, the scripts threw errors. The test server wasn’t being picked up by the script. The following were displayed in the Web browser section of the results: Request failed: context parameter’ $HIDDEN2.BasketID’ not found in test context. 2) Has the service pack for fixing issues related to hidden fields been released Tester The beta for the service pack has been release at http://connect.microsoft.com/visualstudio Please try this out and see if it helps with your problems. ...Show All
Visual Studio Express Editions Event Handlers and Raiseevent issues
Hi, I seem to be missing something here!! I am looking at the process of Event driven coding and I am a bit confused. If I understand it correctly all I need to do is: 1) Within the form that will raise the event declare the event with the event key word and raise the event Public Class Form2 Public Event xevent() Sub raiseevents() RaiseEvent xevent() End Sub End Class Within form1 create an instance of form2 with the withevents keyword Public Class Form1 Dim WithEvents eclass As New Form2 Private Sub eclass_xevent() Handles eclass.xevent MsgBox( "test" ) End Sub End Class The issue I have is the above only works if I call the form2 raiseevents ...Show All
Visual Basic Connection To The Internet
I want to write a Service that runs every 24 hours that checks for an Internet connection if the connection is connected then I want it to send out an e-mail.....I know i would use System.Net to do the e-mail part but how would i write the code to check for an internet connection Hey Frank I tried it this way but i get this exception.... Unable to find an entry point named 'InternetConnectionTest' in DLL 'wininet.dll'. This is my code....What seems to be going wrong I am using Win XP Pro service pack 2 Imports System.Runtime Imports System.Runtime.InteropServices Module Module1 <System.Runtime.InteropServices.DllImport( "wininet.dll" , ExactSpelling:= True , CharSet:=System.Runtime.Int ...Show All
Windows Live Developer Forums Popups for pushpins have wrong Y coord in Firefox
Not doing anything fancy - just supplying some text to popup for a bunch of pushpins. Location of popup is fine in IE, but in Firefox the y coord discrepancy gets worse the larger the y-pixel value of the pushpin is in the map. Anyone know of a workaround Could be a grapic card/monitor issue that your referring to. I've tried to re-duplicate it on my browser (IE and FF 1.5) but to no avail I can't seem to see this issue. I know that having VE on high resolution computers causes some functions to fail (such as pixeltolatlong) but it seems to work okay for me on 1280 x 1024 resolution. ...Show All
Windows Forms Thank you!!
Dear all, Me and my friend are new to visual studio 2005 express edition. We are trying to build a simple desktop database application. Now both of us have different connectionString to the database in our computers (which is quite obvious).At first, we used hardcoded connection strings in our apps. So it was a huge task to replace all those lines as we shifted our computers to share our works. For compatibality, we were trying to use the app.config file for the connectionString, which looks like : (in my computer) < xml version = " 1.0 " encoding = " utf-8 " > < configuration > < configSections > </ configSections > < connectionStrings > < add name = & ...Show All
SQL Server Looking for sqlrun_tools.msi
Today my computer started doing something strange when trying to compile a setup&deployment project. This project doesn't contain anything related to sql server whatsoever. When i compile, it pops up a windows installer dialog that starts doing something. Eventually it asks me for my Sql Server 2005 Tools disc, specifically looking for sqlrun_tools.msi. I tried putting in the disc that i'm pretty sure it was installed from (my MSDN disc) but it told me that the sqlrun_tools.msi on that disc wasn't the right one. I have no idea why its asking me for this at this time, nor do i know to do to get it to stop. Thanks in advance for any help. I am having the same problem. Whenever I try and b ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How do I load a 3d mesh (.x file)?
How do I load a .x mesh into my scene The space game seems to use its own format (which it names .swm), and there's nothing in the help. I've been scanning through through the classes in the Framework namespace, but I can't see anything obvious! Is .x the recommended format for objects like this (If not, I change my question to be about the recommended format :D) If anyone knows anywhere that has some nice .x meshes I can play with, that'd be cool too. The only one I have lying around is a chair, and that's going to look a bit funny running around my game :D There's a human mesh in the DirectX SDK content. As for loading it, there some content pipeline stuff on the XNA Team Blog you might want to ...Show All
SQL Server Reporting Services setup and problems
I have posted this to the general SQL Server group but without any response. I have also searched all of the forums and have not found an answer. For some reason all of a sudden, my Reporting Services is failing with this message when trying to connect: TITLE: Connect to Server ------------------------------ Cannot connect to UKCINT\UKCAZOSQL. ------------------------------ ADDITIONAL INFORMATION: Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'. The request failed with the error message: -- <html> <head> <title> SQL Server Reporting Services </title><meta name="Generator" content="Microsoft SQL Server Reporting Services 9.00.1399.00" /&g ...Show All
Visual C# A way to make easy the ACTIVE-X REGISTRATION for Excel Automation Add-Ins ? (ADD-INS with NO REGISTRY RIGHTS IS IT POSSIBLE?!?!)
31 - OCT - 2006. Dear Friends from Microsoft, I have an ActiveX function (sample: TESTFUNCTION in simpleclass). If I compile the code below in visual studio 2005, and select REGISTER TO COM. The class will be visible in Excel 2003 and I will be able to use the class without further problems. BUT, when I don't have access to the registry (ie. not with Administrator rights) I cannot use the Excel Automation Add-in, because the class is not registered in the registry. Is there a way that I could use this "AUTOMATION ADD-IN" (that is nothing more then an ACTIVE-X OBJECT) without the need of being administrator I just wanted to used like in the past with the XLL, just open and it will run, wi ...Show All
SQL Server Management Console Configuration
In using Windows Authentication via the Management Console to connect to a database, my user name listed is in the following format <machine name>\<user name>. I would like to change this setting to <domain name>\<user name>. Is there any setting files or registry settings for the Management Console that will allow me to modify this Hi, if you log on with a domain account this will automatically change. If you are logged in with a local account and don’t want to logon with a domain account, or your comouter is not part of the domain you can use the stored credentials cache in Windows to logon using another account: Control Panel > User Accounts > Select the user > manage my ...Show All
.NET Development how to get bounced email information
i am writing a window service that will send emails and will record there status... i.e. which email is bounced and which is delivered...etc... how can i do this........ i know how to send email by system.web.mail in 1.1 or system.net.mail in 2.0 but how to get these bounced info etc..... i don't kow please help me..... There are no mail retreival APIs in the .Net Framework today (ie. no POP3, IMAP, etc implementations). If you want to programatically retreival mail (ex. bounce notification) you will need to implement your own mail retreival or use one of the many that are out there on the web Delivery notifications can be set via property on the SmtpClient class. ...Show All
Smart Device Development How to build a CE 6.0 Emulator image for VS2005?
Hello I have been trying to build a custom Windows CE 6.0 emulator image & SDK that will work with VS2005, just like the emulators that ship with VS2005 work. I have been able to connect to an image running in platform builder by following the steps in the Windows Embedded CE 6.0Writing MFC/Native Applications Virtual Lab, but have been unable to get a standalone image booting and connected. I removed KITL so the device boots, but have been unable to get VS2005 to connect to the emulator image using either TCP or DMA. I wrote a little app to startup the conmanclient2 and cmaccept applications, so these utilities are running Just wondering if anybody has tried to build an image like this, or if they have any ideas what to do to get this ...Show All
Visual Studio Visual Studio Add-in Interaction
Hi, i am a Visual Studio (2005) newbie. I have a question regarding to the add-in interaction: I developed two Addins (Addin A & Addin B) which are added to the tools menu of Visual Studio with the standard smiley. If i start Addin A it appears a message box with 'I am Addin A!". If i start Addin B it appears a new message box with 'And i am Addin B'. Now Addin A shall invoke Addin B so that the message box of B is shown with out clicking of the appropriate icon. How can i realise that scenario Which mechanisms are provided by Visual Studio therefore Thanks a lot Thomas Hi Thomas, Although I have used those Java IDEs, I am not familiar with their extension mechanisms. VS provides high-level ex ...Show All
