Software Development Network Logo
  • Visual Basic
  • Visual Studio
  • Windows Vista
  • Microsoft ISV
  • Visual C#
  • Visual C++
  • IE Development
  • SharePoint Products
  • .NET Development
  • Windows Forms
  • Visual FoxPro
  • Smart Devicet
  • VS Team System
  • Audio and Video
  • Game Technologies

Software Development Network >> Toni Greco's Q&A profile

Toni Greco

Member List

redhot2006
shekhar saran
jeff357
Chrismanster
Tom25
markios
Kanhaiya
ReneeC
Wee Bubba
GeorgeOu
krw
wattem
Dhondtie
mistys77
MShetty
JonEagle
DanInNewWest
NR
BogN
praveench2k
Only Title

Toni Greco's Q&A profile

  • .NET Development Performance of Type.InvokeMember vs MethodInfo.Invoke

    At first glance I'd say MethodInfo.Invoke() would obviously be faster than Type.InvokeMember(). I just wrote a little program to verify that assumption: Type myObject = ... int numTries = 1000; MethodInfo method = myObject.GetMethod( "StaticMethod" , BindingFlags .Static | BindingFlags .Public); DateTime startInvokeMethod = DateTime .Now; for ( int i = 0; i < numTries; ++i) method.Invoke( null , null ); DateTime endInvokeMethod = DateTime .Now; txtOutput.Text += "\r\nTime taken to invoke " + numTries + " times on method: " + (endInvokeMethod - startInvokeMethod).ToString() + " secs\r\n" ; DateTime startInvokeOnType = DateTime .Now; ...Show All

  • Visual Studio Team System Database Validation Rules

    I see built-in database validation rules that can be used with webtests. My quick try to use them the way I use the other validation rules failed, I get an error "DatabaseFieldValidation Validation Object reference not set to an instance of an object. Column=TestColumn, ExpectedValue=Test, WaitTime=15, Retries=1, DatabaseServer=servername". I could not find any document which explains them, can anyone direct me to the documentation or any idea on why I get this error Can these be used with Webtests that test webservices Can anyone please advise on this The exception that is being thrown is System.NullReferenceException: Object reference not set to an instance of an object.    at Compan ...Show All

  • Visual C# why am i getting this error?!!

    I have an application which monitors a database table and it works fine for more than 48hours sometime but then I will get this error on my desktop.. See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject ...Show All

  • Visual FoxPro FORM HELP

    HI I AM A NEW IN THE VFP SO PLEASE HELP ME OUT I AM CREATING A NEW PROJECT FOR INVOICE AND IN THAT I HAVE TWO TABLES ONE FOR COUSTMER INFORMATION AND THE 2ND FOR "ORDER DETAILS" BUT I NEED THIS ALL IN ONE FORM WHICH I HAVE DONE BUT AS I AM TRYING TO ADD ROWS ITS NOT LETTING ME IN THE "ORDER DETAILS " GRID. I ALSO WANT TO ADD THE CALCULATOR AND A CALENDER IN THE SAME FORM. NILKAMAL They should be the same. Linkmaster should be your Order table name and RelationalExp should be your Detail table's Index name that's usually created for your link key. Both tables should be indexed and set up a link. See the MS example. ...Show All

  • .NET Development sorting data in tables

    as abv, how can i do it im using sql server express 2005. my situation.. i had retrieved data and sort them before i add them into a combobox. so the problem now is that the ID at the combobox doesnt tally with the ID at the database. the data in the table will continue to increase as time goes.. eg. combobox 0. apple 1.orange 2.pear table 0.orange 1.pear 2.apple i would like to sort the data before i can use the ID for another purpose. i do not understand ur code. but somehow u gave the idea that i can use selecteditem. i will then do a check in the database with it. ...Show All

  • Visual Basic command buttons

    Hello! How can I assing icons to command buttons Hi, here is an example from the msdn with example-code: http://msdn2.microsoft.com/en-us/library/system.windows.forms.buttonbase.image.aspx ralph ...Show All

  • Visual Studio 2008 (Pre-release) MSDN Managed Newsgroups for WPF?

    Are there any plans to provide Managed Newsgroup support for WPF and the rest of .Net 3.0 It seems strange that there are some 230 managed newsgroups, including WinForms, but nothing for Microsofts new flagship UI. -- Just feeling a little disgruntled here because more often than not, when I ask a question nobody has an answer. Michael Hi Rob, Did you get any further with this A couple of other links:- http://msdn2.microsoft.com/en-us/subscriptions/aa974230.aspx http://msdn.microsoft.com/newsgroups/managed/default.aspx I've found the managed groups incredibly useful in the past as you can rely on getting a fairly authorative answer to more difficult or subtle question ...Show All

  • Visual C++ modal dialog box not closing quickly enough

    Hi. I have a single threaded MDI application with several windows that are concurrently open and displayed during normal operation. I need to print the contents of a user-selected window. Per end-user request I display a CDialog based modal dialog box that allows the user to select the window he wants to print and then click on the OK button. I have code that then takes a bitmap snapshot of the requested window and prints it to the printer(from KB article q186736). So far so good, but if the dialog box overlaps the window that the user wants to print, the overlapping part of the dialog box is also printed. This doesn't make sense to me - the dialog should completely go away as I understand it. FWIW here's a code snippet: ...Show All

  • Software Development for Windows Vista vista blocks application at startup

    Hi, I'm a software developer and I have a question about Vista. Our application (a .NET 1.1 app) requires Administrator access and we have the "requiresAdministrator" access level defined in the application manifest. That part is working fine. However, our application needs to startup when the computer boots so we have it in the "startup" folder. For some reason (I can't imagine why) Vista puts it in the "blocked startup programs" list and the user needs to manually launch it. This is not acceptable for us. Is there any way to circumvent this problem And by the way, why is there no way for the user to say "I want this app to run every time I reboot so stop blocking it!" On a side note, I not ...Show All

  • SQL Server Chart to WORD

    How to export chart to word.Please help me. Thanks for your suggestion Adam.But I can't tell this to my client.Is there any another method ...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 link should help: http://msdn2.microsoft.com/en-us/library/microsoft.sqlserver.dts.runtime.connectionmanager.properties.aspx ...Show All

  • SQL Server Merge replication downloading old data to the suscriber

    I'm having an error with merge replication my suscriber are downloading old data, all this start happen after I install SP4. let explaint this with more details , if a made an update to a row in a table from the publisher , the agent history show that 1 change have downloaded to the suscriber, a put an audit in the suscriber and yes one update was downloaded but the row still the same, look like the suscriber downloaded old data instead of the curent change that i made. If i delete the row, the rows gets delete at the suscriber, if a insert the row the row get insterted ok. The problem only happen with rows inserted at the suscriber, that later on get update at the publisher. My suscriber has MSDE 2000 SP3 an my Server has SQL ...Show All

  • Internet Explorer Development opening new tab in IE7 via IHTMLWindow2::open method. Possible?

    hi i need to open new tab in IE7 from my extension code and to get an IHTMLWindow2*, pointing to this tab. Exactly tab, not a new window. Is it possible to do it via IHTMLWindow2::open method or are where any other ways to do it from extension I walked through some docs and forums and heard opinions that a place(new window or tab) in which IE7 opens pop-ups (as ones created by IHTMLWindow2::open) is controlled by user settings and extension can't change it Can't anyone tell is it so So sad if it is.... Than you in advance. "4) Setting tab active I havn't found a way to do it :(" How about if you would set one of the tabbrowser windows visible and hide the current one ...Show All

  • SQL Server Object Explorer/Server Explorer Error

    I have just installed the released VS2005 as well as the released SQL2005.  When ever I try to browse my SQL Server with either the Object Explorer in MS SQL Server Management Studio or the Server Explorer in VS2005 I get the following error: Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.VisualStudio.OLE.Interop.IServiceProvider'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{6D5140C1-7436-11CE-8034-00AA006009FA}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)). Does any one have possible solutions for me Any help would be greatly appreciated. --Nick ...Show All

  • Visual Studio Desing of local report Can Grow and Can Shrink don't work

    Hello, I have some rather big reports with huge number of columns. How I can make the report dynamically change columns's size Unfortunatly I see no effect of setting Can Shrink = true. Thank you for your help. ...Show All

©2008 Software Development Network