Answer Questions
Suganya Mahadevan Filling combo boxes with DB data
Hi, I am new in J# although I know a little bit of java and this is my first big problem I have a table in a data base with Id , Column1 , Column2 and Colums3 columns. And in a form I have three combo boxes that I want to fill with the data in Column1 Colum2 and Colum3 respectively but the values can't be repeated. Then I want to rescue the Id of the values selected by the user. I think that may be solved doing a SQL query for each combo box doing something like this: SELECT DISTINCT ColumnX FROM Table and then, to take the corresponding Id, something like this: SELECT Id FROM Table WHERE (Column1=ComboBox1.get_SelectedValue()) AND (Column2=ComboBox2.get_SelectedValue()) AND (Column3=ComboBox3.get_SelectedVa ...Show All
Philips-HCR VS 2005 Debugger does "run" instead of "step into"???
I am debugging a Win32 native application written in C++ with VS 2005 Professional, and everything goes well, I can step through the code, step into (and step out of) functions, can see the values of the variables, etc. EXCEPT that at some specific function (in my code), when I press F11 to step into it, the debugger "runs" instead, as if I'd have pressed F5. This happens only with one function (so far), I can step into other functions without problems. The function does not have any attributes that would somehow make it different from other functions in the same .cpp file, no special optimization, no #pragmas, nothing, just a regular C++ function, like others in the same file. I tried to rebuild the solution, but the problem remains ...Show All
barkingdog Visual SourceSafe 2005 Internet & Visual Studio 2005
Hello, I keep having a repeated issue that I hope someone is able to resolve. I am trying to connect to a Visual SourceSafe 2005 on a Windows 2003 Standard Ed. server, that is a domain controller as well. With certain projects, around the 12mb range, i am normally able to open them most of the time, but if a project is bigger, I get an error message "Cannnot contact the Visual SourceSafe Internet Web Service or cannnot access the specified database." "The server returned the following error: The operation timed out (0x80072EE2)". and when I click ok, i get another message box that says "The current source control operation cannnot be completed. The source control plug-in returned the following error: A ...Show All
patio87 Can you tell me how to create text object dynamically in vc#2005?
Can you tell me how to create text object dynamically in vc#2005 Can you give me the steps to do it The most important things is :which reference should I add into the project I appreciate your help. This is off topic for the Visual C# General forum, moving to the Crystal Reports for Visual Studio forum. Normally after you create a crystal report (.rpt file), you use crystalreportview control to view the crystal report in the window form program or in web application. Dynamically creating text object mean : in the crystal report you do not have that text object before loading the report , it is necessnary to use the crystal report API to create a text object. So can you tell me how to create the text object dyn ...Show All
Shady-Potter problems with shared compnents
I am re-structuring all our projects and putting them in 1 SS database. Many projects have shared code (modules). What is the best way to do this, cos neither way I have tried produce the result I want. 1. from in VisStudio, Add solution to source control. Problem: because the shared modules are 3 directories up, and 3 down, I end up with the entire directory structure up to the root for each solution and down to the Shared folder, very messy. 2. Manually put the files into VSS then bind the solution to the right folder in VSS. Problem. You cannot check out the shared files from in VisStudio. There must be a way to do this, as I simply refuse to believe that Microsoft would release a product which doesn't understand that some p ...Show All
mike6271 VISTA RC2 - Debugging Services Problem
On Windows XP I am able to attach to a service and debug it via VS 2005. I have tried to the same thing on VISTA RC2 ( x64 ) without success. I get the following error: "Unable to attach to the process. Access is denied". I am a local Admin on the the system and I am able to debug normal console or gui apps. Has anybody else experienced this issue Is this due to some sort of VISTA security issue Are you starting Visual Studio "run as Administrator" On Vista, even if you are in the admin list, if you did not specificly "run as admin", you are not granted admin permission, though you still can debug apps that do not require admin permission, eg, console app. Min, Start ...Show All
nesrine Authentication for Report Server
Hi All I am working on a project where I am using Report server control 2.0 to display Reporting services reports. I am having a authentication issues. In this application User will authenticate and then browse the application. If I use the following code my report viewer controls works fine. ReportViewer1.ServerReport.ReportServerCredentials = new ReportServerCredentials ( "Administrator" ," pass@word1 ","Contoso" ); But I dont want to pass UserName/Password. Is there any way using which I can just say something similar to System.Net.CredentialCache.DefaultCredentials I am using ASP.net 2.0. Any help would be appreciated. Hi Brian ...Show All
Reddirt14 Generating client proxy for msmq service
I am struggling with svcutil (or "Add Service Reference") usage on a msmq service. I see examples with two endpoints, one for net.msmq and one for mex. When I try this, then hit the service.svc using a browser, I get an error of: "The protocol 'net.msmq' is not supported". What is the best way to expose the metadata on an MSMQ service so that I can generate the code that I need for the client No, I don't get anything - but I assume that the http://localhost:8000 is just an example - my address would be different I already have a virtual directory set up for my web services project, named WEdgeServices. For my web services client code I can use: svcutil.exe http://b85blb1 ...Show All
Thomas Ardal System.Security.SecurityException while trying to create a file in Visual Studio 2005
Hi, My project on a network drive was running successfully on my local machine till last week in VS 2005 debugger mode. Now I receive following System.Security.SecurityException on code line StreamWriter w = File.AppendText("IMAA_QB_Pdf_Gen_060720.CSV") The full text of the exception is: System.Security.SecurityException was unhandled Message="Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed." Source="mscorlib" StackTrace: at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) at System.Security.CodeAccessPermission.D ...Show All
*_Enigma Auto Scrolling text inside a listbox
Auto Scrolling text inside a listbox listboxelement.Focus() should work unless your requirement is animated scrolling ...Show All
fleo Enabling and disabling buttons on a custom ribbon at runtime
Hi, Can someone please let me know if it is possible to enable/disable buttons on a custom ribbon at runtime. I yes, can someone give me some pointers on how this can be done. Thanking in advance. Regards, Rakesh It's possible if you have defined it in the XML. It involves invalidating the Ribbon so that it reloads, and thus re-evaluates whether to enable or disable. See pschmid.net for all kinds of information about working with the Ribbon, as well as a discussion forum. ...Show All
Ivan.Drew Customizing WPF DataTemplates....
I have defined a dataTemplate as follows: <DataTemplate x:Key="photoTemplate_Small"> <Grid Width="Auto" Height="Auto" x:Name="Grid" Margin="10,10,10,10"> <Grid.ColumnDefinitions> <ColumnDefinition/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition/> </Grid.RowDefinitions> <Border HorizontalAlignment="Left" Margin="0,0,0,0" Width="Auto" Background="sc#1, 1, 1, 1" x:Name="Border" BorderThickness="0,0,0,0" CornerRadius="8,8,8,8"> <Image Source="{Binding Path=ThumbNailPhoto}" Width="100" Margin="5,5,5,5" x:Name= ...Show All
MMV2007 Image UserControl will not show image
I am creating a custom image usercontrol but I can't get the image to show. Here is the code using System . Windows ; using System . Windows . Controls ; using System . Windows . Data ; using System . Windows . Media ; using System . Windows . Media . Animation ; using System . Windows . Navigation ; using System . Windows . Media . Imaging ; namespace ImageUserControl { public partial class jlImage : UserControl { public static readonly DependencyProperty ImageNameProperty = DependencyProperty . Register ( "ImageName" , typeof ( string ), typeof ( jlImage )); public event EventHandler < EventArgs > ImageNameChanged ; publi ...Show All
programmer01 Publisher/Subscriber Problems: Orphaned Subscribers
I implemented a publisher/subscriber demo, but ran into a problem. In particular, when a client registers as a subscriber, but then shuts down/crashes without unsubscribing, the service locks up. For the notification, I use the below: [ OperationContract ] public void Notify( NotificationMessage message) { lock (_lock) { for ( int i = _subscribers.Count - 1; i >= 0; i-- ) { try { _subscribers .ReceiveMessage(message); } catch ( Exception ex ) & ...Show All
johnd2 Outlook : GAL
Hello, I would like to be able to display the "Select Names" dialog, if not access the GAL, using my VSTO add-in. I see references to CDO being a requirement for this but CDO is not supported in managed code. Setting aside the promised Outlook 2007 functionality, is this possible in Outlook 2003 Thanks, Tad Hi Tad, The only way to display the Select Names dialog for Outlook 2003 is by using CDO, which as you stated is not supported from managed code. If re-writing your solution in native code isn't an option, you will either need to target your add-in for Outlook 2007 (which supports this in the object model), or use an alternative APIs to display this dialog. --Ryan ...Show All
