iowa242943's Q&A profile
Visual C# how to known whether printer is connected
how to known whether printer is connected ,is it on or off,is it ready to print . thanks Hi, swathi Here is the solution: http://www.codeproject.com/csharp/printeroffline.asp If you've further problem, pls feel free to let us know. Thank you ...Show All
Visual Studio 2008 (Pre-release) XAML produces a stack overflow
The following XAML snippet produces a stack overflow when you select the combo box item in the menu. XAMLPad crashes pretty badly. I am using the latest CTP <Page xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x=" http://schemas.microsoft.com/winfx/2006/xaml " > <Grid> <Grid.Resources> <ControlTemplate TargetType="{x:Type HeaderedContentControl}" x:Key="a1"> <Menu > <MenuItem Header="{TemplateBinding Header}" > <ContentPresenter/> </MenuItem> </Menu> </ControlTemplate> <ControlTemplate TargetType="{x:Type GroupBox}" x:Key="a2" ...Show All
Visual C++ Class View is not updated automatically
I've created a plain C++ win32 project with Visual Studio 2005. And as I add new functions or variables, the class view doesn't get updated automatically. Only way to get class view populated with newly added functions or variables is to restart VS. But every thing works fine with C# projects. ONLY with C++ projects. I've tried to reproduce this on other machines at my work and on my laptop, but I have failed to reproduce the same problems. I am seeing this problem only on my pc at home. I've also tried re-installing XP SP2 and VS2005 with nothing else installed to see if some other program is causing this to happen. But still same problems with the class view. Also, I am seeing the same problem on Windows Vista RC2. Could ...Show All
Windows Forms DateTimePicker (.NET 2 C#): Programmatically moving from month to day selection
Hi I have a DateTimePicker control which shows date in short dateTime format. When user enter a month I want automatically to move selection to day part (by default user should click right arrow to move to day part) Is there a way to achieve this You need to clearly define "enter a month". Typing a digit or the up or down arrow key is not usually enough. Only typing two digits (like "01" for January, "10" for October) is explicit. ...Show All
SQL Server Announcing a GUI tool for configuring dialog security and routing
Hi, I am not able to get “Service Broker” under my database Can you tell me what is wrong with my installation Regards, If you are using SQL Server Management Studio Express, it does not have the functionality to view or create Service Broker objects. The paid version of the same lets you view Service Broker objects but not create them. Unfortunately, the only way to create, alter and use Service Broker objects is via T-SQL commands. Please look at the Service Broker section of Books Online, the SQL Server online documentation on MSDN. ...Show All
SQL Server Association Scenario
Hi, I have a product basket scenario in where I have to recommend contracts to a customer based on the product and the quantity he/she buys. Product Quantity is an important factor which administers the user in the purchase of a particular contract I have the following tables with me. Customer product transaction table, Customer Contract transaction table but there is no direct relationship between contract and product in the database. The only way the two can be linked is through the customer. If I create a mining structure with Customer-Product information as the nested table and Customer-Contract information as the nested table with customer being the link between the two, the model is showing some irreverent contrac ...Show All
SQL Server Error 15401 Adding Domain Group to SQL Server
I have tried rebooting the system, I have ran the script to look for duplicate sids and am still having the issue when trying to add a domain group to SQL. I get the Error 15401: Windows NT user or group'mi\Trust Legal' not found. Check the name again. Running SQL 2000 Std, with SP3a, and the collation is set to SQL_Latin1_General_CP850_BIN, which makes this instance case sensitive, and the group name is spelt right and am following the case sensitivity of the name as well. Most likely the cause of such failure is because the SQL Server cannot gather the information for this account from the domain controller. Please make sure that the service account used to run SQL Server has permission to query the domain controller ( ...Show All
Windows Forms icons on command buttons
Hello! Can anyone please explain to me how can I assign icons to command buttons, in order to make them look more intuitive When you want to use an Icon as an Image, you create a new instance of the Icon object, passing the path to the icon as an argument, and then call the ToBitmap() method of the Icon to get an image. eg. Dim ico As New Icon("c:\test.ico") CommandButton1.Image = ico.ToBitmap HTH ...Show All
SQL Server Spurious Errors With Package Execution on Local Machine
I am having strange errors with a package when running locally that has not been an issue before. The main symtom is that several Data Flow Tasks are either not inserting records on the destination or are only inserting 1 single record before the package errors with the error shown below. Strangely, the debugger will show X # of records from source and destination, but either no records are actually written or, again, in many cases, only 1 single record is written. This is very strange. App, System and Security logs yield no indication of security or other errors. All I have to go on is the above anomolies and the error message provided below. Below is the error message, can someone help me decrypt it Many thanks, Rick ...Show All
Visual C++ C++/CLI C++ Interop and FxCop/Code-Analysis warning CA2122
I've purposely been ignoring a CA2122 warning in some C++ interop code I've been working on for quite some time. I've just recently had the cycles to investigate the warning The warning message is as follows Warning CA2122 : Microsoft.Security : MyClass.Method():Void calls into Marshal.GetExceptionPointers():IntPtr which has a LinkDemand. By making this call, Marshal.GetExceptionPointers():IntPtr is indirectly exposed to user code. Review the following call stack that might expose a way to circumvent security protection: ->System.Runtime.InteropServices.Marshal.GetExceptionPointers : IntPtr ->MyClass.Method : Void ... MyClass is a managed class where Method calls a native static (for readable illustration purp ...Show All
SQL Server Oracle 7 query
Within a VS 2003 BI project, I can create a parmeterized query against an Oracle 7 database by using a for the parameter(s). Example: SELECT LTrim(RTrim(SWO_ISS.REF)) ACCT, CUS_LOC.NAME CUSTOMER, SWO_ISS.TRAN_DATE, SWO_ISS.ITEM, ITM_DESC.ITEM_DESCRIPTION, SWO_ISS.QTY, LSTPRC.AMT FROM MYDB.SWO_ISS, MYDB.CUS_LOC, MYDB.ITM_DESC, (SELECT LP.ITEM, LP.REVISION, LP.AMT FROM MYDB.LIST_PRC LP WHERE LP.EFFEND > SYSDATE) LSTPRC WHERE SWO_ISS.REF = CUS_LOC.CUS_LOC(+) AND SWO_ISS.COMP_ITEM = ITM_DESC.ITEM(+) AND SWO_ISS.COMP_ITEM = LSTPRC.ITEM(+) AND SWO_ISS.COMP_REV = LSTPRC.REVISION(+) AND SWO_ISS.REF = AND SWO_ISS.TRAN_DATE >= TO_DATE( ,'MM/DD/YYYY') AND SWO_ISS.TRAN_DATE <= TO_DATE( ,'MM/DD/YYYY') Unfortunately, as soon as the dataset is ...Show All
SQL Server How to send a report on data change?
I have this report that uses one table. At some random times during the night this table will be updated. Is there a way to trigger the email report whenever the table changes its data IvanOrdonez wrote: Arent data driven subscriptions triggered by a scheduled routine at a certain time They in fact are and you will have to do some "fancy" things to get it work... But first you will have to offer some more informations: Is there a specific event when your table gets changed should the report be send EVERY time on change or only once per day Is there a SSIS involved in the change of the table Or another "application" Ivan, you probably could log the changes in a table and cross your ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Xbox Live Arcade
Do any of you reckon that it's possible to make a game using the XNA express framework, and then get it published (by MS or otherwise). I think, looking at the standard of games on Xbox Live Arcade, that I can make a much better game than anything there. johnnyXNA wrote: What's to stop "underground" gaming or is it "indie" gaming from having some really great titles and distribute them themselves Is that against the EULA Probably nothing, and you may be able to do this to some extent. It's just that if you want your game on the Marketplace with a MS Point pricetag you'll need to go through the whole developer process. I haven't seen MS comment on setting up a paypal website where people ca ...Show All
Windows Forms Setup project & Shortcut to startup folder
Hello, I create Winform application, and I want to launch it when Windows Startup. I create a Setup Project witch install my application into Program File folder, and create shortcut into User's Program Menu. But how can I create shortcut into Startup foler Thanks Damien, Hi Damien, we hope to help you here. If you are using the setup and deployment project in the full Visual Studio then follow these steps. in the setup project, right click on it in solution explorer then go to view > File System next, you will see a Window in the middle of the screen with 2 window panes. be sure to include the output project in the "Application Folder" of this treeview (click on it to select it then in the right ...Show All
Visual C++ Automatically adding header files to a project
Is there a command to automatically scan C/C++ files for #include directives and add the relevant files to the project as dependencies. I'm sure this used to be in previous versions but can't find it anywhere. Thanks very much for the reply but I dont quite understand it. There used to be an option somewhere in Visual Studio that you could select which would examine all your source files for #include directives and then add automatically under the Header Files list in Solution Explorer the header files that it found. This is the option I cannot now find. ...Show All
