Ivana Hudakova's Q&A profile
Visual C# How to delete a control during runtime?
Hi, I would like to know how to delete a control when the user presses the Delete key on the keyboard (For example, there is a label in the form, and the user clicks on it and presses Delete). I was trying to use the KeyEventArgs but it always gives me an error message stating that it is not set to an instance of an object.. There is no real way of finding out which control was clicked upon in runtime mode - and besides you cannot select a label control during runtime AFAIK however to remove the control in an easy way: this.Controls.RemoveByKey( "ControlName" ); you can perhaps go through each control in the Controls collection and see if the control has focus, if so, remove it with ...Show All
Visual C# Creating and Displaying graphs and charts in C#
I was wondering if there were any prebuilt chartting functions in VS2005 or the .NET framework as a whole Or would I be required to purchase one of the many 3rd party tools out there If the latter is the case, have you got any ideas for a quality, clear-display, student-friendly version. Thanks. You could use Crystal for generating reports or Visual Studio Tools for Office for linking Microsoft Office. If those aren't right for you, you should try finding a third party tool. There are some open source solutions. - Charlie ...Show All
SQL Server how can i update CERTIFICATE expiry date ?
Hi, I created a master key and CREATE CERTIFICATE mycer WITH SUBJECT = 'data encrypt',START_DATE = '12/1/2005',EXPIRY_DATE='7/9/2006' GO CREATE SYMMETRIC KEY mySymetric WITH ALGORITHM = TRIPLE_DES ENCRYPTION BY CERTIFICATE mycer,password='mypass'; GO and i created a table with varbinary field and i added 2 encrypted records and i got it properly i need to update the expiry data for my certificate , so i dropped the symetric key and their certificate and run the following CREATE CERTIFICATE mycer WITH SUBJECT = 'data encrypt',START_DATE = '12/1/2005',EXPIRY_DATE='12/12/2006' GO CREATE SYMMETRIC KEY mySymetric WITH ALGORITHM = TRIPLE_DES ENCRYPTION BY CERTIFICATE mycer,password='mypass'; GO i tried to get the adde ...Show All
.NET Development OleDBCommand.ExecuteNonQuery - HELP????????????
I want an MS Access table to return a single record from a query So that I can use output parameters (oledbParameters) and Execute NoneQuery to Read the value from access table See the code below ( is it possible ) Thank you in advance Public Function GetPrice( ByVal ipkCatalogID As Integer ) As Double Dim opAdptShoppingCart As New OleDbDataAdapter Using opConnShoppingCart As New OleDbConnection(ConnectionString) Try Dim opCmdShoppingCart As New OleDbCommand( "GetPrice" , opConnShoppingCart) opCmdShoppingCart.CommandType = CommandType.StoredProcedure Dim opPrmShoppingCart As New OleDbParameter opPrmShoppingCart = opCmdShoppingCart.Parameters ...Show All
Audio and Video Development What's the definition to this term?: Place points in the audio/video file.
What's the definition to this term : Place points in the audio/video file. thanks. ...Show All
Software Development for Windows Vista How do I get my custom activities to appear in the toolbox?
I have a project with some activities which all appear in the toolbox while I’m working with the project. Next I compile the project, open a new project, and reference the assembly from the first project. What do I have to do to get the activities from the first project to appear in the toolbox automatically I’m using the ToolboxItem as shown below: [ ToolboxBitmap ( typeof ( Page ), "ExtendedCodeActivity.ico" )] [ ToolboxItem ( typeof ( ActivityToolboxItem ))] [ Description ( "Like a System.Workflow.Activities.CodeActivity" )] [ Designer ( typeof ( ExtendedCodeActivityDesigner ), typeof ( IDesigner ))] public partial class ExtendedCodeActivity : Activity { ... } Should I use the ...Show All
.NET Development FileLogTraceListener class - implementation ?
Hi friends, Anybody tried using the FileLogTraceListener class for data logging to text files I've been reading this and getting more confused. If any noble, generous soul can explain it to me or better still share the code snippets to make it work I would be highly obliged. Thanks, Kunal I would strongly recommend not creating FileLogTraceListener in your code when you need them, but to follow the standard method and create a correctly configured TraceSource -- e.g. for the example below TraceSource ts = new TraceSource("mytrace"); [or VB syntax]. FileLogTraceListener is not intended to be created directly in the code, and I think it would create more problems in the future (and less flexibility), than doing ...Show All
SQL Server How to use already created Dimensions in SSAS project in new Cube
I have an task in which I have to use already created Analysis Services project for building up new cube. now for building up new cube i need to use some of the dimensions that are already in place. and some i have to create.. Till Data Source View I have almost done. But while cube designing from Data Source View I am facing problem. I am not able to use already present dimensions. I am using wizard to construct CUBE. now what happens when i create the cube using wizard it automatically creates already present dimensions under new name by appending 1 or 2 etc. I tried the other way by unchecking the already present dimensions but this generates other problem after finishing this way i couldn't see relationships presnt in fact and dimen ...Show All
Visual Studio Debugging AppDomains
Hi! I need to debug code loaded into separate AppDomains, but it seems VS debugger will not stop at break points in these AppDomains. How can I make the debugger do this Thanks in advance. Dmitry. goddamn it! feel like a stupid :-( Thank you, John! I did actually forget to load plugin's debug symbols into appdomain along with its code. ...Show All
Visual C++ Can't figure out this bug
error C2872: 'XMLHTTPRequest' : ambiguous symbol error C2872: 'IXMLHTTPRequest' : ambiguous symbol Could be really simple to someone else but I have just not been able to figure it out. Here is my code so far. #include <stdio.h> #include <iostream> #import "c:\windows\system32\msxml.dll" using namespace MSXML; using namespace std; int main( int argc, char * argv[]) { CoInitialize(NULL); // Variables. MSXML::IXMLHttpRequest* pXMLHttpReq=NULL; bstr_t sUrl = "http://server/public/TestFolder" ; bstr_t sMethod = "MKCOL" ; _variant_t vUser = L "Domain\\Username" ; _variant_t vPassword = L "!Password" ; _variant_t vAsync = ( bool )FALSE; bstr_t sReq = "" ; ...Show All
SQL Server Copying a report to another report in same solution
How can I copy a report and all its supporing queries and make a duplicate so that report1 and report2 are duplicates. Report 2 will be little different than report1 but the basic queries and parameters will all the same. I can then edit the report layout to what the new report will look like. I do not want to have to cut/paste one object at a time. Is there a better way You can do this directly from within Visual Studio. Right click on the report you want to copy (in Solution Explorer) and select 'Copy' (or you can just highlight your report and hit Ctrl+C). Then press Ctrl+V. This will create a new duplicate report with 'Copy of ' prefixed on the report name. Hope this helps. Jarret ...Show All
Windows Forms How can I get tableadapter to process dynamic sql 'select' queries?
Environment: Sql Server 2005 express, VB 2005 express, .Net 2.0 I want to get a tableadapter to execute a query like the following: Select * from dbo.table where lastname > bbb and lastname < ffff Each time I execute the tableadapter, I want it to use the current query I have constructed for its retrieval logic. Essentially I want to provide the whole query and not just a portion of the query to the tableadapter. Is this possible/practical or do I need to abandon the tableadapter and look in another direction TIA Gary Thanks for this solution.. It works great. I was using TableAdapters, and bringing back all data, then running a 'Select' statement against the DataTable... Unfortunately this was f ...Show All
Visual Studio Express Editions Need help with wildcards in query
I've been using Microsoft Visual Basic 2005 Express Edition: Build a Program Now! ( by Patrice Pelland) to try to learn VB, but I am having a problem with the Car Tracker example in Chapter 8 (databases). Set up the following query using 'Query Builder': SELECT Listing.ListingID, Listing.ColorID, Listing.MakeID, Listing.CarTypeID, Listing.DateSeen, Listing.Year, Listing.Price, Listing.Cylinder, Listing.HP, Listing.URL, Listing.EPGCity, Listing.EPGHighway, Listing.Notes FROM Listing INNER JOIN Color ON Listing.ColorID = Color.ColorID WHERE (Color.ColorName LIKE '%' + @colorname + '%') Tested it out (from within the Query building wizard) and it does return values as expected ('b' returns both 'Dark Blu ...Show All
Visual Studio 2008 (Pre-release) Problem with MEX WSDL
Hello, I was trying to use an WCF web service from SQL Server Integration Services (SSIS). This web service returns an array of int and an array of a data contract. The WSDL is provided by MEX. There are 4 schemas xsd0-xsd3. xsd1 imports xsd2 and xsd3. And the WSDL imports all xsd files. The problem is that SSIS doesn't like the double imported schemas. So It doesn't work. After manually editing the wsdl and removing xsd2 and xsd3 it works. Are the twice imported schemas a bug Or is this standard conform Thanks, Uwe A Web Service is used by SSIS with a WebService Task: Define HTTP connection to URL for the Mex-WSDL: ... wsdl. Use HTTP connection and specify file for storing the wsdl loca ...Show All
Visual FoxPro convert memo field and contents to text file
Hi, I have a table order.dbf in visual foxpro which contains of memo field. My table is as below:- order_no order_date prdcode order_qty remark B00000001 26/07/2006 2020173 10.0 memo When I double click the memo I'll be able to see the details. Eg. order has been cancelled. I would like to convert all the table information including order has been cancelled to text format with a specific alignment. I'm beginner user of visual foxpro. Kindly advice how to do that. Thank you. It depends on contents of memo. Since in VFP a memo field can hold anything up to 2Gb you might want to do that with XML. Check CursorToXML. Another alternative is ADO. Or it might be a ...Show All
