Francisco Graziano's Q&A profile
Visual Basic Create a comment snippet
Hi, I would like to create a snippet for comments. This is easy for static data but I want to add the sub or function name dynamically so wherever I insert the snippet it should add the name of the function or sub that I'm currently in. Guess it would look something like: ' <Procedure name> ' ' Objective : ' ' Parameters : ' ' Author : ' ' History : And obviously I want the Author and Procedure name tags to be filled ...Show All
Visual Studio Team System Can we change host files to do webtest on testing website?
Hi, Sometimes we need test webpages on testing website not livesite. and we have many test servers with different domains, when we did manual test , we can change host file: add test's servers IP --> livesite url but we found changing hosts file doesn't make any sense to VSTE. It still run on the livesite. so How can we do any config to make that we can use one script running on different test server thanks in advance. ...Show All
Windows Forms app.config file and deployment
Hello, I have a windowsform app. I have included the database string connection in the app.config file. It works fine on the developer box, but when I try to deploy, the application cannot find the connection string. Is there something I have to do with this file when deploying. Regards Peter Peter, your suggestion to use <app_name>.exe.config fixed the issue I was having. Thanks. ...Show All
Visual Studio Express Editions SystemParametersInfo
I know that I need to use the SystemParametersInfo API to get the desktop background but again I am having some problems. Can anyone point me in the right direction with this. I would greatly appreciate it. Here is what I have so far. Public Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" ( ByVal uAction As Integer , ByVal uParam As Integer , ByRef lpvParam As ...Show All
Visual C# checkedlistbox
c#: how uncheck the previous box when a new one is checked selectionMode is one and i have only one selected but more than one checked. CheckedItems is not updatable. I think i have to use ItemCheck event. Thx Just walktrough all items and uncheck them. You can optimize this by caching the last checked item and only unset that one. private void checkedListBox1_ItemCheck( object sender, ItemCheckEventArgs e) { if ( e.NewValue ...Show All
.NET Development SatelliteContractVersionAttribute
The documentation at http://msdn.microsoft.com/library/default.asp url=/library/en-us/vbcon/html/vbconversionnumbersformainlocalizedsatelliteassemblies.asp seems to suggest that satellite assemblies won't work if their version.release.build.revision number won't match that of the main assembly Is this really the case I have a version of an exe at 1.0.2302.14758. I have resource files ALed with /template: to older versions of the exe. However ...Show All
Visual Basic Global Assembly Cach link is wrong
Hello, my problem ist, that I print Documents with Word. To Use Word I have to following Assembly importet in my Programm. C:\WINDOWS\assembly\GAC\Microsoft.Office.Interop.Word\11.0.0.0__71e9bce111e9429c\ After Debugging my Programm the Link is set to D:\Programming\Projekt\bin\release\Microsoft.Office.Interop.Word.dll How can I set the Link back to the GAC When i open my Project on my Laptop an error occured, he tells my that the Versi ...Show All
Software Development for Windows Vista Consolas
can you guys make the lower case g in consolas normal looking or atleast offer an alternative version with the normal looking lower case g Hello. I love this typeface, except for the lower case g and the circles used for lower case i and full stop etc characters... the good thing about courier new was that your able to see the full stop etc characters better, from a programming perspective I hate that you now cant see the full stop e ...Show All
Windows Forms Tip: Using customized DefaultValueAttribute, DescriptionAttribute in a PropertyGrid at run time
Hi folks! This faq describes how to set the DefaultValue and Description for a PropertyGrid (and possibly other Attributes) at run time in Visual Studio 2005! First of all, there's a class "MyDataToDisplay" that contains the Data to be displayed in the PropertyGrid. Second, the class "DescriptionAttribute" and "DefaultValueAttribute" that replaces the original Attributes. Third, a module called "Glo ...Show All
SQL Server Conditionally adding a column to my custom component
Hi, I am building a custom component have a IDTSCustomProperty90 property that can take the value 'True' or 'False'. Depending on its setting, I want to include (or not include) a column in the output. Any advice on how to go about doing this (with some sample code) would be much appreciated! Here's how I'm declaring the property in ProvideComponentProperties() IDTSCustomProperty90 IncludeErrorDesc = ComponentMetaData.Cust ...Show All
SQL Server What is faster: DataReader or DataSet or something else?
Hi, I need to read 250,000 records and show this information. I am using DataReader and it takes 8 seconds. I need to raise it to 0.8 seconds atleast. What is faster: DataReader or DataSet or something else Thank's Alexei DataReader is much faster than DataSet. Actually DataSet is populated using DataReader object. I guess in your case the bottleneck is in the amount of data you transfer to client application. Try to reduce the row size yo ...Show All
Visual C# Basic IO stuff
Hi I have a small pointless program to write nothing fancy and most of it is done. The part where I am stuck is that the program write out to the console the results of a hand from a card game, the result are displayed on the console (this works) but I also need to write the results to an external text file. I am able to all ready write strings to the file but Console.WriteLine(); is not a string. Someone please ...Show All
Smart Device Development ActiveSync + VS 2005
Hi, I'm using VS 2005 Beta to try out developing for my ipaq. During emulation, everything is fine, however when I try to deploy my program to my device, I get an error saying that the ActiveSync version I am using is not supported, and to download the newest version from microsoft. Did that, nothing changes. What's the deal If this continues not to work, can I just drop an EXE onto the device and have it work ...Show All
Smart Device Development listbox and datasource problem
Hi i have one problem with data in the listbox. if i assign Listbox1.datasource = ArrayList1; and then if i work with arraylist items (add, remove), in the listbox is no change. why That is expected as ArrayList produces no notification events, so control is unaware of changes. To refresh the list you can rebind the array list after each change. To do so change the data source to null and set it back to ArrayList. That makes A ...Show All
Windows Forms .NET forms with VB6 parent
Hi, I'm using some .NET created forms from within VB6, and I was wondering if it is possible to have them become MDI childs of a VB6 MDI form Thanks hi WinFormsUser, sorry sorry for interrupting this thread...but i am looking for what you have successfully done (apparently) ...c ...Show All
