Tony Spaulding's Q&A profile
Windows Forms Validate (Primary Key Constrain) for DataGridView
Dear All, I have a problem when I want to active check validate primary key value in DataGridView. EX : I have a DataTable with ID is Primary Key Column. When I stay at Add Mode, I deliberate to input duplicate value or wrong ID's value and then i move previous row, this new row is remove (or delete). This thing is similar when i stay at Edit Mode, it returns the origrinal value. My target is active check validate such as : show my message "Duplicate Value" or "This value is not valid". If possible, give me sample project (VS.NET 2005) to solve my problem. Thanks for your cooperation. We have two levels ...Show All
Visual Studio Terminology questions
%() is referred to as what The metadata reference operator/syntax or batching operator/syntax @() would be an item list reference operator/syntax And $() would be the property reference operator/syntax What's the name for this @(Compile, ', ') Separator transform It's also useful to make the distinction between vector and scalar expressions. For example, a vector expression like this <Exec Command="cl.exe @(CppCompile->'%(Filename)')"/> will run cl once passing all the files in a list, but a scalar expression like this <Exec Command="cl.exe %(CppCompile.File ...Show All
SQL Server XML DataSource / Designer Dataset definition failure
hi all, i'm using a webservice as datasource for my report which returns a dataset. i use the following query to get my data: <Query> <Method Namespace=" http://tempuri.org/ " Name="GetInvoiceData"/> <SoapAction>http://tempuri.org/GetInvoiceData</SoapAction> <ElementPath IgnoreNamespaces="true">GetInvoiceDataResponse/GetInvoiceDataResult/diffgram/Invoice/invPosition</ElementPath> </Query> i use the ElementPath element to get the correct datatable of my resultset. and i have a parameter(invID) to get a specific invoice i want. everything works fine when i run this ...Show All
Windows Forms Graphics question
Ok my problem is with Graphics class //------------------------------------------------------------------------------------------------ private void Form1_Paint(object sender, PaintEventArgs e) { Graphics g = e.Graphics; g.DrawLine(new Pen(Color.Black), new Point(30, 30), new Point(30, 100)); g.Dispose(); } you see i declare Graphics g=e.Graphics where 'e' is the PaintEventArgs and then draw a line //---------------------------------------------------------------------------------------------- private void button1_Click_1(object sender, EventArgs e) { Graphics g = CreateGraphics(); g.DrawLine ...Show All
Smart Device Development Search file in all folders
Hi, How to search a particular file (for example .doc) in all the folders in ppc using compact framework. Thank in advance. This should help: http://support.microsoft.com/default.aspx scid=kb;en-us;303974 ...Show All
Visual Studio Team System Where can a non-MSDN subscriber get TFS WorkGroup?
Based on the below info and comparison's on the VS Team site, the workgroup edition is included with all Team Edition VS's. We just purchased a copy of Suite, Developer and Tester. None of the CD's contain it. (obviously because the final was just released) The question now though, is how do we obtain it since we are not MSDN Premium subscribers and that is the only place MS has it to download from "Small Team If you are working on your own, or as part of a small team (5-person or less), than Team Foundation Server Workgroup Edition may be the right choice for you. Team Foundation Server Workgroup Edition offers all of the collabo ...Show All
SQL Server Dynamic ad-hoc reports
Is there a way to pass parameters into the Report Builder so that the available fields of an entity can vary depending on a parameter value (for instance, a group or user id) We have a situation where each group of users can have a variable set of custom properties to report on and we'd like to let them access these custom properties through the Report Builder. Any suggestions on how to go about it Thanks. This is done thru model item security. You can define access permissions to model items (entities, attributes, etc) based on user identity. You then create a report that includes an entity and al ...Show All
Architecture Architecture Meetings
I last joined the Patterns and Practices summit in Redmond , and I think that is a great meeting for software architects to meet other architects and to learn some new patterns and best practices from Microsoft. Patterns is a must know for a software architect. Does anybody know other meetings and has an opinion about it, I think that there are a few which you must join, one of them is the patterns summit, the other is, I think [not going], the Software Architecture Summit in San Francisco and don’t forget the local meetings from the IASA chapters. But are there more ...Show All
Visual Studio ToolbarZoom in reports
Hi, I need to set the ToolbarZoom to "Page Width" when the report displays. Does anyone know how to do this either programatically or via style sheet settings Thanks, Mike ...Show All
Smart Device Development c# compact framework WiFi connection
Hi All, I want from my c# pda program want to connect to a different wifi connection. Is it possible and if so how can i do it from a c# program I would appreciate any help and/or sample code. Thanks a lot. Regards Trushar OpenNetf.org offers classes for that as well. ...Show All
SQL Server Moving SQL 7 DB to different machine SQL2000
have a SQL 7 db with stored procedures and tables and have to move it to another box with SQL2000, what is the cleanest way to do this backup and restore 2000 should detect that the mdf and ldf belong to older version of MSSQL and will ask if you want to convert to newer version code. BEAWARE******But there are chances that you might see some change in functionality****** ...Show All
Windows Forms RichTextBox programmatic selection does not highlight
I have a RichTextBox with multiline text. I simply set the .SelectionStart and .SelectionLength in my program but the selected text does not highlight in the control. If I use the mouse to select the same text, it does highlight. Anybody have any ideas why the programmatic selected text is not being highlighted you need to call the focus method of the RichTextBox as well as the 2 selection lines. Cathal ...Show All
Visual Studio 2008 (Pre-release) Getting Started sample not getting service.exe
Hi, Well, I have been trying to get this first sample "Getting Started" going for a very very long time, and so far, I've been pulling my hair out just trying to figure out what is going on. My question is, when i compile the "Getting Started sample" which is from WIndows SDK, it compiles fine, and I find client.exe but I can not find service.exe anywhere. Neither under Getting Started/service/bin folder which produces service.dll file and service.pdb nor under wwwroot/servicemodelsamples/bin directory. I got the console based sample going but I really want this IIS based samples to work as well. Any help woul ...Show All
Smart Device Development which data store solution in my application?
I have a oracle database , and I will use some data (ten tables , every table contain 300 rows ) in it when I design my application for Pocket PC with .netcf . I can't decide which solution : 1) client (PPC device): xml server(PC ): oracle 2) client (PPC device): sql server mobile 5.0 server (PC): sql server 2005 replication + oracle Can you give me a suggestion thank you . http://crlab.com/oranet/ That would be the first link if you search for "Compact Framework Oracle Client" in Google. ...Show All
Windows Forms Merging ContextMenuStrip to ToolStripMenuItem
I have a context menu which defines a basic set of items(add, remove, properties). I would like to add these items to a ToolStripMenuItem. Using the MainMenu and ContextMenu from .Net 2003 this was very simple to do using the following code: MainMenu1.MenuItems(1).MergeMenu(ContextMenu1) I have tried the ToolStripManager.Merge function but the incoming types are different. There is very little documentation still for Whidbey, as expected since it is still in beta. Can anyone help me out Am I just goin at this with the wrong approach now, has the architecture changed radically You can merge on opening and re ...Show All
