ShashankBhardwaj's Q&A profile
Windows Forms .Net: Using VB to bind controls to a dataset row/column
I am creating a VB form for which I use the control name to identify the table and column of a single row dataset. I bind the controls when the form is loaded and the data is correctly displayed as I expect. However when I update the control (say a Textbox) the change is not reflected in the dataset. This has been confirmed by stepping through the statements in debug mode. I was wondering if I had missed something in my configuration or if there was an additional activity I need to perform to get the changed control property (Text) back to the recordset. I have tried assigning a BindingManager but have had no success. ...Show All
Windows Live Developer Forums any MSN messenger web service API to add contact ? Pls. help
pls. mail me on this. thanks Sharad When someone is logged in to MSN Messenger (or WLM), you can make a link to msnim:add contact=email@hotmail.com to add email@hotmail.com. This only works when the visitor is using Internet Explorer though. It's not really a web service though, but maybe you can use this :) ...Show All
SQL Server SQL Server 2005 Developer Edition and SQL Server 2005 Express Edition on same machine?
I am currently downloading the mega-sized files for SQL Server 2005 Express Edition and was wondering if I was going to be able to install it onto my workstation alongside the SQL Server 2005 Developer Edition Was hoping someone could advise. I did browse for an answer, but have not come across it yet. I know I'll find out once my download is complete, but that could be awhile :) Thanks, -Neil Well, I downloaded SQL Server 2005 Express and tried to install it, but no-go. Is there something basic I am missing here in my understanding I have SQL Server 2005 Developer Edition installed on my machine for web development. I wanted t ...Show All
SQL Server Exporting Report Builder Tabular Report to CSV
A simple tabular Report Builder report was written to feed another system that requires quoted CSV. I have two issues when exported: 1) I can't get control over the exported column names. Currently, they are exported as "FIELDNAME_Value". When I try to change the column headings in the designer, it has no effect on the exported column names When I create a New Field and specify my desired column name (e.g., COMPANY), the export appears as COMPANY_Value. How do I control these names for the CSV export 2) The spec calls for quoted text. In my export, only values with special characters are quoted. Thanks in adva ...Show All
Windows Forms SelectedIndexChanged event does not fire for ComboBox
Hi I am creating a windows application using vs 2005. I have written some code in combobox SelectedindexChanged event. This even works fine if I select item using mouse but if I use keyboard and select item using TAB key event does not work at all. If this behavior is by design what workaround can I use Users would be using keyboard most of the time. Thanks The up and down keys in the combo it must fire the SelectedIndexChanged event.When you press tab,then focus would shift to the next control which has tabstop = yes and tabindex = the current control's tabindex +1. ...Show All
Visual C# Using a dll in C#, can anyone solve this small piece of calling a function?
Hi, I want to use the "zlib1.dll" in my C# application. The function im interested in the dll is the uncompress function...as documented on this page http://www.zlib.net/manual.html#uncompress int uncompress (Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen); Decompresses the source buffer into the destination buffer. sourceLen is the byte length of the source buffer. Upon entry, destLen is the total size of the destination buffer, which must be large enough to hold the entire uncompressed data. (The size of the uncompressed data must have been saved previously by the compressor and transmitted to ...Show All
SQL Server Deploy SMO project
Hi, I'm writting a tools with SMO that supports SQL Server 2005 and 2000 and I'm wondering wich components do I have to include in my setup to support both versions With SQLServer 2000 my application throws a following message : "Could not load type ‘Microsoft.sqlServer.Management.Smo.TriggerBaseCollection’ from assembly ‘Microsoft.sqlServer.Management.Smo’, version = 9.0.242.0" Thank you. You should obtain the "Microsoft SQL Server 2005 Management Objects Collection", which contains SMO. See http://www.microsoft.com/downloads/details.aspx FamilyID=d09c1d60-a13c-4479-9b91-9e8b9d835cdc&DisplayLang=en Peter ...Show All
Visual C++ WM_KEYDOWN
Hello, I am looking for some help on making a program that will give me the number for each key. I known that I need to hook the keyboard first, and I have that code. Now, from there I am oblivious as to what I need to do next. Any refrences or sample codes would be great. Thanks. Note: Win32 API is what was writing this in. If I can possibly stick to that, it would be great. Thank you. (This is NOT for a homework assignment, instead I was curious about the keyboard's numbering, for all combinations) ctimko ctimko wrote: Hello, I am looking for some help on making a program that will give me the number for each key. I known that ...Show All
Visual Basic Locked property
Why am I able to change the locked property for my combo box or text box in the property window but not in the code The locked property is not the same locked property of VB6, the .Net equivilent is .ReadOnly. All .Locked does is lock the control on the design window and prevent you from moving it. ...Show All
SQL Server MDX calculation
Not sure if this can be done any help appreciated. first a little background info a "customer" can have multiple "bill types" I create two calculated members Calculated member1 - returns all the customers that have a bill type "A" Calculated member2 - returns all the customers for bill types except "A" I'd like to have a calculated member that returns all customers that have bill type "A" only. In other words remove those customers from Calculated member1 that exist in calculated member2 One small suggestion - you might want to express it as: CREATE SET ...Show All
SQL Server Reporting Services Error -- Could not find stored procedure 'spPM_ProjectManager'
Hi All, I built this report same way like the other reports but in different database. When preview in visual stuodio, it is fine. When deploy to the server, I got this message: Report Services Error An error has occurred during report processing. (rsProcessingAborted) Get Online Help Query execution failed for data set 'ProjectManager'. (rsErrorExecutingCommand) Get Online Help Could not find stored procedure 'spPM_ReportManager'. Do you know what cause the error Thanks in advance for your help! Rabbie Basically the error message is telling you it cant fin ...Show All
Visual Studio Error building Basi VSIP project (Visual studio 2005 Beta2) and VS SDk August
Hi, I get the following error trying to build the basic wizard generated VSIP project. I am using Visual Studio 2005 Beta2 and VS-SDK August. The error text is regpkg : error : Could not load type 'System.Runtime.CompilerServices.RuntimeCompatibilityAttribute' from assembly 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' My Mscrolib.dll version is 2.0.50215.44. I tried uninstalling and reinstalling the Visual Studio versions I have but cant seem to get around this error. Please help! -K http://www.vsipdev.com/downloads/ ...Show All
.NET Development Web Service and Application Security
My application software is deployed across two tiers; a WinForms workstation client and a Web Services layer. My application will require authentication, however I'm not keen on building my own authentication services into the application. Rather, I'd like to leverage Windows domain security. I can think of three scenarios: 1. The user is logged in to the domain. In this case, I'm assuming that the user's credentials will be used automatically when calling secured web services. 2. The user is not logged in to the internal network. When accessing the secured web service without credentials, will the user be automatically prompted for credenti ...Show All
Visual Studio Variable data in header not printing
Wanted to start a new thread on this in case it was getting missed. http://msdn2.microsoft.com/en-us/library/ms252093(VS.80).aspx I am trying to print a document number in the header of a report. I am using the technique of referencing a hidden text box in the body that contains the data I want to show. In the header I have this: =ReportItems!txtShippingOrderNo.Value And in the body I have a "txtShippingOrderNo" textbox: =First(Fields!ShippingOrderNo.Value, "DataSet_ShippingOrders") Works fine. I see the document number on every page. But it is blank when printed or exported to PDF ! ...Show All
Visual C++ LNK2019 problems
I'm currently migrating a DLL which compiles and links fine on Visual Studio .NET 2003 over to Visual Studio 2005. Its using a couple of custom libraries provided by a thrid party (but source included). I've recompiled the external libraries without a problem, and the linker can find them fine. I have to specifically tell the linker to ignore libcmt.lib and libcpmt.lib, as for some reason it tries to link them in (I'm compiling as a multi-threaded DLL), but that's not a big issue. The problem is that when it links, it gets a linker error LNK2019 for each of the external libraries I'm using. The error messages are as follows: error LNK2019: ...Show All
