jazzmy's Q&A profile
Windows Forms [c#]out of mind with cell formatting
Hi again :( Im still having problem with the datagridview. All i need, is to format a number like "1" to "1.00" in some cells. Im trying this using CellParsing, CellFormatting and CellLeave. On designer i've already set "default cell style format" to "t". Before posting, i've already search the entire forum, but i've not found a solution for my problem. Any helps Thx. Hi :) First of all, thank you for help. This code doesnt work for me :( Here is my code in Cell_EndEdit function (because i need a formula column) private void dgv_CellEndEdit(object sender, DataGridViewCellEventArgs e) { int last column = 3; DateTime dt1, dt2; bool isDt1, isDt2; if(dgv.Rows[e.Ro ...Show All
Visual Studio Copy/Paste
Is it normal that when I selected a shape, the copy/paste operations are disabled I suppose copy and pasting of shape is not supported Is there an easy way to make it work Thanks! Mike The code is specific to the DSL Tools, which is an diagramming add-on to Visual Studio 2005. Sorry, it won't work in your case. Mike ...Show All
.NET Development How to find COM file(dll) dependency at runtime?
Hi Everyone, Can anybody please tell me how can I find COM dependency programatically I have one COM file (dll) which is dependent on another c++ dlls. Now I want to find programatically that dlls..................by reading dll header or whatever I don't know exactly how can I do that...............There should be some place in COM file(dll) where all these information (which dll this file is using) get stored.......................... I want to retrieve these info............... ...Show All
Visual FoxPro ceiling to the nearest nickel
Dear Friends, How to round a number in foxpro like the ceiling function in Excel does, giving the number to be rounded as parameter 1 and the multiple we need as parameter 2 eg ; ceiling(4.20,0.05) = 4.50 Is there a possiblity to do the same in foxpro, because the ceiling in foxpro rounds up to the nearest integer eg: ceiling(4.20) = 5.00 there is noway of specifying the multiple we need as in the case of Excel Any help would be greatly appreciated. Thanks satish there is a function called ceiling in foxpro. syntax : ceiling(<expn>). where expn is the numeric expression. it just returns the next highest value. for eg. ceil(10.1) returns 11 and ceil(10.6) also ...Show All
Game Technologies: DirectX, XNA, XACT, etc. LoadGraphicsContent for Game and Component - What is the best practice...
Hi, I've followed the spacewar example and put the call to new ContentManager in the LoadGraphicsContent of the Game. Because I need to use the content manager in some of my components I have made it a static property on the top level game. I can call now call upon the content manager from the LoadGraphicsContent method within my components and load textures and stuff as required. However, it seems that the LoadGraphicsContent of the components are being called before the one in the Game. What is the best practice with regards to setting up the ContentManager, and using it within the Game and Component's LoadGraphicsContent. Any ideas Kind Regards, James Jim Perry wrote: I'm ...Show All
Visual Studio 2008 (Pre-release) naming a uielement within a custom usercontrol
Hi, I have a usercontrol which I''m using like so <MyUserControl> <Label>Field 1:</Label> <TextBox/> <Label>Field 2:</Label> <ListBox x:Name="MyListBoxName"/> </UserControl> I'm trying to name the listbox but I kept getting this error Error 4 Cannot set Name attribute value MyListBoxName' on element 'ListBox'. 'ListBox' is under the scope of element 'MyUserControl', which already had a name registered when it was defined in another scope. Line 31 Position 14. C:\Documents and Settings\genri\My Documents\Visual Studio 2005\Projects\UserControlXAML\UserControlXAML\Window1.xaml 31 14 UserControlXAML I don't know why Any input would be great. ...Show All
Microsoft ISV Community Center Forums Help With using XML Index file in Excel VBA...
Hi Ive read through the MSDN reference library for help on XML in VBA - although, I cant find any answers. Maybe you guys can help me out. I have an XML Index file. This file specifies a userId, and the path where that users file can be found. As Below... name subject_id output/2000027/02934289 850912AB05108268B3A3F5B4340CC1F9 output/1999270/06491337 6A49B2D34F376C2E257FBA9F5979C556 output/2000024/02931089 AA6194970A98F3C5542BF226A627051D So, for user AA619... the file path is (output/200024/02931089) The index file is very large. How do I go about: 1. Opening XML File 2. Go through each entry 3. Set directory to that entry, and open the fi ...Show All
Software Development for Windows Vista Visual Studio 2003 hangs on Vista Build 5472
If I try to use the "Find in Files" feature of VS 2003, it just hangs VS and you can only kill the process. This happens when you select search in Entire Solution or Current Project. Note: I have launched VS to run using Administrator. This did not happen on Vista Builds 5342 or 5308. Is there any workaround Thank you very much! I had to install XP just to use VS 2003. Now that this sorts out the find-in-files problem, it's working just fine for me now. ...Show All
SQL Server converting (casting) from decimal(24,4) to decimal(21,4) data type problem
Hello! I would like to cast (convert) data type decimal(24,4) to decimal(21,4). I could not do this using standard casting function CAST(@variable as decimal(21,4)) or CONVERT(decimal(21,4),@variable) because of the following error: "Arithmetic overflow error converting numeric to data type numeric." Is that because of possible loss of the value Thanks for giving me any advice, Ziga You still haven't answered how you would like to handle the larger values. Do you simply throw those away What would it mean to store a truncated result in the database And if you use it later then you are going to make wrong assumptions. It seems like your table schema is wrong and if you want to retain ...Show All
Visual Studio Team System Using Excel as a DataSource for coded web tests
I have a web test which is databound. The backing datastore is an Excel spreadsheet and this works. However, if I turn that test into a coded web test the tests fail to run (note the tests don't fail, they don't even execute). If I remove the DataSource attribute from the coded test then I can get the test to run. The DataSource attribute looks like this: [DataSource("DataSource1", @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\temp\Starbuzz\Starbuzz\testdrivendata\CoffeeMakerTestData.xls;Extended Properties='Excel 8.0'", DataBindingAccessMethod.Sequential, "Sheet2$")] And I get the following failure Error WebTest1Coded WebAppTest Could not run web test 'WebTest1Coded' on agent 'MACHINENAME': Ob ...Show All
Visual Studio Express Editions Kindly convert this vb6 function to vb.net
Public Function ImeiChecksum(IMEI) 'On Error Resume Next Table = Array(Array(0, 8, 6, 4, 2, 9, 7, 5, 3, 1), Array(0, 9, 8, 7, 6, 5, 4, 3, 2, 1)) Position = 1 For I = 1 To 14 ImeiChecksum = ImeiChecksum + Table(Position)(Mid(IMEI, I, 1)) MsgBox ImeiChecksum If Position = 1 Then Position = 0 Else Position = 1 End If Next I Do While ImeiChecksum >= 10 ImeiChecksum = ImeiChecksum - 10 Loop End Function Thanks in advance! The .net version of that function should look something like this: Public Function ImeiChecksum ( ByVal IMEI As String ) As Integer Dim Table (,) As Integer = New Integer (1, 9) {{0, 8, 6, 4, 2, 9, 7, 5, 3, 1}, {0, 9, 8, 7, 6, 5, 4, 3, 2, 1}} Dim Position As ...Show All
Visual C# 101 Samples for Visual Studio 2005 (C# Version) how to use it?
Hi, I have just dl 101 Samples for Visual Studio 2005 (C# version). It contains only .aspx and .aspx.cs files with one or two .config and .css. How can I run those sample Click the aspx will bring up sharepoint designer and display the XML code along with the design view. Click the aspx.cs will bring up VS 2005 display the C# code. However I cannot even build it. The question is how can I run the sample like a real application or web site What software I need to have I have VS 2005 sql server 2005 .net framework 2.0 mailfront You have everything you need to use the samples, just put your XP installation CD in your CD-ROM, close the autorun if it came up, then open the Add/Remove Progr ...Show All
Software Development for Windows Vista Property persistence inside workflows
I have the following 2 questions about the workflow If I have a public property (eg. Title) on my Workflow, How do I persist its value when the workflow instance goes idle. Once I load my workflow instances from the persistence store how do I access my property's (eg. Title) value outside the workflow. I found an article on the internet which talks about Instance state and properties but I am not clear where/how I would implement that. I would really appreciate if anyone can help me solve the problem with some code samples. Thanks, Juma Thanks again. 1) Thats what I wanted and expected. 2) Since I can't(shouldn't) access the workflow instance directly. I created a new event on my state and after handlin ...Show All
Microsoft ISV Community Center Forums Cells
I'm really confused as to why I activate a cell: x = ActiveCell.Row Yet when I try to select that cell: Range (Cells(x, 1)).Select It comes up with an address way out of whack! What am I doing wrong Thanks for your reply. I think I figured out what is wrong, but I'm not sure how to fix it. The cell I am referring to has a number in it, P027812. The formula seems to be using that cell data as an address (coordinates) rather than just data. So when I try to select the range, it selects column "P" and row 27812. Any idea how I can fix this ...Show All
SQL Server Sql Transactions
Hello All, When i am working with Transactions i got one doubt. If i am inserting any records into a table with primary key if a transaction is rolled back i am finding one primary ID is missing. Is it so. if you are using Identity it is. if you inserted records within a transaction and rolled back that transaction, the identity field will take the value after those rolled back records ...Show All
