adam99's Q&A profile
Windows Forms dataview count doesn't shows properly.
Hi I used dataview for a subset of rows , from a datatable. In that subset, there will be zero quantity and non zero quantity rows . and there may situation to move quantity value from one row to another row.(may be quantity can be moved from an existing row to a newly added row). after that non zero quantity rows has to be deleted. the dataview.item(i).delete works fine for, if I have more than two rows(either non zero or zero). The Problem is if I have Only one zero quantity row and another non zero quantity(newly created. quantity is transferred from that zero quantity to this new row). If I made attempt to delete that zero quantity rows. it deletes both row.(ie., the dataview.count shows 0 inste ...Show All
.NET Development execute application console
Hi, I've an app console compiled with clr 2.0.50727. This program calls a webservice. When I add the web reference VS.Net 2005 insert in my app.config this section : <configSections> <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" > <section name="CMR.Process.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> </sectionGroup> </configSections> <appSettings> <add key="CMR.Process.WSCmr.cmr" ...Show All
SQL Server Automatically open a default project on application launch
I was wondering if there was a way to set a default project to open in Microsoft SQL Server 2005 when the application launches. Perhaps there's a certain registry key I could edit The best place to ask that question is in the following forum " SQL Server Tools General " Thanks Michelle ...Show All
Visual Studio Express Editions check if process is running
Hi I Need my program to check if a procesus is running (to make it run if not) but i have already tried some stuff , i cant really find it if someone can help me Marc showed you a way to make sure only one copy of your own program is running. I assume you're looking for some other program. Check this thread for an idea how to use System.Diagnostics.Process.GetProcesses() ...Show All
Visual Basic Visual Studio .NET 2003
Hello: Where is the best place to ask a question, or report a possible bug, with Visual Studio .NET 2003. My probelm is with the "Propert Pages" of a project in a solution. Thanks. to post any bugs, I think you should post to here: http://connect.microsoft.com having said that, tried applying SP1 for VS2003 Are you able to tell us more about the problem you are having ...Show All
Windows Forms Visual Studio 2005 syntax
Can anyone please tell me how to keep a count of a certain number of times a number appears on the game that I am desgning I have three text boxes which generate 2 different numbers when the SPIN button is pressed, i know have a lable which is supposed to display the number of times the number 7 appears. Please help, i am desperate, I really need this piece of code. Thanks in advance Meggy Thank You EVER SO MUCH FOR YOUR HELP, I APPRECIATED IT. YOU SAVED MY LIFE. the code actually worked by placing the right name of variable I was using from the beggining, I have also set he counter to reset whenever the player presses the 'Restart' button. Thanks again Meggy ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DirectInput SHIFT+INSERT
hi I use DirectInput for keyboard, receiving data through GetDeviceState, why when I press right shift, and then insert. the right shift acts like it is not being pressed, while it is.. (left shift works ok though) In direct Input the Right Shift and the Left Shift is not the same key... DIK_RSHIFT DIK_LSHIFT http://www.paradoxalpress.com/Docs/DX9_out/Keyboard_Device.htm ...Show All
.NET Development ANNOUNCING: XML Notepad 2007
Upgrade your XML Notpead 2006 from here: XML Notepad 2007 New features included in this version: Added keyboard accelerators for find again (F3) and reverse find (SHIFT+F3). Added support for loading IXmlBuilder and IXmlEditor implementations from different assemblies using new vs:assembly attribute. Made source code localizable by moving all error messages and dialog strings to .resx files. Added a default XSL transform. New icons, a play on the Vista "Notepad" icons. Bug Fixes included in this version: Fixed install on Windows Vista machines using Windows Installer XML 3.0. Performance of expand node when validating. Fixed bug where changed schemas and transforms were not being re-loaded. ...Show All
Visual Basic How can I password protect my source code?
Hello all. I am using the Visual Basic 2005 Express Edition. I would like to enquire whether it is possible to password protect my source code such that it requires a password to open each time I want to view it (Just like password protecting documents and spreadsheets in Word and Excel.) I can't find the option under the Options menu. Thanks in advance. Obfuscation handles encrytion of the executable...to password protect your source code take a look at Visual Source Safe: http://msdn2.microsoft.com/en-us/vstudio/aa718670.aspx ...Show All
Software Development for Windows Vista Binding to base activity properties in XOML only workflow in rehosted designer.
I have a compiled base workflow type that derives from SequentialWorkflowActivity that has a few dependency properties. If I create a XOML only workflow using this base type the base type's properties appear in the property grid of my rehosted designer when I have the workflow selected, as expected, but they never appear in the property bind dialog! I have ammended the Designer Rehosting sample to cater for XOML only workflows and must have missed a step or two. Any pointers gratefully received! (All assemblies are loaded into the loader's TypeProvider). Here is the BaseWorkflow and then the XOML workflow. namespace PublisherWorkflowLibrary { public partial class BaseWorkflow : SequentialWorkflowActivity { public st ...Show All
.NET Development got a form, got a database, the two don't talk
Hi everyone~ Sorry for another basic “add to a database” question, I tried to follow some other examples, but have had no luck. I am using VB.net 2005 express and MS Access 2000. I am attempting to create a form that can add info and delete info from an Access database. I have created the form that displays a datagrid. I have made a connection to a simple database (one table, two fields). I have added a button to the bottom of the form, “add client path”. This button launches two input boxes (one at a time obviously) and feeds two variables ClientName and ClientPath. By connecting the database, VB.net has written a little bit of code, and I am sure it is telling me what I need to know to finish th ...Show All
Visual Studio Tools for Office Excel application type problem
Hi, I'm having a problem with a Shared Addin created for Word and Excel. If I run the addin in Word all works fine but if I run it in Excel I get several errors. One thing that I could appraciatte if I ask for the application object in the OnConnection method I get the following: Word: Microsoft.Office.Interop.Word.ApplicationClass Excel: ComObject ---> It's strange for me... I expect to obtain a type Microsoft.Office.Interop.Excel.ApplicationClass Anybody could help me with this Sorry If my question is off-topic, Regards, Juan This is not really the best forum for this question. This question relates to non-VSTO COM add-ins, and you'll get a better response if you repost here: http://msdn.micr ...Show All
Visual Studio 2008 (Pre-release) 4 questions about WPF
Hi, I actually test WPF RC1: I use a FlowDocumentReader. This control have not "FirstPage()" method (DocumentViewerBase has it). So, how can I go to first page with a FlowDocumentReader control Thanks very much. Cyber Sinh Get page gets the paginated page - it doesnt bring the page into focus. I thought you wanted to obtain the page. Bringintoview should work... However since you are adding to a single para it would be necessary to bring the first inline into view. Also, there is no delay between adding the lines and calling the first line into focus.. as such you could you a delegate as below adn that should work this .application.Dispatcher.BeginInvoke( DispatcherPriority . ...Show All
SQL Server Multiple column update statement
Hi, I'm new to SQL Server but not new to SQL because I used it with Oracle. I wonder if it is possible to do this kind of statement on SQL Server: UPDATE TableX M SET (M.column1, M.column2, M.column3)= (SELECT T.column1, T.column2, G.column3) FROM Table_Y T, Table_Z G WHERE join condition)) WHERE EXISTS (join condition for TableX) Basically, I'd like to update multiple columns in one statement but for some reason I can not get it to work. What would be the equivalent on SQL Server Thanks for the help, Laszlo M Hi Laszlo, UPDATE TableX SET column1 = T.column1, column2 = T.column2, column3 = G.column3 FROM TableX M INNER JOIN (TableY T INNER JOIN TableZ G ON T.column4 = G.column1) ON M.c ...Show All
Visual C++ How can a C++/CLI library catch unmanaged C++ exceptions from an unmanaged library without breaking the C++ stack unwinding?
I have a static C++ library, built with VS2005, that is used by multiple projects. The library throws C++ exceptions (derived from std::exception) from its public interface. One project that uses the static C++ library is a .NET class library that is written using C++/CLI. What I have found is that when the .NET class library calls into the unmanaged C++ library and an exception is thrown from within this library, then the application immediately jumps to the .NET class library catch clause without calling unmanaged C++ destructors during stack unwinding. This of course breaks the RAII idiom and is creating a large problem for me. My questions are: Is this expected What is the best solution to work around the problem Many thanks f ...Show All
