Akwest's Q&A profile
.NET Development Get method parameter's values using reflection
By writing the following code I can get the method parameters metadata. void test(int x, string s) { StackTrace st = new StackTrace(true); foreach (StackFrame sf in st.GetFrames()) { MethodBase mb = sf.GetMethod(); foreach (ParameterInfo pi in mb.GetParameters()) { MessageBox.Show(pi.Name); } } } I need the parameters value (the value that was passed to the method). Can I get it in C# Thanks Gil Do you know other way to get this kind of informetion I want this information automatically it will sa ...Show All
.NET Development VS2005 and Preprocessor Definition
Hello, I'm porting a web application from VS7.1 to 2005 but i have a crasy problem. My app will compile in 2 different products (different database queries) depending on a global #define specified in the project's conditional compilation option. But now with VS2005 I don't have a project, and I'm unable to set a global define. Any suggestion on how to fix it I can't set it page by page because pre project is very big and each time i need to check on or the other versions I'll need to change everithing. Since the site is compiled by the Asp.Net runtime, you add additional compiler options by modifying t ...Show All
Visual Studio Compartiment with multiple classes to be added
Is there a way to add two or more attributes from diferent classes in the same compartment Thanks Mapping compartments to relationships to abstract classes is now enabled in DSL Tools December CTP, so Luiz's initial issue shoudl be solved. ...Show All
Visual Basic Publish - MSINET.OCX not being packaged with setup
After building a program using a third party dll and MSINET.OCX, I've published the program. When I run setup and run the program on another machine, it errors out where the INET control should be and - sure enough - the INET control is nowhere to be found. I know there's a trick to sending dll's with the setup, but what about ocx's Thanks. ...Show All
Visual C# How to send CTRL_Z through serial in C# ?
Hi everyone,, iam working a project to send SMS messages from my pc to mobiles using GSM modem.. in order to do that i have to write the following commands in hyper terminal.. AT <cr> responce from the modem is OK AT+CMGF=1 responce from the modem is OK AT+CMGS="my mobile number" responce from the modem is > then i write the message and press CTRL_Z then Enter responce from the modem is OK ************************************************************************************ The problem is that in C# it is not sending the message although the commands worked in Hyper terminal.. In C# wh ...Show All
Microsoft ISV Community Center Forums Exit problem
hi all i have an urgent problem , if any could help me in any way i would be thankful i have a system that uses ms sql server as back end and ms access 2000 as fron end in one of the ms access 2000 form i have created two combo boxes such that the user select the product type and the next combo box will display only those items of the user selected product type in the same form i added a button to exit with docmd.close but the problem is that when i click the exit button system displays box to enter the product type parameter either you enter any value or you pressed cancel the form will close so why the ...Show All
Visual Studio Team System TF output not conducive to efficient use from scripting
Our builds are heavily scripted. TF seems to output extraneous information which causes us to have to do unnecessary string parsing. For instance, in over SCM tools usually there is a very easy way to get just the items in a directory that are under version control. But in TFVC, if the best I can do is this: tf dir C:\proj\somedir but then I get this output to deal with: -------------- $/Proj/somedir foo.cs bar.cs baz.cs 3 item(s) -------------- So I have to lop off one line from the beginning and 2 lines from the end. And sometimes it is 3 lines from the end because of an occasional extr ...Show All
SQL Server datepart
I'm pretty new to this VB Scripting, I'm building a webpage where I'd like to be able to pick out month, day or year from a date variable, I understand this can be done by the datepart function, but it seems like I need to include a certain file or something to make it work It generates error '800a0005' when I try to run the code as below d=datepart(mm,date) ...Show All
Windows Live Developer Forums For Future Contests
If there are going to be future contests like this (and there should, as they rock!), please consider the following remarks/suggestions :) - Teams: Some people like to work in teams, and this usually gets quite nice results too. However, with the current prize set-up, it's rather difficult to work in teams because who gets the prize I suggest you either give out money (:P) or split it up in multiple prizes per app (have like something slightly bigger for the team leader, and 5 smaller items for the other members, take a look at counterstrike clan contests, I believe they have a system like that) - Examples: Have some example code or links fo ...Show All
.NET Development bug in Int32.Parse
In Visual Studio 2005, the following throws a FormatException and it definitely shouldn't. The same code works fine in Visual Studio 2003. This is the version that I am seeing the problem, running on XP: Microsoft Visual Studio 2005 Version 8.0.50727.42 (RTM.050727-4200) Microsoft .NET Framework Version 2.0.50727 Installed Edition: Professional int x = 0; x = Int32.Parse("0") // throws FormatException x = Int32.Parse("00") // works fine x = Int32.Parse("000") & ...Show All
Visual Studio Express Editions Is there a way to determine the color of a point?
Well, the title pretty much outlines my querry. Is there a way to find the color of a given point, if the point is known I've written a code to randomly draw a "land mass" (a polygon that's flat on 3 sides and randomly "mountainous" on the upper side) for a simple game that I'm creating. I've filled in this polygon as green. When I made a very similar game in QBasic, there was a function for determining a pixel's color. I used it to "find" where the land was, when the trajectory of a shot hit it. This way, I knew that I had hit land when the pixel that was going to get the trajectory drawn ...Show All
Visual Studio C#, VS 2005, Crystal Reports XI, Business Objects Enterprise/Crystal Reports Server XI.
Hi, I must be missing something with my versions, etc, but for the life of me I can't work this out. I have my report which happened to be written in Crystal Reports (or the Visual Studio version, it doesn't seem to matter) that I have loaded in to Crystal Enterprise. I create a web page with a crystalreportviewer in it (version 11.0.3300.0 ) all my references in the project are the same. and then in my codefile I do this as per the documentation: enterpriseSession = sessionMgr.Logon( "Administrator" , "" , "WEBSERVER-01" , "secEnterprise" ); enterpriseService = enterpriseSession.GetService( "InfoStore" ); infoStore = ( InfoStore )ent ...Show All
.NET Development SSL server throws WebException for a protocol violation.
Hi, I'm currently working on connecting to an HTTP server on a local network to grab log files, push configurations, and modify access rights to the server. This product could be deployed to sites where said server has SSL enabled. As such, I am doing testing on a server with SSL enabled. I already have it set up to accept server certificates, but I'm having an issue when I try to get the response of the server. The code snippet is: System. String path = "{undisclosed}" ; string addy = mResovedAddress; if (!addy.StartsWith( "http://" ) || !addy.StartsWith( "HTTP://" )) { addy = "http://" ...Show All
SQL Server from Express to 2005? - How to?
I have a database on SQL 2005 Express and i want to restore in SQL Server 2005 Beta 2 but it's not accepting it so how can i do it please any tool I assume you want to go from the RTM build of Express 9.00.1399 to the Beta build of SQL2K5. If that's the case you cannot do that. Some where between Beta 2 and RTM (I think it was around the March 2005 CTP) the format of the database changed. We supported moving forward but not going backward. I'm not aware of any tools that will allow you to go backward. ...Show All
.NET Development TableAdapter DataTable schema refresh - how?
Hi I am using the VS.NET wizard to generate TableAdapters with DataTables that I am using as a data access layer. I am getting into it and it is starting to work for me. However, I am scoping into the future and I realise that I will sit with a huge problem if I am not able to refresh the schema of these DataTables in the event that the column definitions change. In my current example, I have changed the length of the Password column of my user table from 20 to 50. My application kept bombing out because the value it was retrieving into the DataTable is now too large. In this case, I would want to instruct VS.NET to "refresh the s ...Show All
