Software Development Network Logo
  • Visual C#
  • Microsoft ISV
  • .NET Development
  • Game Technologies
  • Visual Basic
  • Audio and Video
  • IE Development
  • SharePoint Products
  • Windows Vista
  • Visual FoxPro
  • Windows Forms
  • Visual Studio
  • SQL Server
  • Smart Devicet
  • VS Team System

Software Development Network >> Zia Khan's Q&A profile

Zia Khan

Member List

Bobby Fu
meighlough
Ludo-R
Harish Sethi
pangitko79
Dark Pontiac
progames25
Dan Imbrogno
Harry_Leboeuf
Julio Diaz C.
N0v3m83r
Ultrawhack
JerryCic
Vince206
cdemez
riga66
Bill Thoreson
Mitesh Shah923
psc161
narend
Only Title

Zia Khan's Q&A profile

  • Visual Studio Team System About [CA1062]ValidateArgumentsOfPublicMethods

    Hi, the rule of CA1062,it only can check methods of public, i wanna check not visible methods,how can i do it Thank you very much. ----------------------------------- Validate arguments of public methods TypeName: ValidateArgumentsOfPublicMethods CheckId: CA1062 Category: Microsoft.Design Message Level: Error Certainty: 95% Breaking Change: NonBreaking Cause: An externally visible method does not check whether one of its reference arguments is null Are you saying that you want to cause this rule to check not visible methods Unfortunately, it's not possible to change this. Is there any reason you want to do this If this rule did ...Show All

  • Audio and Video Development Any method for MF PVP application fail gracefully if video driver is not PVP signed?

    I am working on an application that runs protected playback with Media Foundation. I've encountered a problem that with some graphics cards, an error dialog box pops up from another process saying " Bad Image: X is either not designed to run on Windows or it contains an error". After repeatedly pressing OK for the same dialog poping up many times, I can see the application hits a debug assertion saying that  ESP is not properly restored. I've read about the following previous thread in this forum and know that this symptom happens because video driver is unsigned and mfpmp.exe failed. "MF_ProtectedPlayback Sample doesn't work for Video on Vista Beta 2: Thread Start ...Show All

  • SQL Server Dynamic XSD Schema Location For XML Source

    I want to be able to programmatically set the schema location for an XML source. I first thought it would be a simple task using expressions and variables but it doesn't appear to allow anything in the way of setting it at runtime. Is this possible Thanks Jamie... just wanted to chime in and say this was really helpful - I would have never thought of looking on the properties of the data flow. ...Show All

  • Visual C++ Writing MMC Snapin in Visual C++ 2005

    Hello, I'm trying to write a MMC Snap-in extension using Visual C++ 2005 Beta 1. But different from Visual C++ 6.0, I couldn't find ATL object of MMC Snapin. It's not supported any more Where is the MMC Snap-in wizard then Any suggestions how shall I do that Thanks! Thanks for your reply Brandon. Do you know what microsoft plans for MMC's and the .NET framework For example will there be a .NET assembly (at some point) to allow us to create MMC snapins using .NET be it c#, c++ or VB As it feels like you guys are not endorsing the use of MMC snapins as you have made everything else a lot easier to code like DCOM but creating MMC's are still very "old school". Do you know of any functionality changes to ...Show All

  • Visual C++ C++ Win32 API - Simple Label Creation

    Hi, i am new here, and i am trying to learn to program in the win32 api in c++. I have built a basic program, but was trying to familiarise myself with some common aspects. I was hoping someone could show me the code to create a basic label (static control). I hope this makes sense to you. I don't want it to do anything, this is a bit that i have already: //input box create hEdit = CreateWindowEx(WS_EX_CLIENTEDGE, "EDIT", "", WS_CHILD | WS_VISIBLE | ES_MULTILINE | ES_AUTOVSCROLL | ES_AUTOHSCROLL, 20, 50, 200, 30, hwnd, (HMENU)IDC_MAIN_INPU, GetModuleHandle(NULL), NULL); //--- So i basically want something like that, but just a label with a transparent background. How do i do this Please d ...Show All

  • Visual C# Print to printer

    I have an application that I am writing that needs to be installed as a printer. Basically when you do a File -> Print, you should get the printer dialog, this application needs to be in there.. That way I can capture the document and do what I need to do.. the capture the document and do what I need to do part is fine.. But how do I get an application to install as a printer Any help would be great.. thanks BlackIce has developed a great Printer Driver API! You should take a look, The Printer Driver API . ...Show All

  • Visual Studio 2008 (Pre-release) Any way to disable optimistic concurrency in LINQ to SQL?

    Is it possible to disable optimistic concurrency checking completely, at a *table* level It appears that the May build only allows for setting this on the column level with the UpdateMode attribute on the columns and not table wide. I don't see anything on a table basis that would do this at this point. Perhaps it could be a change request for a future release. Jim Wooley http://devauthority.com/blogs/jwooley/default.aspx ...Show All

  • Visual Basic user defined equations at runtime?

    I am trying to figure out if it is possible for to accept a user defined equation as a variable at runtime and evaluate it given the variables in the equation. The simple setup would br to have one text box in which a user could type something like the following: a + b Two other text boxes labeled a and b would accept values for a and b from the user. Those values would be set to numeric variables (integer, single, double,.. whatever) named a and b. One last text box would desplay the answer when a button is pressed. If I define an equation at design time as: equ = a + b, visual basic will solve for equ given a and b. But if I set equ = textbox.txt (which is a + b) visual basic will not resolve the equation. Is t ...Show All

  • .NET Development .Net remoting problem

    Hello All, I am having a big problem with .Net Remoting Framework. I have two Applications and both are console based. I am using .Net Remoting to pass messages from these applications to my Console Listener. The applications are sending messages alright but the problem is that when the two applications are running at the same time the console listener is showing the messages from both the applications instead of one. Both the application are using the same logging framework . I am registering the object as SingleCall and even though the objects are being registered at different ports the .Net remoting framework is not able to differentiate the messages in terms of port. Can anyone please help me with this problem. ...Show All

  • Windows Forms Cannot access a disposed object named "MainForm"

    Hello all, I receive this error when I click "cancel" on Login Form. I'm working with CSharp source code, but I don't make any changes. Here is the exception: --- An unhandled exception of type 'System.ObjectDisposedException' occurred in system.windows.forms.dll Additional information: Cannot access a disposed object named "MainForm". --- Thanks for your help. Mirco Attocchi i'm opening all my sub-forms with singleton, now i extended them for forms: http://n ...Show All

  • Visual Studio Team System Data Dude on Windows Vista Broken

    I'm trying out Visual Studio 2005 on Windows Vista. I've installed Visual Studio Team Suite including Team Explorer and Team Edition for Database Professionals. I then installed VS 2005 SP1 and the VS 2005 SP1 Update for Vista Beta. I then created a new SQL 2005 Database project and attempted to build it and Visual Studio just crashes. I've tried adding some schema objects, adding no schema objects and every time it builds it crashes. I followed the steps found in the short video describing how to setup the schema validation database (I'm running SQL Server 2005 Developer Edition with SP2 installed). Has anyone successfully run VSTEDP on Vista If so what configuration (what product versions and what order were they installed) did you use ...Show All

  • SQL Server Count Item Number

    Hello; Which is the easy way to do this: I have 2 tables:Work_Order_Header and Work_Order_Detail. I need to generate the Item Number from 1 to "qty of items" when I make the JOIN on WorkOrderNumber. Example: WorkOrderNumber WorkOrderItem WorkOrderAmt 122 1 10.00 122 2 15.25 122 3 24.37 How I generate the WorkOrderItem using a select with a JOIN on the 2 tables if you are working on SQL Server 2005, you can use the following (samples tables from Northwind database, as you provided no DDL and sample data) SELECT ROW_NUMBER () OVER ( PARTITION BY O . OrderId order by O . Or ...Show All

  • Windows Live Developer Forums Windows MSN Live Sign-In/Reinstallation Issue

    Help!!!It is not a week that has passed since MSN Live Messenger started not to work properly.To be specific,I couldn't sign in and what I was getting was a fatal error that MSN Live messenger had to be terminated.So,I decided to reinstall it.I went to messenger.live.com and I downloaded the Install_Messenger.exe and when I executed the *.exe it extracts some files and then I get an error saying that either I run Windows in Safe Mode(untrue) or Windows Installer is corrupted.I press OK and then I get a warning message that the error has code 1603.After that,I've re-installed Windows Installer Ver.3.1(downloaded WindowsInstaller-KB893803-v2-x86.exe).This,however,yielded no result.Then,I started to search microsoft's databases que ...Show All

  • Visual C# Layered transparency

    Hi, Are there any way to do the following: I have a form with two PictureBox components. Both pictureboxes have a semitransparent png image as their image property so that you can see the form background through each of the pictureboxes. My problem is when the PictureBoxes overlap. Beneath the topmost PictureBox I can only see the background of the form, the overlapped part of the other PictureBox is not visible (It's not that easy to explain, but I can provide a image if my explanation is not clear). I need this to work with other components that PictureBoxes also, but this makes for an easier explanation of this problem. Thanks in advance. Oyvind FYI, In the early days of Windows, cont ...Show All

  • Windows Forms DataGridView ComboBox

    Hi all, I'm facing a big problem in my development in C#. I'm a newbie I would be needing all the help you can give me. I would like to add a combobox column in my DataGridView control. How can I do it Assuming I have this table detail... MyDatabase MyTable, with fields myID, myItemDescription I would like the field myItemDescription be in a combo box in my DataGridView. How can I do that Please help. Much as possible please start with the database connection .... Thanks, Beast Hi Paul, Thank you for your reply. I would just want to clarify the existence of Table2... What will be the primary role of the second table Esp. in the last four lines from the code col.Dis ...Show All

©2008 Software Development Network