Ramanujam Sampath's Q&A profile
Windows Forms Stop Cut/Copy in Text Box
In my application I have a text box to store & display password data. Now i want to stop cut or copy that data from that textbox. How can I stop cut/copy of data from that textbox for some of it, you can perhaps take a look at the textbox keypress or keydown event. if the user pressed the control key as well as C or X then whatever is in the clipboard, remove it (ClipBoard.Clear()) as for paste well thats a tricky one ...Show All
Visual C++ Is there any method to tell me one dll or lib is a user defined dll and lib or system lib and dll?
Is there any method to tell me one dll or lib is a user defined dll and lib or system lib and dll Thanks you very much. You might want to take a look at this thread . -hg ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Sound generation (DirectSoundCreate)
Hi Is there any function in the xna frame that will function just like the directX DirectSoundCreate Here is i little snippet of my old code (I have copied it fom various pllaces in my code so there might be some errors. The goal is to have the sound running on a 360, and the sount is generated in other parts of my code, therefore I can’t use pre recorded files. Cheers /Jimmy DWORD result; // This will store the "result" (success or failure code) from DirectSound result = DirectSoundCreate(NULL, &(lpdSound), NULL); // Error Check if(result != DS_OK) return false; Play(unsigned char *data,int len) { WAVEFORMATEX wfx; // Set up wave format structure. memset(&wfx, 0, sizeof(WAVEFORMATEX)); ...Show All
SharePoint Products and Technologies Web Part CAS/Security Issue
Hi, I created a web part for MOSS2007 which allows users to browse the Active Directory. After lots of searching I found out that any code that makes calls to System.DirectoryServices.dll must run with full trust, which I duly configured by creating a custom CAS policy. Took a while to figure out, but got there. When accessing the page containg the web part locally, it works fine. When accessing the page from another workstation on the LAN (intranet) it fails. I tested this using two user accounts - one is a typical domain user, the other is a member of DomainAdmins. My custom policy file is based on ws_minimaltrust.config , and I created a code group which only grants full trust to my assembly (identified by PublicKeyBlob ...Show All
.NET Development WebDAV redirector fails
We created a custom webDAV module to access our services, it employs custom digest authentication against our customer database. Everything works fine with WebDAV mini redirector (Web folders), Mozilla/FireFox, IE, with MacOS and third-party webDAV clients like WebDrive or NetDrive. But WebDAV redirector (webclnt.dll) both on XP and 2003 fails to reconnect on logon, also sometimes it fails to send password when mapping network drive for the first time. It is unlikely to be a problem with authentication module as it works fine with browsers and mini redirector. Is there any available workaround to make network drive mapped slightly and with no problems thank you. This forum is dedicated to questions relating to the System.Net ...Show All
Visual Studio Bizar ReportViewer toolbar is present, Report and data absent
We have a real bizarre situtation when the report viewer on a page that is using a master page. When the report rendered contents appear within a html TABLE tag, everything is fine, we are able to see the report tool bar and the data.. The problem arises when we switch the master page and the report viewer control now sits under a contained DIV tag in the master page..When this condition happens, we are seeing only the tool bar but not the report contents..All the parameters for the report are the same.. We are wondering if you guys have seen or heard of issues like this with the report viewer. Here is the partial listing of the generated html when we are seeing the problem. I wonder why the style is set to display:none for the If ...Show All
SQL Server how to create chart in the cube browser
Hi, I have a cube and I am trying to browse the cube in the BI studio. When I slice and dice the cube the browser pane shows the data in a list format. If I want to see the data in a chart how do I do that. thanks I don't know how to create a chart within the cube browser of BI studio (not sure it's possible). However, a viable alternative is using the Cube Analysis add-in in Excel to query the data and use the native charting capabilities of Excel on your query results. Hope this helps. PGoldy ...Show All
Visual Studio Team System HOW: Authoring a Web Test project on a site with a masked URL
Newbie question. How do I write/record a Web Test on a site that has an implementation of a masked URL I am recording on a QUAT environment in which I will also need to implement a Load Test project on so removing the mask is not an option at this environment. Masked URL = The full path of the pages are not exposed only a default page at all times. Example: http:\\somewhere.com\default.aspx Is this even possible If it is how Your help will be greatly appreciated...thanks. The confirmation page is an aspx page. We are using a State Machine mechanism. Simply, once a page is submitted it will create a state and its state will determine which page it will transistion (called). In this case, the ...Show All
Visual C# Using Enum as Index
If I have an enum such as public enum Test { One = 1, Two, Three } I want to be able to add a value based on the enumerated type such as: MyValue[Test.One] = 17; I would also like to keep ot strongly typesd so MyValue[1] = 17; is invalid. Is this possible within C# OK if I had public enum Test { One = 1, Two = 2, Hundred = 100 } The array would be 3 elements so I could not use MyValues[(int)Test.Hundred] = 17; It also is not strongly typed, I could still implement MyValues[2] = 17; which I want to disallow or at least check ...Show All
Software Development for Windows Vista Installing .NET application with DirectShowLib
I have .NET application that uses DirectShowLib. When installed on the user PC it does not work (video is not shown) unless I install Framework 2.0 SDK. Is there some aditional library that I'm missing besides directshowlib.dll > Yes. .NET Framework 2.0 was installed prior application installation. Are you running a debug version of the app (that would likely require the ..Net Framework SDK). ...Show All
Software Development for Windows Vista Where to start ....
Hi all, I'm realy new to Windows Workflow Foundation (just browsing a bit here and there) but it seams quite interesting and could be what I always looked for for modeling the kind of applications I'm responsable for...... Now here is the question: Where do I start where can I find in depth technical information Is there some kind of user guide I could read Thanks for the feedback Ciao hi! First of all yo can start with the Hands-on Labs here: http://www.microsoft.com/downloads/details.aspx FamilyID=2e575633-e357-4ee7-aaff-34138f00e830&DisplayLang=en These are 10 tutorials that will help you discover the functionnalities of WF. Another good ressources to discover features ...Show All
Visual Studio Tools for Office VSTO SE + Office 2003 + VS 2005 Pro
This is more of a Getting Started type of question. For some reason, I'm not finding any kind of basic tutorial that covers building an Add-In using VSTO SE (Beta) + Office 2003 Pro + Visual Studio 2005 Pro. The document that comes with VSTO SE Beta describes how to build a Ribbon, Custom Task Pane and a Custom Form Regin but all for Office 2007 components. I'd like to build an Excel 2003 add-in (or whatever) that displays a button to my end-user. Once the button is clicked I'll grab some data from the current/active worksheet, send the data to a web service and then take the results of the web service call and poke it back into the current worksheet. I've been able to do this in old school VBA (plus the now unsupported SOAP Toolkit) b ...Show All
SQL Server SQL 2005 Mobile vs .NET CF 2.0 SP1?
Hi. I'd like to try a hand at SQL 2005 Mobile. I've installed sqlce30.ppc.wce5.armv4i.CAB on an HP iPaq 1950 Pocket PC, provided by the Microsoft SQL Server 2005 Mobile Edition Device SDK, http://www.microsoft.com/downloads/details.aspx FamilyId=5BD8ABAA-5813-4DB3-B23A-24551DE2ECC1&displaylang=en When I tried to interact with it, I got an error message that the .NET Compact Framework 2.0 was missing on the pocket PC. So I installed the .NET CF v2.0 SP1 found at http://www.microsoft.com/downloads/details.aspx familyid=0c1b0a88-59e2-4eba-a70e-4cd851c5fcc4&displaylang=en and it updated both the local machine and the Pocket PC. However, now when I use my local SSMS to talk to the SQL Server Mobile Engine, I keep getting the ...Show All
.NET Development Primary key suppressed for views in second Oracle schema.
In Oracle 9i, I have a view in one schema which has a primary key defined for it. When I login to that schema, my OracleCommandBuilder correctly generates INSERT/DELETE/UPDATE OracleCommands for my OracleDataAdapter. I have a second schema, which has INSERT/DELETE/UPDATE/SELECT permissions on the view in the first schema. However, when I login to that second schema, then use ALTER SESSION SET CURRENT_SCHEMA=FirstSchema; the schema information no longer contains the primary key, and the OracleCommandBuilder cannot generate the UPDATE/DELETE commands. When I explicitly retrieve the view schema with the following code: DataTable SchemaTable = MyDataAdapter.SelectCommand.ExecuteReader(CommandBehavior.KeyInfo).GetSchemaTable() ...Show All
Windows Forms printing datagrids
Hi, I'm pretty new to .net and winforms. I have two datagrids on one win form and I want to print them. Any help... Look at this class The DataGridViewPrinter Class And also Printing DatagridView ...Show All
