JayMo's Q&A profile
.NET Development updating records
I am trying to update a record using one of samples provided and I always have the following error: "Reference to a non-shared member requires an object reference" The code I use is as follows: Dim totalsRow As mdstats1DataSet.TotalsRow totalsRow = mdstats1DataSet.Totals.FindByRecordID(1) totalsRow.smtpin = smtpin totalsRow.smtpout = smtpout The error is on the "mdstats1DataSet.Totals" Can anyon ...Show All
Visual Studio Tools for Office Revisions in Bookmarks
When I access a Microsoft.Office.Tools.Word.Bookmark object in my code I was hoping to use the Revisions property to get the revisions within only that bookmark. I seem to get all of the Revisions of the entire document. Is this the way it is supposed to work Bill Microsoft.Office.Tools.Word. Bookmark book; IEnumerator books = Controls.GetEnumerator(); while (books.MoveNext()) { if ( books. ...Show All
Smart Device Development Adding a new target device to the VS2005 IDE?
How can I add a new target device (a custom WinCE Emulator OS) that I built with Platform Builder to the target device dropdown in visual studio In short, I built a Win CE OS using Platform Builder. Now I want to debug an application on this device (it's an emulator build) using the VS 2005 IDE in which I built the program. I can't figure out how to do this 1. Build SDK in PB. 2. Install SDK. 3. Fo ...Show All
.NET Development about sending mail with user auth.
I send mail using the following code. some server is all right. but some server will cause an error. I think there is some difference from smtp servers with user auth. any one know it public static void SendSMTPEMail( string strSmtpServer, string strFrom, string strFromPass, string strto, string strSubject, string strBody) ... { System.Net.Mail.SmtpClient client = ...Show All
Windows Forms Does anyone know where I can get the last stable build of the Terrarium Setup for v1.0 that worked?
Does anyone know where I can get the last stable build of the Terrarium Setup for v1.0 that worked I wanted to start building in my own sandboxes locally but obviously with the overflow error thats a little impossible. If some one has the  ...Show All
Windows Forms DataGridView events master detail
I have 3 nested DataGridViews (Parent, child, grandchild). Which event in the grandchild(most detailed) DataGridView should be used to capture when it's data has changed Since it's bound to the child, which is bound to the Parent, it's data changes when either of these other two grid's change. I've tried the grandchild's DataBindingComplete and SelectionChanged events but these sometimes fire more than once when clicking ...Show All
Visual C# How to retrieve the key value of a listitem in C#?
While adding a listitem to any listview, we can pass-on "key" value, but how to retrieve this key value back I could not find this, plz. anyone help me out. OK, I finally found it. When you add a ListViewItem with this particular .Add overload: this.MyListView.Items.Add(Key, Text, 0); The "key" value corresponds to the Name property of the ListViewItem, so you could get the corresponding key in the SelectedIndexChanged ...Show All
Visual Basic SQL Table "Default Value'
I have a program that connect to a SQL2000 DB, when I create the datasource, the table relationships are created (from SQL diagram) but the default field values that are defined in SQL are not pulled into VB. Is this a bug or am I missing something. Thanks David Davis I think 'default' in this instance means something different than what you expect. The default value is simply the value that is used wh ...Show All
Software Development for Windows Vista RuleSet Editor
The readme for the RuleSet Editor says you're looking for comments. Well, here's what I'd like to see: Visual Studio integration (duh!) References and IntelliSense like the other Visual Studio editors Storing the rules in XML or a database Ability to search for rules and organize them Add to the Rule class an ActiveCondition property of type RuleCondition. If you set it, then getting the Active property evaluates that condition. If you set ...Show All
Visual Basic Customize Print Dialog Box (VB.NET)
I want to add a control to Print Dialog Box to let user select part of the image in a pictureBox to print. Is it possible to do that in VB.NET Thanks. No, you can't. At least not without re-writing the dialog box from scratch. The Print Dialog is a standard dialog from the Common Controls that ship with Windows. ...Show All
SQL Server How to optimize data import with huge volumes and joins across data sources not all SQL Server based?
I need to periodically import a (HUGE) table of data from an external data source (not SQL Server) into SQL Server, with the following scenarios: Some of the records in the external data source may not exist in SQL. Some of the records in the external data source may have a different value at different imports, but this records are identified univocally by the same primary key in the external datasource and in SQL Server. Some of the records i ...Show All
Visual C# How can you make your software expire after certain Days ??
Hello All, I have an application which I want to expire after the trial period and only works after you eneter the key. Any suggestions, piece of code which I can use to secure my application. Thanks, Harsimrat Well, you need to store the date the software was installed, that date needs to stay if someone does an uninstall, and then you may want to write some code that detects if users have ...Show All
Windows Forms ComboBox Changes in .NET 2.0
Hello Everybody i am using WinApp using .NET 2.0. for ComboBox there in no ListItem in .NET 2.0. I want to add Name, values to ComboBoxes manually, How to do this. any suggestions are appricated Thanks for response, but i want to add name & value through ListItem Object but there is no ListItem in .NET 2.0. is there any other ...Show All
Visual Basic VB Futures, VB 2005 Essential Content, Other Content From PDC '05
Hi Forum Readers - I just wanted to give you a heads up about some of the pretty exciting announcements and content coming out of PDC '05 this week, so you can share in the fun. I discuss the overall activities and Essential Content available from PDC here: http://blogs.msdn.com/pauly/archive/2005/09/12/464207.aspx I discuss the announcements of LINQ and next generation Visual Basic features here: http://blogs.msdn.com/pauly/archive/200 ...Show All
.NET Development Visual Studio 2005 + Access, where to start?
Hello, I have recently decided to use an Access file to store things my application may need to track, in the event that the SQL server it works with fails. I have created a template Access database, with two tables, and added it into my project (through add->existing item). In doing so, VS 2005 has helpfully auto-generated some code which I imagine simplifies working with my tables. I can see that it has created a mydbdataset.xsd, which bran ...Show All
