wrd's Q&A profile
Visual Studio 2008 (Pre-release) Grouping of shapes
Hi, Is it possible to group shapes e.g. <InkCanvas Name="C1"> <Groep Name=”G1”> < Line …../> < Line …../> <Groep Name=”G2”> < Line …../> < Line …../> <Groep/> <Groep/> ….. …. < InkCanvas/> ...Show All
Visual Studio Express Editions Uses of VC++
What does it mean on the download/install page where it says: "You can use Visual C++ Express to build powerful .NET Framework applications immediately after installation. In order to use Visual C++ Express to build Win32 applications, you'll need to take just a few more steps." And is there a button to compile and run your C source code without messing around in a cmd window Hi! It's advertisement :) Visual Studio have "Run and Debug" button by default on toolbar (F5) and Ctrl+F5 used to "Run without Debug". It will compile source if necessary. ...Show All
Smart Device Development PocketPC SerialPort and turning off/on the device
Hi, Here a simple C# example that reads data from a GPS Device Assume two Buttons on the form and one Textbox. Further a SerialPort with the DataReceived Event handled in the form. public class Form1 : Form { public delegate void SetText ( string strPar); public SetText myDelegate; public Form1() { InitializeComponent(); } private void Form1_Load( object sender, EventArgs e) { myDelegate = new SetText (SetTheText); serialPort1.BaudRate = 4800; serialPort1.Handshake = System.IO.Ports. H ...Show All
Visual Studio No such interface supported
Seemingly out of the blue, while I was working, the Visual SourceSafe web service returned this error when I tried to interact with the VSS 2005 database through remote access ("internet access") in Visual Studio 2005... Unable to cast COM object of type '...' to interface of type '...'. The operation failed because the query interface call on the COM component for the interface with IID '{...}' failed due to the following error: No such interface supported (Exception from HERESULT: 0x800040002 (E_NOINTERFACE)). Note: Assembly paths and IIDs omitted. I think I found the solution. Looks like ...Show All
Visual Basic Using Namespace in vb.net is not as good as in c# why?
I was wondering why ms decided to have the way they set up the namespaces differently between the language. c# when creating a new projects it adds the namespace to the code as well as the property. in vb it only adds to the property of the project and if you try to add it to the code it will create a double one. eg MyCompany.Application.Employee Namespace MyCompany.Application.Employee public class stuff end class end namespace calling the above class will create a silly MyCompany.Application.Employee.MyCompany.Application.Employee this doensnt happen in c#. Also if you delete the root namespace in the properties to have total freedom t ...Show All
.NET Development Can web service replace DCOM based application
Hi, I'm new to .Net, and I'd like to know if the web service provided by .Net can partly replace the DCOM architecture (I have a DCOM application, contains COM in server side & client side, can I start to replace the server side by web service, surely by light modification in client side). And it will be very helpful if you could provide me the link for interesting article that comparing that with the DCOM or explaining how it's working.. Thanks a lot I think it looks like this article was written for you: http://msdn.microsoft.com/webservices/webservices/building/frameworkandstudio/designing/default ...Show All
Visual Basic What is the difference between Properties and functions
with a property in .Net you can have parameters just like functions. What's the point of having both Apologies, I'm new to OO in .Net. In the most of class, there are two kinds of concepts: data and action. For example, if I have a class to represent a robot. The data portion of the class will be the robots legs, arms, heads, etc. the action portion will be move arms, move legs, etc. The main purpose of the property is to allow class to expose its private variables and representing the data portion of the class, function representing the actions. In the following example, RotbotName() is a property, it representing a conception t ...Show All
Visual Studio Team System "Open from Source Control" Problem
Hello, I have problems to open a solution for Source Control using the menu item "Open from Source Control". Does this feature already work Regard Stephan Cool! Glad it worked out. Do you have any idea how that might have gotten messed up Did you change your drive letters perhaps ...Show All
Visual Basic Help on displaying a form
I created a solution in VB 2005 Express. The solution has 3 project named A,B,C. The startup Project is A, and I want to display a form in project B. Pls tell me how to display a form which is in the project other than current project A. Hi, its not realy difficult at all. All you have to do is: 1) Have a solution with all 3 projects 2) Add the project of the Form you want call to the reference of the calling project (right click references -> Add References ->projects -> chosse Project) 3) import the namespace of the form you want to call. 4) call the form (FromB fb = new Formb(); fb.show(); in c#) ...Show All
Windows Forms Adding buttons dynamically to a groupbox (C#)
Hi, I have a groupbox in a windows form. I retrive a button array from another class with this line of code: Button[] button_array = p.getButtons(); and now I want to iterate through button_array and place all the buttons within the groupbox. I use foreach:foreach (Button b in button_array) { //What goes here } How would I do to place the buttons in a&nb ...Show All
Visual Basic ODBC errors running SQL macro
This is the Query I'm working on in excel.... I get runtime error 1004 on .refresh backgroundquery:=false. The funny thing is it USED to work, but not now... Any ideas Sub retrieve_data() Dim Y, M, row, column As Integer Dim sqlstring, year, month As String Dim stringpiece(20) As String row = 1 column = 1 For Y = 2000 To 2006 year = " year(date)=" & Y For M = 1 To 12 month = " month(date)=" & M sqlstring = "SELECT TOP 5 (alltrim(str(year(hotel.date)))+"" ""+alltrim(str(month(hotel.date)))) from hotel where" + year + "and" + month Call Do_Query(sqlstri ...Show All
Visual Studio Team System "Assigned To" must be a valid account?
In the MSDN Documentation - Walkthrough: Make Advanced Customizations to a Work Item Type , in the Customize the Assigned To Field section, the following example is shown: <FIELD name="Assigned To" refname="System.AssignedTo" type="String" reportable="dimension"> <HELPTEXT>The person assigned to do the work</HELPTEXT> <ALLOWEDVALUES expanditems="true"> <LISTITEM value="[Project]\Contributors" /> <LISTITEM value="Triage" /> </ALLOWEDVALUES> </FIELD> So my question is, does "Triage" need to be the name of a real A ...Show All
Visual Studio Team System How to get a variable's System Data Type.
How to get a variable's System Data Type. I need to find all the variables that are of type, System.IO.StreamReader, using fxcop. How do i achieve this. If not possible do let me know the reason. It would be helpful if some sample code would be available. regards venkateshaperumal Hi Venkatesaperumal Depends what variable you're talking about. For fields on classes, you can do the following: TypeNode m_streamReader; public override void BeforeAnalysis() { m_streamReader = FrameworkAssemblies.Mscorlib.GetType(Identifier.For("System.IO", Identifier.For("StreamReader")); } pu ...Show All
.NET Development Specifying a server for COM+ class instancing
I'm designing a system which will include many remote databases. One of the options is to create a COM+ app to do the data-intensive stuff, and instal an instance with each db. This seems preferrable to doing the many trivial remote db calls required from one location. This will require specifiying a remote server when instancing an object from one of these COM instances. How can this be done in VB .NET I can't find a .NET method similar to COM coCreateInstanceEx which takes a server name. The .NET CreateInstance method can take activation attributes, but I can't see any suitable ones except System.Runtime.Remoting.Acti ...Show All
SQL Server .Net framework for SSRS 2005
Hi, We are plannning to upgrade to SSRS 2005 from SSRS 2000. Does it mean that our clients/users will have to upgrade to framework 2.0 from framework 1.1 inorder to see the SSRS Reports Thanks in advance ! siaj No, as long as you use the webbased report functionality only you just need a (IE) browser to use reporting services without any problems. HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
