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

Software Development Network >> umer riaz's Q&A profile

umer riaz

Member List

BarataMota
giddy
Gavin Colvert
Alien72
Lars E.Nes
KIPREAL
Jawad Naeem
ridvan
Maxim Michtchenko
Nick Hertl
Michael Luttmer
karthik asok
LastHope
msdate
CSharpShooter
rs12345
R4d1um
zproxy
roy-roy
mleary
Only Title

umer riaz's Q&A profile

  • Visual Studio Tools for Office Accessing ThisDocument from outside using Word Object Model

    Hello, Is there a way to access ThisDocument's methods and props from outside, e.g. from a Word VBA macro. Thanks, Andrew Hi Doug, I use reflection. I host Word documents in my own application (a .NET WinForm app) and I need to access ThisDocument from my managed host app. In fact I already do that using ComAddin.put_Object as a bag to exchange data. I could use document's custom properties, but they're by-value storage, not by-ref. Is there a niceir way Thanks, Andrew. ...Show All

  • SQL Server Evaluate as an expression

    I have just been brought in a project that is a huge mess....They have specked this project to allow for a user to create ad hoc calculated expressions using tags of data that are supplied by another system. This sort of looks like this ID | Formula | A | B | C | D | 1 A + B + C 1 2 3 4 2 C - D + A 1 2 4 2 3 D - A + 1 4 2 6 8 They want to then evaluate the formula expression using the corresponding column-row values to arrive at a value. As of right now I am a bit lost on how to do this, does anyone have any ideas Thanks! Josh Rogers Josh: I know your pain; let me see what I can do to help. What to remember is to do the best you can to be an agent of change; change is the ...Show All

  • .NET Development RPC Server Exception

    System.Management. ManagementScope ms = new System.Management. ManagementScope ( "\\\\" + stringMachineName + "\\root\\cimv2" , co); oq = new System.Management. ObjectQuery ( "SELECT * FROM Win32_processor" ); query = new ManagementObjectSearcher (ms, oq); queryCollection = query.Get(); return queryCollection; well guys i am trying to access remote system but in doing this some machines give mein following exception System.interop.Runtime.COmException RPC SERVER IS unavailable (Exception from Hresult:0x800706BA) can u help me this how to solve this The domain administrator have complete rights on the computer under that domain, so I think if you are prov ...Show All

  • SQL Server Move data to DB2 on AS400 with SSIS

    Anyone writing data to DB2 on an AS400 with SSIS I cannot get the OLEDB destination configured correctly. I can set the destination up with a SELECT sql query, and preview the resultset. I am using IBMDA400 driver in SQL integration services. I am using the oleDB destination to the AS400. I do not want to turn on Journaling on the tables I am writing to. I need to figure out a way to turn off Commitment control with using the IBMDA400 driver properties. Can anybody help with me with this ...Show All

  • Windows Forms Custom form transparency problem

    Hi, I tried to use the method mentioned here but I experienced the following: I have a background bmp file and it has rounded edges with different colors at the edges of the image (the edges are red). I set the TransparencyKey to red but they were still visible. Then I found two articles. The first claims that when one uses screen color depth higher than 16-bit, the transparencykey property stops to work. (The article is dated about 2002 and uses .Net FW 1.1). I found another on here (watch the last image inscription). The second one is a bug: when the DoubleBuffer property set to true, the transparencykey won't work, either. Here is this article. My application uses Do ...Show All

  • Visual C++ _findfirst, _findnext and _stat problem

    Hi, One part of my application opens up a set of files using _findfirst, _findnext and _stat to see their current date using VC++ 2005. This code has been working fine and noone had any problems. However now I got a request from a user saying some of his files were dated year 1617 and that the application crashed. The crash address indicates that it happens within the CRT code of these functions but due to the circumstances I don't know (yet) which of them. The exception code given is 0xc000000d. For now the user removed the broken files and everything went back to a working state. I however tried to see if I used the functions in a wrong way and did not use the right error returncodes. However after verifying by documentation eve ...Show All

  • SQL Server Sproc sorting on float column: works in 2005, not in 2000

    Hi Everyone- I inherited this client's app, which is a .NET 2.0 app running under SQL Server 2000 in a shared hosting environment. I am having problems using an ORDER BY clause on the main search stored procedure in that it will properly sort results in SQL Server 2005 on my dev server, but not in 2000 on the production server. In 2000, it seems to be somewhat random, where everyone once in awhile a result that is out of numerical sequence will sneak in. The column on which I am trying to sort is a float column called SquareFoot. Can anyone tell me what is wrong with the stored procedure below that might be causing this This is an existing stored procedure to which I added in the ORDER BY clause. I should note that .NET/SQL Server ...Show All

  • Windows Forms Allow user to enter null value in numeric field

    I have a VB .Net Windows form that uses a strongly typed dataset. There is a text box on the form that is used to enter a numeric value. By default this value is <DBNull>. The users want to be able to clear entered values and replace them with a Null value. 0 is viewed as a legitimate value, so the value must be nulled out to indicate the value is not known. If I clear the textbox contents by using backspace, I am not allowed to exit the textbox on the windows form until a valid numeric value is entered in the field. How do I allow users to backspace or delete entered numeric values and save the new value as being null to the SQL Server database Thanks! You may process the characters user enter ...Show All

  • Visual Studio Express Editions Odd request, but I could use help..

    Okay, this is going to sound very STRANGE! But I seriously need help getting my school work done, and this is like the only way I can think of doing it. My questions are: 1: Is it possible to have C# prevent certain programs (i.e. World of Warcraft, Warcraft 3, etc.) from opening until a password is put into a password box 2: How I wouldn't be asking this, but I seriously need to get some home work done (I have like... 7 days to do a lot of essays) and I keep getting distracted by the games that are on my computer (I would uninstall them, but there are others who use this computer as well, so I can't do that.) Otherwise, you can do it no C# way. Just to set password of the folder for specific account user such as you ...Show All

  • Visual Studio Team System Baseless merge No Content changes not auto merging...

    We are trying to do a baseless merge and the conflict resolution comes up and when we select a file that has not conflicts it is not giving us any auto merge option. If we try to do the auto merge all, it fails because it says we cannot merge them because the two files have changes but we verified that they don't. Now if this was one file it would be no big deal but we are talking about thousands of files and there is no way we are going to resolve each file manually....if this is how baseless merging works, how useful is it  Also, when I execute "tf resolve /auto:acceptmerge" I get the following error TF10010: Source control unexpectedly encountered the end of the stream: The char acter was incomplete at stream offset 3841. ...Show All

  • Visual C# select a Row in DataGridView

    How can I change the selected row in DataGridView programatically it seems all related properties are "read only"... This will programatically set the first row as the selected row: dataGridView1.Rows[0].Selected = true ; ...Show All

  • Visual Basic Problem communicating with HTTP

    I am trying to communicate with an RFID reader via HTTP. In an browser window, I can simply enter the following address: http://192.168.0.150/cgi-bin/dataProxy oper=queryTags The reader then returns to the browser an XML encoded message. However, when I try to do this programmatically, I get the following exception: "The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF." The code that I'm trying to use is as follows: Dim R As HttpWebRequest = WebRequest.Create("http://192.168.0.150/cgi-bin/dataProxy oper=queryTags") Dim WR As HttpWebResponse = Nothing Try WR = R.GetResponse Catch ex As Exception Debug.WriteLine(ex.Message) End Try Dim sr ...Show All

  • Visual C# show large image (more than 10000*10000) problem

    some one can help me I want to show a large bmp photo on panel or form,how can i do if i use this code it don't work. Bitmap bitmap1 = new Bitmap("c:\example.bmp"); you need to load the Image into a picturebox: this.thePictureBox.Image = Image.FromFile( filenameHere ); is this what you are after ...Show All

  • Windows Live Developer Forums Orange Icons in Live Search

    I'm not very fond of the red pushpins but the orange markers look perfect! The orange markers appear in Live Search when you do a search for businesses. Does anyone know where I can find the image source Also, I remember reading threads on how to print numbers on the markers but I couldn't pull it up from Search. Can someone point me in the right direction Thanks! hi, now i am more confused then ever! i really appreciate the help, but i think i really need some step by step instructions on how to make this work. i am very good with javascript, and sql, but completely new to this. i have tried a whole bunch of different things, but i know i just don't "get" how to implement this. i assu ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. How to import a 3d Model in XNA framework?

    Can anyone explain me howto import a 3d model in an XNA project In which format I have to export my model from 3ds max 7 Don't worry, its perfectly safe :) That's the trouble tho', I do worry and downloading .exe files posted on forums is beyond the level of risk that I'm willing to take with a work computer so I will have to pass unfortunately. cheers, Joc ...Show All

©2008 Software Development Network