John, Roy's Q&A profile
Visual C# Update DataGridView?
I have following code for the form closing event: private void CurrenciesList_FormClosing( object sender, FormClosingEventArgs e) { dataGridView1.EndEdit(); if (dsCurrencies1.HasChanges()) { DsCurrencies chngs = ( DsCurrencies )dsCurrencies1.GetChanges(); sqlDataAdapter1.Update(chngs); } } Now, problem is the current cell: when I close the form changes on the current cell are not updated if I do not leave the current row. If I close form while I am still in the row all changes to this row are not accepted. It is like this that method EndEdit does not saves the curent row. How can I save current row in the DataGridView I guess anoth ...Show All
Software Development for Windows Vista Handling exceptions in workflows
I must be missing something basic here. I understand how to use the FalutHandler activity. But what I don't understand is how exceptions are handled by it. My example is a console workflow app. I set a connection string in code and connect to a database using conn.Open. But I purposely mess up the connection string and the connection fails. I have a FaultHandler with FaultType of SqlException. But at runtime, when the exception occurs the Framework handles it for me and I see the error message in Visual Studio. If I click Continue my FaultHandler code executes. Why is Visual Studio showing me my exception rather than letting the FaultHandler handle it The same thing occurs in the Nested Exception Handlers sample. This uses Thr ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Need some basic information - i.e. help. :-)
We are looking at performing some work for the Army using this XNA technology. Before we jump in with both feet, we were wondering if someone could answers some questions: 1) Can we perform complex motion such as a person walking 1a) Can it be automated such as bi-ped motion 2) Can math equations be used such as wheel rotation matching the ground distance 2a) Can this be automated Any other help / links would be greatly appreciated! Thank you! (moving to XNA forum) Check out the FAQ in the XNA forum there are planty of websites with tutorials. Right now there are very few animated mesh samples - mainly becuase we are all waiting for the official ones from Microsoft. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. What kind of data will invoke the excution of a GS
GS provides a flexible way for users to generate new primitives. We want it is more flexible. If we emit some new primitives without use any input data such as position or color. This case supported by current DX10 MS SUPPORT: void GS(inout TriangleStream<PSIn> stream) { PSIn element; element.pos = float4 (0.0f, 0.5f, 0.5f, 1.0f); stream.Append (element); element.pos = float4 (0.5f, -0.5f, 0.5f, 1.0f); stream.Append (element); element.pos = float4 (-0.5f, -0.5f, 0.5f, 1.0f); stream.Append (element); } ...Show All
SQL Server visibility for a field
I have a field on a report where on occasion, will display 'PR'. We need to have this field hidden if that is the value of the field. I wrote an expression for visibility like: iif(Fields!ThisName.Value="'PR'", false, true), however it still diplays. Is there something else that I need to do here Thanks for the information I think I did find the problem. The data is being pulled from an AS/400 database through SSIS, but there are trailing spaces. So now I tried this =cstr(Fields!ThisName.Value).TrimEnd="'PR'"; however now I am getting "The hidden expression for the textbox "TTLNAME" contains an error: Object reference not set to an instance of an object." ...Show All
Visual FoxPro Object assisted report in dot matrix printers
I encountered a problem using object assisted reporting. Preview works fine but when I tried printing it in dot matrix printers like Epson FX-890 or Epson LQ-2170, it printed smaller fonts and the whole letter size paper was only printed 3/4 of its size, what could be the problem To further determine the cause of the problem, I tried printing it using report behavior 80 and it came out fine, thus report behavior 90 is to be attributed as the problem for these printers. Please enlighten me on why this is happening. Thanks. i think this is VFP bug. my partner also reported having problems with dot matrix especially with customed size paper. ...Show All
Visual C++ list boxes and data sources...
Here is what i am trying to do: listBox1 displays information from a database. when I click on an item in listBox1, listBox2 displays information from another table. However, i try putting this code in: private : System::Void listBox1_SelectedIndexChanged(System::Object^ sender, System::EventArgs^ e) { if (listBox1->SelectedIndex.Equals( "Elves" )) { listBox2->DataSource = "gamestaBindingSource2" ; } else { listBox2->DataSource = "gamestaBindingSource3" ; } } The program runs, but when you get to this section, the following error appears: "An unhandled exception of type 'System.ArgumentException' occurred in System.Windows.Forms.dll Additional ...Show All
SQL Server Ignoring NULL values in LOOKUP transformation.
Hi, Can you please tell me the way to configure the LOOK UP transformation so that it will ignore all the null values I want to configure a Look up component for the column "Col1" as follows All the NULL values of Col1 should not be considered for look-up process. They should be passed to the downstream component as valid rows. All NOT NULL values of Col1 should be processed by the Look up component. If there is no matching value present for any NOT NULL value of Col1 then it should be directed to error output. Regards, Gopi Frank, Thank you for your reply. But, Is there any way to avoid conditional split I would like to configure Look up component itself ...Show All
Commerce Server Custom and Orders Manager crash
After I add a credit card to a user's profile and then I try to open the user's profile in the Customer and Orders Manager, it crashes. If I debug it, the error is: A property value provided in the profile XML could not be persisted to the underlying data store. Validation of the property value failed. Profile Type = 'CreditCard' Which is odd, because this used to work fine. The only thing that I recently changed that remotely might affect this is I extended the orders system by adding two weakly typed custom properties. These are working fine for me. Any ideas on how to proceed Best Regards, Brad I'll answer myself on this in case someone has the same problem. I tracked it down to the Customer and Ord ...Show All
SQL Server how to extract username and password from ftp connection manager?
Hi, I would like to know how to programmatically extract username and password from an ftp connection manager. Thanks. I got this code but I want to get the values of every available property in a connection manager. Please help. Thanks! For Each connMgr In myConns Dim connProperties As DtsProperties = connMgr.Properties Dim connProp As DtsProperty For Each connProp In connProperties MsgBox(connProp.Name) Next Next this is where i got the code. I do not know how to extract the value from the properties. there is no ".value" from intellisense. ...Show All
Visual Studio Tools for Office create a new worksheet in a excel file using VBA
I have a button on the sheet1 of the excel file and when i click on the button, i want it to help me create a new excel worksheet and put it at the last sheet and name the sheet base on date by the format "YYYY/MM/DD" can anyone teach me how to do this. Thanks Hi :-) This forum is dedicated to the VSTO technology: a way to substitute .NET code for VBA in Word and Excel. In order to get help with VBA questions for Excel, you need to ask in the excel.programming newsgroup which you'll find here: http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.excel.programming&lang=en&cr=US Enjoy ! ...Show All
Visual C++ Memory leak identifier tool for Dot Net
Hi all, Can anyone please tell me which is the best tool (free) for identifying memory leaks in dot net application Thanks in advance Kishaloy wrote: Hello Pintu, I have downloaded the software but I cant install it. It gives the following error message: This installation package is not supported by this processor type. i am not Sure Dude .Why are you Getting this Error.Okay Just try to Search on Google i think n no of free Tools are available for this. Thanx ...Show All
.NET Development Adding column to a dbf file
IDE: Visual Studio 2005 Language: Visual Basic Question1: "How would I alter a table (specifically add a column) that already contains data Question2: "If I am unable to add a column to a dbf file that contains data, then how should I approach this problem " Question3: "Should I use an alternitive way to read and write information to a dbf file (I am looking the quickest way to process data.)" Situation: I am trying to find away to quickly process information that is contained in a dbf file. Processing consists of removing records, adding records, and adding fields to a dbf file. Most important processing must be exceptionally fast. For example: I am currenly working on a way to programmically remo ...Show All
Windows Forms Control.DrawToBitmap and Performances
Hi all, I'm currently thinking on using quite intensivelly the DrawToBitmap method found in the Control class to render controls in certain places of my form. I was wondering if any of you would have any idea of how it could affect performance Thanks, Amadrias I don't think there is a performance issue in using DrawToBitmap method repeatedly, since all the method does is send a WM_PRINT message to the control to print itself to a device context, and bitblt it to a graphics object. Regards, -chris ...Show All
.NET Development Rong in calculation !!
Hi I got a funy problem I could not solve look at following code and run : Dim S As Single = 2345.235 Dim D As Double = 3456.456 MsgBox(2345.235 * 3456.456) MsgBox(CType(S, Double) * D) Dim Dt As New DataTable Dt.Columns.Add("s", GetType(Single)) Dt.Columns.Add("d", GetType(Decimal)) Dt.Columns.Add("r", GetType(Decimal), "s * d") Dim R As DataRow = Dt.NewRow R!s = 2345.235 R!d = 3456 Dt.Rows.Add(R) MsgBox(2345.235 * 3456) MsgBox(R!r) after running u will find out : 8106201.5871600006 8106201.9584589843 8105132.16 8105132D as u can see non of each groups are same!!!! so , I ...Show All
