kundalani's Q&A profile
Visual C# Context Menu
I had tried adding a context menu to a form with a menu item. But upon running the program, and upon right click, I could not see the context menu appear. Is there any other settings that need to be done Please advise. You should assign the context menu you've created to the control's ContextMenu propery, in order to make use of it. Form for example, you can assign context menu to its ContextMenu property. Hope this helps, -chris ...Show All
SQL Server OK HERE IS HOW IT IS DONE!!!
I'm a developer for a rich client application with a primary grid that should be refreshed when data is changed by other users. I loath to resort to some sort of polling. It would be really cool if there is a native way to raise an event on the client from a SQL Server trigger. RAISEERROR can send a message to the Connection's InfoMessage() event. But of course this will only send the message back to the user who made the change. Is there anyway in SQL Server to raise an error message on another process so that this ADO event can pick it up 1. Don't implement the sink in VBSUX ...Show All
Software Development for Windows Vista Installing Windows Workflow Foundation Beta 1
There have been several threads with questions about installing Windows Workflow Foundation Beta 1. I'm hoping to summarize the installation instructions for anyone else that might be having trouble. These instructions are also available on the WindowsWorkflow.net community site here . James Conard Architect Evangelist - Windows Workflow Foundation http://www.WindowsWorkflow.net http://blogs.msdn.com/jamescon -------------- Windows Workflow Foundation Beta 1 is compatible with the .NET Framework and Visual Studio 2005 Beta 2 (builds 50215.44 & 50215.45). Windows Workflow Foundation Beta 1 is not co ...Show All
Visual Studio Drillthrough report with remote processing in web report viewer
I've built a set of drill through reports using the Navigation tab. I'm rendering the reports via the Reportviewer control in an ASP.NET app (RTM). To accomlish this do I need to write code in the " Drillthrough" event to set the parameters of the drill through report and change the Report path for the reportviewer control If so, how do I capture the value from the parent report in order to pass it to the drill through report Yes you just need to avoid setting the parameters on every postback. Depending on the structure of your page, this might be as simple as only setting them when you re ...Show All
Windows Forms Office Charting controls and ClickOnce
Hi, I want to use office charting controls in my windows app and want to deploy this app using ClickOnce. My clients may or may not have office, and for the clients which dont have office, I am not authorised to install it. I just want to have my charting components up and running without having a dependency on office. Is it possible and if so then please tell me how to go about it. Thanks, Kunal Clickonce will definately allow you to not have a dependency on office ... You just need to make sure your final Manifest does not list office as a per-requisite. We will just get down the bit and try to l ...Show All
.NET Development Is there a way to force derived classes to implement serializable?
I have a base class which is serializable. When I distribute this class I need to ensure that any derived classes will have to implement serializable or throw an error. After looking through the documentation I added the [Serializable] attribute, will this do it Not by using attributes The SerializableAttribute 's i nherited property is set to false, so the attribute is not added to any derived classes. I haven't tried this, but if you're working with .Net 2.0 beta 2, the following topic may be useful: http://msdn2.microsoft.com/library/3z3z5s6h(en-us,vs.80).aspx ...Show All
Visual Basic (Public) Property Statement
I am using a number of (public) property statements (.NET 2003) to pass variables between classes. All are working fine except for the statements where I am passing 2D arrays. When I step through the code, the set is working fine, when I step into the get, the values are empty strings. Three classes are involved, a .dll is setting the values in an intermediary class and the .exe is getting the values. Any ideas Private blnSectionChanged As Boolean Public Property SectionChanged() As Boolean Get Return blnSectionChanged End Get Set ( ByVal Value As Bool ...Show All
Visual Studio 2008 (Pre-release) xaml.xsd
where can I find xaml.xsd I haev downloaded the winfx sdk at: http://www.microsoft.com/downloads/details.aspx FamilyId=23A22468-5807-4FF7-A363-CE6FE69B8F04&displaylang=en and the iso image at: http://www.microsoft.com/downloads/details.aspx familyid=64193cc5-d566-402c-a211-ba48b312cf6d&displaylang=en but after installing them I cannot see xaml.xsd anywhere. James The links to overall download links for the WinFX November CTP is at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=143002&SiteID=1 ...Show All
Visual J# BufferedReader
Hey all, I'm using BufferedReader to read a .txt file. The file is going to be continously updated and I want the buffered reader to read it as it is being updated. I reach a problem when it reaches the end and reads null, it goes through the exception and ends. How do I make it wait and listen for another line of text to be written I tried to wait() method but it seems to freeze the computer. Thanks try{ FileReader input = new FileReader(PreferencesForm.getCharacterLogFilePath()); BufferedReader bufRead = new BufferedReader(input); String line = bufRead.readLine(); while (!line.equa ...Show All
Visual Studio Team System Difference in VS2005 between Team & Pro version for the profiling
Hi, I would like to know the difference between the Team version & Pro, for the profile optimization It seem to me that the Pro version include this feature for the C++ not managed, but the Team version proposes in more one visualization of information (number of call, timing, ...) concerning the profiling whereas in the Pro version is directly used by the Linker. regards, Profile guided optimization is a feature of the C++ compiler, available in Visual Studio Professional and above and is for native code only. Visual studio team system also includes sampling and instrumenting profilers for nativ ...Show All
Windows Forms Specify ConnectString at Installation Time
I want to write a C# program which needs talk to an Access database. I plan to add this program to Windows Task Schedule so the program can run periodically and automatically. Since this program needs to run automatically, it cannot take user input at run time. I also do not know where is the database file until the program is distributed to individual users. That is to say, I do not know the ConnectString until installation time. How can I solve this problem I can think of using registry to store database file location information at installation time or using a *.ini file to do the job. But I am not sure if it is good to do in these ways. ...Show All
SQL Server Cannot connect to remote SSRS instance with SSMS
I recent installed a named instance of SSRS 2005 on a remote server. The server has a side by side install of SSRS 2000 and SSRS 2005, with the SSRS 2005 being a named instance. The server also has SSL and MS Sharepoint Portal Server installed. When I try and connect to the SSRS 2005 instance with my client install of Mangement Studio, I get the error message: "The underlying connection was closed: Could not establish a trust relationship for the SSL/TLS secure channel. (System.Web.Services) Additional Information: The remote certificate is invalid according to the validation procedure. (System)." Obviously, this is a S ...Show All
.NET Development Error 27 Option Strict On disallows operands of type Object for operator '='. Use the 'Is' operator to test for object identity.
Hi Guys How would I best resolve this, VS 2K5 is complaing about the values in the case statements and not able to test for object Identity, I don't want to test for object identity I'm looking for values, I know I could add the ToString option after optCurrency.Value.ToString and then put both the "2" and "3" in quotes but that does't seem right either, any thoughts Select Case Me .optCurrency.Value Case 2 Me .optCurrency.Value = CurrencyType.Euros 'load combo box Call LoadFundId(CurrencyType.Euros) Case 3 Me .optCurrency.Value = CurrencyType.Sterling 'load combo box Call LoadFundId(CurrencyType.Sterling) End Selec ...Show All
Visual Studio Team System AD -> SD: Override settings
Today I am confronted with the following questions.. 1. If application diagram component's overridable settings are changed, system diagram also gets updated. In SD, under what circumstances will I need to override settings (just to make my deployment validation successful ) 2. Since code generation can be done from only AD, why am I able to override the default settings in SD (These overrided values will not be implemented in code) 3. Say, I am a consultant who have a lot of generic applications represented in AD. I will create many systems based on this AD. Does it make more sense if I generate code from SD with all my custom ...Show All
Visual Studio Tools for Office Display the Content of the Uploaded file in the InfoPath Form.
Dear Friends, I have some problem regarding InfoPath 2003. How can I display the Content of the Uploaded file in the Infopath Form. For Example ...if I upload the one Excel Sheet file (.xls)...After uploaded...The Form will display the Excel Sheet content on it (Obviously in the same Form). My Questions is it possible . Anyone can help me . Vasanth. Hi Vasanth, Unfortunately, there is no control in InfoPath to do this. Keep in mind that controls in IP are meant to be linked to a schema to generate an xml output. Trying to display content though a "black box" control would beat the purpose of using IP altogether. Re ...Show All
