Philip Jaques's Q&A profile
Visual Studio Express Editions I do a use the textbox name with out typing it
i am trying to take the texbox name and then send it to another procedure without typing the name of the textbox from the leave event of the textbox Normally when you create an event handler say for a windows forms application event there are two parameters - normally the first is sender as object and the second is some kind of EventArgs. Some examples are Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click,Button2Click End Sub The sender is actually identifying which control is initiating this ...Show All
Visual Studio Team System Migration error TF60096 - false alarm??
First: We've (test)migrated a small VSS database to TFS, following the instructions in " Walkthrough: Migrating from Visual SourceSafe to Team Foundation ". The Migration report shows 13 errors, all of the same type/description: "TF60096: Unable to migrate due to Team Foundation Error: The item $/...path.../<filename> could not be found in your workspace" . In the "File or Folder" column a specific version of the containing folder is menitoned (it seems), but when checking in the original VSS database, the projectfolder has not reached this version number. The file is OK in TF, and identical with the version in VSS. This type of error also occurs on items, that are deleted (but not destroyed/purged) in VSS. Since this is ...Show All
Visual C++ Need help to setup STL in C++
Hi, I want to setup the environment to use STL. However, I cannot do it correctly, always get Internal Compiler Error :(. I download the online .h files at http://www.sgi.com/tech/stl/download.html . All I want now is to setup and use "hashtable". Can someone help me structure of my project folder: ..\Desktop\BoostCLib\ <= contains solution file: .sln \stl & ...Show All
SQL Server Currency Conversion SSAS 2005
I would like to have calculated members in a currency dimension that will apply an exchange rate to all applicable measures based on what the user selects. All measures in the fact table are stored in one currency (USD) but need to be reported in a variety of currencies. In AS 2000 this was accomplished via a lookup cube. I have read the documentation on books on line regarding currency conversion with the Business Intelligence Wizard in SSAS 2005 and this seems overly complicated and will not work based on our needs (since our data is stored in one currency and only the most recent exchange rate is important, no date dimension is necessary). I have a fact table with with currency code and converstion rate. Since all of our measures are ...Show All
Visual Studio Express Editions ADO to ADO.NET
Hi, i migrate a VB6 Programm to VB2005 Express and i dont understand some parts of ADO.NET! In ADO i often used the following code : SQL = "Select * from tbCustomer where Key = " + CStr(strKey) Set rs = New ADODB.Recordset rs.Open SQL, glbDBConn, adOpenDynamic, adLockOptimistic If rs.EOF Then rs.AddNew rs("SomeFieldsForAddNew") = .... ..... Else rs("SomeFieldsForUpdate") = .... ..... End If rs.Update rs.Close Set rs = Nothing Has onyone a codesample how i can do this in ADO.NET Thanks for your help. Markus Hi Gudel, i know... sorry!! But the good thing in the old ADO way was that i can check directly if a Record exists or not. If not i can make a AddNew ...Show All
Windows Forms dataset question
Hi, I have been programming VB for a while now and lately I decided to give C# a try. Currently I am wrestling with Datasets and I need to know how to access a particular cell in a Dataset using C#. In VB I would do this: DSData.Tables(0).Rows(i).Item(j) but C# doesn't have the .Item for the Datarow. How do I do this in C# Thanx it should be: DSData.Tables[0].Rows[ i ].ItemArray[j] or even better: DSData.Tables[0].Rows[ i ][j] of course there is no space between the i - its just for the forum editor to prevent it from displaying an emoticon does this help ...Show All
Visual Studio Team System Build Type problem
Hi all, I've created a build type template that avoids having to sepecify a specific solution to build and a specific test metadata file to use using the code: <SolutionToBuild Include="$(SolutionRoot)\**\*.sln" /> and <MetaDataFile Include="$(SolutionRoot)\**\*.vsmdi"> The problem occurs when I modify the files contained in a team project. For example, when I delete a solution and then build my template the build will fail but the following build will build successfully. I assume this is because each build is based on the last and when something changes from the last build it messes things up. This might not be the case and I'm speaking rubbish. I'm wondering if anyone knows the reason ...Show All
Windows Forms ParentControlDesigner issue
I have a question about a simple UI scenario: - UserControl1, defined with a ParentControlDesigner for child control containment. - UserControl2, defined with a ParentControlDesigner for child control containment. [Designer(typeof(ParentControlDesigner))] public class UserControl1 : UserControl ... [Designer(typeof(ParentControlDesigner))] public class UserControl2 : UserControl ... At design time, from ToolBox I drag and drop UserControl2 item on UserControl1 surface... OK! Then, when I try to put some button or other control on UserControl2 surface, the operation is disabled and the access denied cursor is shown. Why I have overridden the Initialize method for the designer, calling EnableDesignMode me ...Show All
Community Chat .NET Web Browser Effort - First Preview!
Hi Guys, A couple of months ago I started an opensource effort to create a Web Browser better than IE7 in .NET. So far its going GREAT, with a team of 3 including me. As of now, source code is not offered - it will be once I get it to a Beta 2 state. Also, if anyone would like to join the project please send an email to netwebbrowser@gmail.com or add mateuszrajca@msn.com to your MSN/Live Messenger contacts list(email is preferred) Here are some stuff you can help in: Write code(C#), fix bugs in code(C#), make sourcefourge web site, report bugs, optimize code(C#), make app more responsive, make installer, graphics (icons logos) and whatever else you can come up with! Download Now Preview 1! ~Matt ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Getting all players of a session
Hi, i have the following question: I started up a peer session with dplay and now I'm searching for a way to get the names of all players on the server as well as on the client. Thanks for your help I use managed DirectX Hm, ok, thank you... I wondered what alternative I should use as I read this in the documentation... So now I know it . But Sockets have been become a little bit more complex and its difficult for use in games... ...Show All
SQL Server Three level replication schema
Hi I have to questions\problems I would need help with. First I am creating a three level merge replication. I mean I have a main publisher with its distributor, a subscriber/publisher and also with it's own distributor and lastly a subscriber. I start by creating the relation between subscriber/Publisher and the subscriber and than I move up to the main Publisher and Subscriber\Publisher relation. After this second merge I get the following errors and the articles in my Subscriber\Publisher are lost... The merge process could not retrieve article information for publication 'I-Test-Publisher'. (Source: Merge Replication Provider (Agent); Error number: -2147201017) -------------------------------------------------------------------- ...Show All
Visual Studio 2008 (Pre-release) How to return datatable from a typed dataset using WCF service and Jun CTP ?
How to return datatable from a typed dataset using WCF service/ Hi, In one of my application I am using the Typed Dataset that contains many tables. I want to return a particular Datatable form the dataset as following. -------------------------------------------------------------------------------------------------------- Case 1. The following code is working, but the problem is I can not use .EnforceConstraints = false property as this property only available with Dataset. (I want to use this property because I want to return only selected fields from the table and rest of the fields may have not null columns) mydataset.vemployeedatatable itypedstest.get ...Show All
.NET Development date time
Is any way to make an application that gets the correct date time even if the user has changed it from the taskbar No doubt. Unfortunately, the DateTime.Now method returns the system time as set by the user "from the taskbar". ...Show All
SQL Server Drillthrough results conditioning
Hi, I would like to be able to set a condition to define the results of my drillthrough in AS 2005. Let's use an example to explain what I am trying to do : We got a Cube with 2 dimensions ( Time, Products ) and a measure ( Sales Amount). In our cube we have stored detailed informations about our vendors, customers and stores. The following statement should return all rows from the columns Customers, Vendors and Stores names. DRILLTHROUGH SELECT {[Time].[Time hierachy].} on Columns, {[Products].[Product.hierarchy]} on Rows FROM My_Cube WHERE ([Measures].[Sales Amount] RETURN [Fact].[Sales Amount] ,[$Vendor].[Vendors name] ,[$Customer].[Customers name] ,[$Stores].[Stores name] I wonder if it is possible to set a conditi ...Show All
Windows Forms How to program to print this?
I opened a text file which contained a greek character β (beta). I found that the hex value of this character is CEB2 but however, unicode value of this character in Character map is 03B2. Not sure why it is so but, I would like to know how to program in C# so that I can construct and print the beta character (CEB2) and write to file. Please kindly advice. Thanks and urgent If you need to print Symbol fonts abg etc., then one and maybe the only posibility is using Graphics.DrawString Method (System.Drawing) Hope, this is what you need! ...Show All
