Peto_SVK's Q&A profile
Windows Forms What logical order are Controls stored in the Controls collection?
Hi all, how are the Controls on a Windows form stored What I mean is, are the Controls in the Form.Controls collection (Controls[0], Controls[1], Controls[2] etc) stored in the positions that they are appear (x, y) on screen So a control that is positioned in the top left comes before a control that is positioned at the bottom right in the Controls collection (I probs have these completly wrong :)) The reason I am asking is because I have a load of controls on a form and want the user to be-able to navigate the control (TextBox, ComboBox etc) that sits below it when the user presses the down arrow key (tab key is not an option here I am afraid). Hope you can help. Tryst The Controls property is implemented as an ArrayList; and is or ...Show All
Visual Studio Express Editions Object and Property Descriptions
I am making a managed dll in C++ to use in later projects for C++, VB, and C#. When ever you click on properties of MS user controls in the design portion IDE it tells you what that property is, ect. I would like to know how describe properties in the same manner. Also when you look at an object in the object browser it gives you a summary; I would also like to know how to define these summaries in C++. Thanks in advance for any help hmmm, don't see any thing about xdcmake, mabey you are right about VC++E not supporting it; but mabey I am doing some thing wrong, mabey I didn't make all the nessary refrences maybey I didn't write the switch right, is the following correct /clr:pure /doc ...Show All
SQL Server Script Component Error in BI Development Studio on Vista Install
I'm having an issue with a development machine that has the RTM version of Vista installed on it. I get the same issue with every script component, regardless of what package it resides in. The red "X" error that I get in the BI dev studio is: Error 1 Validation error. My Data Flow Task: My Script Component [6313]: System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B) at Microsoft.VisualBasic.Vsa.VsaEngine.Compile() at Microsoft.SqlServer.VSAHosting.Runtime.LoadSource(String project) at Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost.CreateUserComponent() MY SSIS Package.dtsx 0 0 When I try to execute the package, I get the followi ...Show All
Visual Studio Internet VSS Access - "The format of the file 'VssWebService' is invalid."
Trying to setup Internet Access to VSS. Have run the default install for internet access in VSS and was unable to connect from VS. Getting error "Cannot connect to server". Ran http://127.0.0.1/SourceSafe/VssService.asmx and got the error: Server Error in '/SourceSafe' Application. Duplicate of http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=744933&SiteID=1 post ...Show All
SQL Server indexes question
Assume we have a sales table, which contains a OrderID(char(8)) and a OrderDate(smalldatetime) field. Each day, hundreds of thousands of records needs to be inserted into this table. We need a daily sales report, and the OrderID is not necessarilly sequentially entered (every data operator has a range of OrderID, so for each data operator, it is sequential, but globally, it is not). So, I would like to create a clustered index on OrderDate, and the Primary Key is on OrderID. I think it is good for generating the daily sales report. However, when an order is entered, we need to quickly check if the OrderID already exits, because the unique index on OrderID is built on the clustered index (on OrderDate), which means the Database Engine will ...Show All
.NET Development In C#, what is the difference between System.String and System.string (lowercase)
This mignt not be the correct forum, if so, I'm sorry about that. I am trying to get a better understanding of the .NET library. I am programming in c# and I see that System.String (uppercase String) and System.string (lowercase string) seem to be the same objects. However they are color coded in different colors. I am guessing that there is a reason, but I cannot seem to find it in the documentation. Can anyone shed some light on this Thanks! Bob You are correct, "string" is a keyword, "String" is a type name. Dark and light blue, respectively. The relevant section in the C# language specification is section 4.2.3: "The keyword string is simply an alias for th ...Show All
.NET Development Trouble catching exception
Hi, I am having this problem catching a exception in a try catch block as shown below try { DialogResult result; result = wizard.ShowDialog(); } catch (PackageCreationException e) { MessageBox.Show(e.Message, "Failed", MessageBoxButtons.OK, MessageBoxIcon.Warning); } now the wizard is a form which throws a PackageCreationException if it fails this works fine if it is run in the Visual Studio environment but when run as a standalone application this exception is not caught. I have been cracking my head over this. I can catch and handle exceptions fine every where else but here. Does anyone know why this happens ...Show All
Visual Studio Team System Changed WS unable to load projects
Hello! I have Team Project1 that consists of a asp.net 2.0 solution file in TFS. It is constitutes of 12 project files , 7 of which are referenced from a different Team Project (Team Project2) and the remaining from TP1. The 6th project in the sln file is referenced as ..\..\webcommon\abc.web.common\project6\ The same reference paths hold good for the rest of the 6 projects. I was unaware of these references when I initially created my WS mapping the following way: TP1 goes to c:\tfsprod\tp1 TP2 to C:\tfsprod\TP2\ When I tried opening the sln file, it was not able to load up any of the 7 projects that were referenced. I later realized the reference paths and changed the WS mapping accordingly as TP2 to C:\tfsprod\we ...Show All
Visual Studio Express Editions I am having a problem with a logon script using VBscript trying to compare the computer name to the organizational unit in which
it belongs. Here is my code: Dim objSystemInfo, objNetwork, CurrentComputer Dim strOu Const OrgUnit = "OU=PCBMRDD" Set objSystemInfo = CreateObject("ADSystemInfo") Set CurrentComputer = GetObject("LDAP://" & objSystemInfo.ComputerName) strOu = (Join(CurrentComputer.MemberOf)) If InStr(strOu, (OrgUnit)) Then WScript.Echo "Hello" End if Wscript.Echo "Not found" WScript.Quit I am trying to use the computername of the PC and compare it to which organizational unit belongs to. I am then going to map a drive based on the organizational unit the PC belongs to and map it to a specific location. When using the Echo statement after the GetObject statement I am able to display all ...Show All
Smart Device Development Error: The operation could not be completed. Unspecified error
I'm getting this error everytime I try to deploy/debug a device project. I have installed device emulator 2.0 beta, and it used to work just fine. Any ideas on what could be the cause I hate "me too" postings, but I get the same error... I tried: different smartphones different versions of ActiveSync different installations of VS2005 different host machines It is a bit frustrating not to get more information on the underlying problem. Are there any log files I am not aware of I looked at the following ActiveSync log files in %USERPROFILE%\Local Settings\Temp: WCESLog.log WCESCOMM.LOG WCESMgr.log But there is no log message nor error at the moment when the deploy fails. So I guess it fails before engag ...Show All
.NET Development Multiple transactions on Micorosoft access
When I try to run multiple transactions at the same time using different connections on a Microsoft Access database, I get errors saying that "table locked by another user", and this happens for any isolation level I use for the transactions. Doesn't Microsoft Access (Or the JET engine) support multiple transactions running at the same time on the database Sure, the database will support concurrent transactions. However, if you have concurrent transactions on the same table then a page lock or row lock may cause this error to occur. You need to make certain that your transactions occur in as short a duration as possible. For example, start a transaction just before the first update and terminate it right after the last ...Show All
SQL Server Derived Table Alternative
I have an application that has two different database backends, one is SQL Server Compact Edition and the other is SQL Server. The reason is because the application may run at home on one of our sales agent's computers or here in the office. I have a query that uses a derived table and works just fine in SQL Server, however when I run it in the compact edtion (having the exact same table structures) it will not run. My question is...does the Compact Edtion or the Mobile Edition allow derived tables. If not is there a way to work around this I will happily give an example if it will help. Thank you, Adam Hi, Erik, After a more careful reading of the docs for 3.5 Beta 2, it states that nest ...Show All
SQL Server AdjustTokenPrivileges () failed
I have an SSIS package that parses a text file into 3 smaller text files and then takes the data and puts it into tables. The package runs fine up to the point where it needs to insert the data. I turned logging on but no errors are generated. But I do get a file named SQLDUMPER_ERRORLOG.log that is generated with the info below. Any ideas of where to look 11/16/06 13:31:38, ERROR , SQLDUMPER_UNKNOWN_APP.EXE, AdjustTokenPrivileges () failed (00000514) 11/16/06 13:31:38, ACTION, SQLDUMPER_UNKNOWN_APP.EXE, Input parameters: 4 supplied 11/16/06 13:31:38, ACTION, SQLDUMPER_UNKNOWN_APP.EXE, ProcessID = 1844 11/16/06 13:31:38, ACTION, SQLDUMPER_UNKNOWN_APP.EXE, ThreadId = 0 11/16/06 13:31:38, ACTION, SQLDUMPER_UNKNOWN_AP ...Show All
Windows Forms PropertyGrid: How to catch an exception?
I use a PropertyGrid to show a business object in my application. The business object throws exceptions if the user tries to enter an invalid string inside the PropertyGrid. The PropertyGrid shows two different behaviors in this case: If a default TypeConverter is used the PropertyGrid shows an builtin error message dialog. If a custom TypeConverter is used the PropertyGrid doesn't handle the exception. This happens only in Debug mode. How can I catch these exceptions and suppress the builtin error message dialog of the PropertyGrid I use the PropertyGrid in my own application to show the properties of my business objects. This way my user interface is independent of my business objects. ...Show All
Microsoft ISV Community Center Forums Record, playback, macros
What's the keyboard shortcut to record a macro What's the keyboard shortcut to then play it back ADG wrote: I don't think that there is a keyboard shortcut for recording. To record a macro use Tools - Macro - Record New Macro. Whne the dialogue comes up you can assign a keyboard short cut for replaying. Damn, wrong group. i meant to ask this in the C# forum. i'll mark the answer as helpful - even though it wasn't - because maybe it'll help someone else. ...Show All
