SatishThumar's Q&A profile
Visual C# C# novice
hello, I am very new to C# and I came across "property" in C#. I am just abit confused about the logic behind having "accessors" in "property", I mean aren't accessors just "methods" That had always been a little foggy to me also, ahmedilyas , that was about the best explaination I have read about what get/set does for a variable. ...Show All
Internet Explorer Development Javascript in IE Addon
Hi, How can I use Javascript in IE Addon What is the best to port a firefox extension to IE7 Addon Thanks in advance. Any idea would be appreciated. Hi, Sample command bar button script.. <script language="javascript"> var win=external.menuArguments; var doc=win.document; alert('Document Title = ' + doc.title); </script> Porting from Firefox..... Try it an see... make coding changes as required... use the external.menuArguments object to reference the browser window. Regards. ...Show All
Visual Studio Team System Suggestion: Refactor across a whole project
The schema that I am currently working with has over 1000 tables in it. It was created using scripts that have been adapted from oracle scripts. Obviously the person that did the conversion didn't bother about things like best practice and just did a find and replace on the Oracle script until it got to a syntax that SQL Server would accept. Hence we have the following problems now inherent: Every field that should be an integer is a numeric(8,0) We have VARCHAR(1) fields. This is bad practice - they should be CHAR(1) These VARCHAR(1) fields contain the value "Y" or "N". This would be better represented as a bit field. Loads of others... I am not going to go through 1000 tables to search for all ...Show All
Windows Forms BindingSource.AddNew resulting in InvalidCastException
I have a BindingSource component bound to a strongly-typed DataSet. If I call the AddNew() method of the BindingSource to add a new row, I get an InvalidCastException : Unable to cast object of type 'System.DBNull' to type 'System.String'. I've set the NullValue property of all the columns in my DataSet to '(Empty)' but when adding a new row, DBNull is still returned. I could fix this by changing each column's DefaultValue property to "", but I don't want to do this because the Access database which stores the data does not allow zero-length strings, I want the default value to be DBNull but to appear as an empty string when databound. What do I need to do to achieve this ...Show All
.NET Development Certificate error using HttpWebRequest with SSL connection
Hi, I want to set up a SSL connection with client certificate using HttpWebRequest using Visual studio 2005 The client certificate always causes an error, althoug when I use my browser it works fine. This is the complete System.Net trace. It seems to send the client cert twice, the first time it is accepted, the second time it is rejected. Can anyone help me out with this trace thanks System.Net Verbose: 0 : [3320] WebRequest::Create( https://spb121/Sodexho/SoapProxy2/SoapProxy2.aspx ) System.Net Verbose: 0 : [3320] HttpWebRequest#53036123::HttpWebRequest( https://spb121/Sodexho/SoapProxy2/SoapProxy2.aspx#-1062137107 ) System.Net Verbose: 0 : [3320] Exiting HttpWebRequest#53036123::HttpWebRequest() System.Net Verbose: 0 ...Show All
Visual Studio Express Editions Why alphablend api doesn't work on VB 2005 Express?
Due to the speciality of my purpose, I just come to use Alphablend API. But somehow it seems the API doesn't work properly. I've already looked into some references and documents, and found the fact that Alphablend returns '0(false)' when it is not correctly loaded. The API returns '0' almost every time. I've even used varied modification of same API, but it still doesn't work and returns '0'. Please let me know what is wrong, and how can I run 'Alphablend' API correctly on VB2005. My tweaked code for VB 2005 : Declaration, method 1: Declare Function AlphaBlend Lib "MSIMG32.dll" _ (ByVal hdcDest As Integer, ByVal nXOriginDest As Integer, _ ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XInput Common controller 32 bit wont install
Hi I need to use XInput for a program I am writing in VB.NET 2005 (to use the xbox 360 controller). However I am not sure what software I need to download. I thought I needed the Microsft Common Controller 32bit but when I tried to install it, it says "Installation did not complete" Please help me! Thanks Mine said the same thing when I installed it but when I plugged in the controller, it worked fine. Have you tried plugging the controller in, even though you got the message My thinking was that the DXSDK or something else installed the driver already and the error is just from the driver already being there. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. NoSuitableGraphicsDeviceException was unhandled
Let me just say at the outset that I know nothing about C# (yet) and am trialing the XNA beta to try and get into it. I do know VB and some C, however. Once I had everything installed, I tried a few example programs including the Spacewar project, but I cannot run any of them. They build fine, but I can't run the .exe, and it crashes and asks if I want to send a report to MS. If I "Start Debugging" instead, I get the error "NoSuitableGraphicsDeviceException was unhandled" on the "this.GameComponents.Add(this.graphics);" line. I have no idea where to even start. Is it my install My PC My hardware The program I'm trying to run Once I know the environment is actually working, I can begin the learning! ...Show All
Windows Forms downloading updates
hi everytime i try to update the following kb928090 and kb931836 it always fails.can somebody tell me how to fix this thanks coonsanders ...Show All
Windows Forms Duplicating MS Access Continuous Subform Functionality in .Net
Hello All, I'm currently writing an Inventory Control and Invoicing program for a friend. I statrted writing the app in MS Access and found that I couldn't get the level of control I needed. Rather than write it on old VB, I thought I'd try writing it in .Net. My main form in Access consisted of one main form and two subforms. The main form was Customer Information, the first subfor ...Show All
Visual C++ A 'TRACE' output
Here my codes: ------------------------------------------------------------ CString m_sTest = _T("Testing"); TRACE("Testing output: %s\n", m_sTest); ------------------------------------------------------------ What I thought its output should be -> "Testing", but in the output window(MVS2005) I saw that only the first character of m_sTest was shown: Testing output: T Anyone can help me to find where is wrong Great, it works! But could you tell the reason, what's the difference with "%S" and "%s" Thanks lot. ...Show All
SQL Server Top 10 Chart grouped by Month
Hello, I have a bar chart that I need to show the top 10 items by Month. What I get currently is a chart by month with the total Top 10 Items (rather than the top 10 per month). I have tried adding a scope onto my Value expression but that didn't help. =countDistinct(Fields!incident_ref.Value, "catGrpDate") Please Help! It sounds like you filter on the overall dataset or the overall chart. I suppose your chart has a "Month" group and a "Product" group. You should add a filter on the "Product" group, e.g.: =Sum(Fields!Revenue.Value) TopN =10 -- Robert ...Show All
Visual Studio 2008 (Pre-release) My WPF application doesn't run on a machine which has .Net3.0 but doesnt have VisualStudio2005 and its extensions for WPF/WCF
Hello, Please let me know what are the minimum requirements for running a WPF application(using XAML) on a machine that doesnt have Visual studio 2005 and orcas Our application end users just have .Net3.0 installed on their machines.When this app.exe is run on a machine with just the .net3.0 framework, we get a msg like : "app.exe has encountered a problem and needs to close.WE are sorry for the inconvenience.If you were in the middle of something,the information you were working on might be lost." This otherwise works fine.Can you please suggest me what I am missing here Do I need to create a deployment package everytime so that all relevant dlls(w.r.t WPF) are also intalled our end user's machine.Am I missing something ...Show All
.NET Development Remoting timeout issues
Are there any known workarounds for the really annoying lengthy remoting timeouts on down servers This is particularly a problem when using .Net remoting and the server isn't available, it can take up to 2-3 minutes for the line of code to timeout when accessing a remote object. I have tried implementing a Ping class before I access the object, but sometimes this just doesn't work if the server is in the process of shutting down... Obviously having an application hang for that long is unacceptable.. I am threading everything however my application will not cleanly close if the thread is hung waiting for a socket timeout. A sample for you.. Nope it seems no one really paid attention to the issue. It still exists and the o ...Show All
SQL Server Presentation Problem
Hi all kindly help me with a solution i have the following result Total Users 474 Total registration for 20/12/06 90 No of Avtive Users 235 Users Who Opted for MS 62 Users Who Opted for WL 154 But i need to display it as Total Users New Registrations No of Active Users Users Who Opted for MS Users Who Opted for WL 472 88 234 62 153 in short i need to display the rows as columns and columns as rows Thanks in advance Jacx If there is single set of rows on your table then the following query will work..(SQL Server 2000/2005) --Create Table DataTable (Description varchar(1000 ...Show All
