Santiago Cepas López's Q&A profile
Windows Forms Thread call methods which update datagrid
Hi All, I am now developing an application and I need to use thread that will execute functions which will update the datagrid. What that function does is actually checks or monitor whether there is any files in a specified directory that has been changed. If there is then read the all the files in the specified directory again and update a datagr ...Show All
Visual Studio VSHPROPID_ParentHierarchyItemid?
Hi, my project system is based on native C++ and the hierutil library. I have a situation where if I select more than one item in my project hierarchy an assert gets fired in hu_archy.cpp on a request for the above property. The assert is fired because the item id given to the hierarchy GetProperty call is not VSITEMID_ROOT (it's actually one of the nodes selected). I've tried reproducing this with FigPkgs or BscPrj but with these projects the request for the property is never actually made. Clearly something specific to my project system is causing the problem, but I'm not sure what. Can someone with access to the VS sources tell me what ...Show All
Windows Forms MenuItems
Hey, Is there a code like the one below that dose the same thing but for a MenuStrip item : ToolStrip3.Items.Add(newbutton) Thanks :) yes...identical: MenuStrip3 . Items . Add ( "TEST" ) or MenuStrip3 . . items . Add ( Text , image , Eventhandler ) ...Show All
Visual Basic Saving/restore windows positions
Using "applicationsettings" to save form position is not working I'm using the following two properties to maintain the form position Location,Clientsize when I minimize or maximize, or resize, it acts very funny. I had to do it manualy by code. also while using a splitter, I save and restore the "splitterdistance" it seems to shift itself a few pixels to the right every time I open the form. does anyone have a solution Thanks Yes, I know this saving and restoring thing is now very common, and it is now 2006 they did not even bother adding it as a property to the form or any other ...Show All
Microsoft ISV Community Center Forums Send Outlook message via VBA Macro in Excel
I have some macro code in an Excel workbook. It has been working fine for several years under various combinations of Excel 97, Excel 2000, Excel 2002(XP) and Excel 2003 along with Outlook 97, Outlook 2000, Outlook 2002(XP) and Outlook 2003. We have one new computer that has Office 2003 (SP2) that was recently setup and the macro generates the following error: Run-time error '-2147024770(8007007e)': Automation error The specified module could not be found. Here is the VBA code in the Excel Macro. The error happens when it reaches the line that reads: Set theApp = CreateObject("Outlook.Application") . I tried to ...Show All
Windows Forms Showing a radio button in a list view control
How do you show a radio button in a list view control when the listview is in details mode Didn't you ask the same question in the gotdotnet forum Maybe you can try http://www.developerfusion.com too ...Show All
Visual Studio Team System Where to post questions/comments about...
Where should we post questions and comments relating to VSTS, and ASP.NET/VB Thanks. VSTS: Here. ASP.NET: http://forums.asp.net/ VB: http://forums.microsoft.com/msdn/ShowForum.aspx ForumID=32 would be a good place to start. ...Show All
Visual Basic Validating within a User Class
I need to populate a container with an indeterminate number of label/textbox pairs for input. Since it is indeterminate at design time, I thought I'd create a user class with both a label and at text box in a pair so I could create them at run time and populate the labels appropriately from a data file. I need to validate each text box for numeric value. Then, I need to use that value to build up a subtotal on the form...sort of like this: Account Amount 1-1100 37.00 2-0000 90.00 .... Total 127.00 Can I code a validation event handler into the class at design time I know I can use the same handler for all the instances ...Show All
SQL Server Step by step for Indirect configuration
Is there a good step by step guide to setting up an indirect configuration I've followed the steps in Kirk Haselden's 'Keep your packages in the dark' article 3 or 4 times this afternoon and nothing seems to work. I cannot even get the XML configuration file to work by accessing it directly. I'm using the wizard to create the file. Just wondering if there was something else out there.... Thanks in advance for any help. MarkA No step-by-step guide exists so here's one: 1. Create a direct configuration 2. Create an environment variable containing the path and filename of that configuration file ...Show All
Visual Studio Express Editions Error message related to Security Policy
I wrote a program in C#, it works fine on my machine. However when I copy over to another machine and run it, it gives me error message something like "Application attempt......permission security policy..." How to deal with it thx Yuelin ...Show All
Visual C# How to cast a jagged array to a rectangular array
Hello, I need to convert an ArrayList of double[] to a double[,]. But I can't find any clues on the internet how to do this. I am now able to convert the ArrayList to a jagged array: double [] d = { 1 , 2 , 3 }; list.Add(d); list.Add(d); Array arr = list.ToArray( typeof ( double [])); double [][] res = ( double [][]) arr; But now, what I need, is to cast the jagged array to a rectangular array (double [m] --> double[n,m]). Regards, Risotto you have manually modify arrays because there is no way to do it automatically you have jagged array Arr1: 1 3 4 5 7 Arr2: 4 5 4 7 Arr3: 3 8 5 4 ...Show All
Visual Basic VB 2005 Express upgrade from VB6
I cannot upgrade a VB6 project in VB 2005 Express. The upgrade wizard opens and at the point where upgrading starts it thows and exception: "Unexpected exception occurred during upgrade engine operation: Not able to bind to the source (Exception from HRESULT: 0x8004000A (OLE_E_CANT_BINDTOSOURCE))" I tried the upgrade wizard on a simple VB6 project that contains 1 form with 1 command button on and the same message comes up. The VB6 and the upgrade folder are both on C: I can't find any reference to this error message anywhere in the Knowledge Base or MSDN sites Chris I have uninstal ...Show All
Visual C++ what dose that mean?
int main (int argc, char *argv[]) what dose argc mean and what dose argv mean What is the difference between "int main (int argc, char *argv[])" and "void main()" int main(int argc, char* argv[]) is the Standard signature of the entry point to any C or C++ program. int argc - this is the count of the number of arguments that the operatring system (in this case I suspect Windows) passed into your program. char* argv[] - this is any array of strings that represent the arguments that were passed into the program. There are 'argc' elements in this array. Say you have a program call myp ...Show All
.NET Development Getting Folder Information from another PC
Hi, I'm relatively new to Visual Basic Express, and I thought, as I'm having experience programming Visual Basic 6.0 applications, I should not be confronted with so many problems. The application I'm developing at the moment needs information of files which are saved on another computer. I have already written a method copying a file to the local computer's "My Documents" folder. My Problem is: I want to copy all files in a specified directory. How can I get a list including the names of all files in a directory on the other computer (Note: The other computer is part of a LAN) Thanks for your help HS Do yo ...Show All
Windows Forms Difference between .exe and .dll security resctrictions?
I've wrote a visual component (dll) and embedded it in the html page. I just can't run it without Security Exception (it tries to connect to MSSQL using SqlClient ADO.NET objects). I have 1) strongnamed a dll 2) added AllowPartiallyTrustedCallers attribute 2) created a codegroup with FullTrust permissions based on the strong name of my assembly. It just doesn't& ...Show All
