Damien Sauveron's Q&A profile
Smart Device Development Question about Reflection
Hi there, I'm searchin for a possibility to code the following scenario: My project includes a JScript-Sourcefile (The main project is a Windows Forms app written in C#). I'd like to dynamically compile the JS-File, execute it and can ideally referencing objects from my project. Question to you experts: Is this possible Can you point me to any good links, which contains ideally coding samples Thanks in advance Reiner Well I see two issues so far, one is that I am not aware of a JScript compiler which will run on a winCE smart device (I assume that is where you want this app to ru ...Show All
Windows Forms How to create a DataGridViewImageCell - Ranking Column, like in Windows Media Player ?
hello, i would like to know how to simulate the behavior of the ranking column in media player 10, like when you hover it, stars are on or off, and allows on the fly editing. the cell values are something like : 0; 75 ; 150; 200; 255 there are 5 values for 5 stars my question is: how can i consider it i mean do i have to create 5 columns , one for each star or is there a way to insert multiple image items in one cell, I found nothing about it or shall i simply use 6 versions of image that will not be editable thanks a lot Hello, I don't understand how can i use this VB c ...Show All
Visual C++ /NXCOMPAT without VC8
We recently fixed all the bugs in our games with self-modifying code that didn't set the PAGE_EXECUTE* flags. We now want to mark our EXE files as being compatible with Data Execution Prevention. This is because there have been recent bugs found in our code to allow the execution of data. Since we cannot find every single bug, we want to protect our users as much as possible. How can we mark our EXEs as DEP-compatible without Visual Studio 8 We want the /NXCOMPAT option, essentially. We cannot switch to Visual Studio 8 due to two severe problems. 1. VC8 has a bad bug where its x87 register allocation algorithm is inc ...Show All
Visual Studio Tools for Office Help Needed: Smart Tags in Excel and Recognising cell formulas?
Hi there, I have successfully created a VS2005 C#.NET SmartTag DLL that recognises various cell text and actions them accordingly. I am trying to find out how I can recognise a cell containing a "=RTD(,,,,)" type function. The SmartTag Recogniser2 routine only allows me to parse the cell Text and not the formula. Is there any way I can do this Or is there anyway I can locate the source cell that is being parsed GCParris wrote: Thank you for your reply. It would be useful if it could be done in the future :) I agree, this would be an excellent addition with real added value - for starters it ...Show All
Visual Studio Express Editions Is this the right one !!
Hi all, I have not really done any programming since college which was 20 years ago and then all we used was BBC basic, which I found fun and simple to use. I would now like to have a bash at creating some up to date applications using the Visual studio 2005 express applications. Of course I now class myself as a complete novice and so I need some advice, which is, am I making the right choice by skipping Visual Basic and diving straight into C# Is C# a good language for complete novices How about C++, is it just for proficient VB and C# users Thanks in advance GCAL. If your experi ...Show All
Visual Studio Team System How to run ordered tests?
Hi, This might be a very basic question, but I can't figure out how to run an ordered test. How do I run an ordered test without having to run everything else (like I can run individual web tests) Thank you. You have to run the ordered test from the test view window (or test manager window), not from the ordered test window, which is what you are trying to do. Web tests can be run from their own editor window, but it is not the same for other test types. To go to the test view window, from Test menu, select Windows -> Test View There you will see your ordered test listed. Right click it, ...Show All
Visual Studio Team System Webtest - Upload File fails
Hello, I am using VS 2005 for Software Testers - I am having trouble testing the upload of a file (simple text file) to the server. My .NET code is as follows :- ASPX: <input id="filefield1" type="file" name="filefield1" runat="server"> <input type=submit runat=server id=DoUpload value="Upload" NAME="DoUpload"/> ASPX.VB: Protected WithEvents DoUpload As System.Web.UI.HtmlControls.HtmlInputButton ... Private Sub DoUpload_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles DoUpload.ServerClick And my webtest is as follows:- WebTestReque ...Show All
Windows Forms NullReferenceException in Unknown Module when binding 2 checkboxes.
Hi, I am getting a nullreferenceexception in Unknown Module, additional information: Object reference not set to a instance of an object when databinding 2 checkboxes in my form. This form is a secondary form called modally from the startup form. When I step through the code slowly, I don't get this error, I also don't get this error when I call show instead of ShowDialog. When I comment out one of the binding statements, I also no longer get this error. What am I missing It seems like there is a validation event occuring somewhere but I can't find the actual code that is running Any help would be appreciated. Kevin ...Show All
Visual Studio Express Editions my app is invisible?
Hi I recoded a console server app to a form server app. I can run it and it works, but nothing shows. I cant see the form with my textbox in it that shows the log, so the entire app is invisible to me. Here is the code: ------------------------------------ Form1(only has a textbox in it for the moment) ------------------------------------ Imports System.Net.sockets Public Class Form1 Const portno As Integer = 500 Dim localadd As System.Net.IPAddress = System.Net.IPAddress.Parse( "192.168.1.2" ) Dim listener As New TcpListener(localadd, portno) Private Sub Form1_Load( ...Show All
Visual Studio best practice?
Hi, I have a VS 2005 project which will need to generate about 20 reports. Is it best practice to only create 1 Dataset (the .xsd files which reside in App_code) or to create 1 for each Report Or, putting it another way, is there a downside to putting them all in 1 dataset From my current perspective this appears to make things a bit neater. cheers Joel www.jojet.com ...Show All
Visual Studio Team System Which version of SQL 2005?
I looked in the team foundation installation guide and it doesn't appear to explicitly state which version of SQL you should install Should I download and install the Developer Edition or Express -dave CTP - Community Technology Preview. Beta 2 is not the same as the April CTP - it's quite a lot older. Think of the April CTP as Beta 3 (even though it's not labelled as such and probably wasn't tested as much as a full beta release would have been). ...Show All
Visual Basic Error in "Form.vb [Design]"
I will try to develope a little application with Visual Basic.Net 2005 Beta 2. I've make Form1 and its code, but at this time I can't see it in design time, an error occured: One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. Clicking on each error will take you to the line of code that caused it. Method 'System.Drawing.SizeF.op_Implicit' not found. Hide at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[ ...Show All
Visual Studio 2008 (Pre-release) Variable Where Clause In in Link Select Clause
How do you create a LINK select statement with a variable where clause The following does not work Dim WhereClause = "Country.Population < 1000000" Dim SmallCountries = Select Country From Country In Countries Where WhereClause Unlike the DataView filters and DataTable.Select(), the "Where" operator in LINQ doesn't take a string. For DLinq, you'll need to construct an expression tree by hand. There should be examples of this in the next CTP. ...Show All
Visual Studio Invoking targets, not from command line
Hello, I wanted to ask if there is a GUI application that: 1. invoke build files 2. invoke targets from build files (I'd prefer a checklist of targets) 3. override build properties 4. save the configuration data between runs 5. tells the build result, and display the build output I would like to know if there is such application (I need it inside and outside visual studio). it will be very helpful for my project. Thanks. We have a solution that compiles a bunch of Objective C code from within VS. You can create a csproj like so: <Project DefaultTargets="Build" xmlns="..."> <Target Name="Build"> ...Show All
.NET Development More elegant search suitable derived class
Hi, In my project I use following hierarchy of class (class descriptions simplified for this example): public class Message { public static bool TryParse(string s) {} } public class Message00: Message { public new static bool TryParse(string s){} public Message00(string s) { } } ...... public class MessageKT: Message { public new static bool TryParse(string s){} public MessageKT(string s) { } } So I have base class and a lot of derived classes. Each derived class have its own method (TryParse) to check if parameter string suitable for this class (based on string signature unique for ...Show All
