Sam_res03's Q&A profile
Visual Studio 2008 (Pre-release) WCF and application design
Hello All, I'm looking for some design guidance about WCF. I want to build an application where my business objects live in one process (the server). I want to be able to attach arbitrary UI’s (or interested parties) to this process to display information about the business objects, as well as manipulate them. These UI’s could live on the same machine, or on other machines. I would like provide a uniform interface to these UI’s regardless of where they live (same machine or other machines). It seems like this is an ideal circumstance to use WCF (based on the whitepapers on WCF), but once I started playing with the June CTP I began to wonder if WCF would be the approach Microsoft had in mind for this situation. ...Show All
Visual C# DateTime Difference on WinForm and WebForm!
I write a simply code to see the difference: this .label1.Text = DateTime .Now.ToString(); this .label1.Text += " " + System.Globalization. CultureInfo .CurrentCulture.ToString(); The output of WinForm is “ 28/11/2006 11:03:21 en-GB ”, while WebForm is “ 11/28/2006 11:02:55 AM en-US ”. Even I restart my computer, the difference is still on. Can you explain this difference What Windows version are you using How did you change the local settings. Please post the exact steps. -- SvenC ...Show All
Smart Device Development How to use database for pocket pc application
Hi I have a need to work on pocket pc application. Scenario: In general user will take database backup from database server to local system. User perform some changes to his local database based on his requirement. Again user connects to database server and click on update, local database should update to server database by informing each record status to the user. ex: record 1 updated / call closed do you want to update Here local database is going to be Pocket pc database and server database is on SQLDatabase. Can any one suggest best way to implement this feature in Windows Pocket pc, c#. I would appreciate your reply. Thanks, Thank for reply, RDA is works fine, but RDA and SQLCeReplic ...Show All
Visual Studio Team System Team Foundation Server vs SubVersion
Hi, Did any one has done comprehensive report comparing Team Foundation Server vs SubVersion vs VSS The comparison will be toward business decision. - Cost analysis. How much saving if using TFS compare to others - Efficiency & Productivity - Quality Assurance. - etc Thanks, John > Sourceforge is using SVN too - should they use TFS in future Errm. No. If you wanted a Sourceforge like site that was using TFS, then check out the excellent CodePlex site ( http://www.codeplex.com ). You are correct that you need a Microsoft platform to run TFS on. For the kind of organizations that TFS is aimed at, this is not a problem. Considering how new TFS is, the adoption has been staggeringly ...Show All
.NET Development Performance: Passing large arrays from .NET to COM components
Hi, I am working on a COM component in C++ that will be used by .NET clients. Clients frequently pass large arrays of points in Cartesian coordinates (i.e. XYZs) to the component. I'd like to know the most efficient way to do this. My tests show conformant arrays are ~7 times faster than safearrays. Safearrays were ~6 faster than sending the array's data one point at a time. So I'd like to use conformant arrays, but I want to make sure they are "safe." Here is my IDL struct Vec3 { double x; double y; double z; }; HRESULT SendData ( [ in ] int numPts, [ in , size_is (numPts)] struct Vec3 pts[]); And it is called from C# with code like this: GCHandle gcHandle = GCHandle ...Show All
Windows Forms User interface question
Hi all, I'm building a software which has a UI similar as outlook 2003. The problem I'm facing is how can I perform dynamic content change while the user click the navigation buttons. I did think about using MDI but that is not what I want as it obviously not how the outlook implement. Thus, i think about using panels and swap between them. However, it seems very hard to design as i need to cover a new panel to the previous one. It anyone can tell me how outlook implement the dynamic content change thxs alot. Create a custom usercontrol for each view. This way you can just toggle their visibility depending on the button that was click. Usercontrol creation is the key to creating a UI ...Show All
Software Development for Windows Vista Compatibility settings not working after uninstall / reinstall
Our application launches other executables that require elevated permissions to run. These other executables were sometimes failing to launch the first time the application was run and succeeding after that, and sometimes failing to launch no matter how many times we tried. We implemented a workaround of setting the registry key HKLM\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers\[app path] to ELEVATECREATEPROCESS. This worked great - our programs would now launch correctly and ask for elevated permissions as expected. However, if we uninstall the application and then reinstall it, the workaround no longer works. We are removing the registry key that we created when uninstalling and creating it again when installing. If ...Show All
Windows Forms can't change mouse cursor position...
Hi, I'm trying to change the mouse cursor position with: Cursor.Position = New Point(0, 0) But it doesn't work. If I watch the value of "cursor.position" right after this line is executed, I see that it did change, but the mouse cursor didn't really move. Any ideas it should move, I've been able to do it! :-) tried moving it somewhere else like say 100, 100 What about doing it this way, even though it shouldnt make much different: Dim thePoint as new Point( x, y ) Cursor.Position = thePoint ...Show All
Software Development for Windows Vista CreateInstance failed
Here's the situation. I have a XAML only workflow in a C# project (A). The workflow references custom activities (derived from Activity etc) that are built in a separate project (B) in the same solution. The reference is via a namespace reference in the workflow XAML. (...... xmlns:ns0 = " http://ABC/ActivityLibrary ....) Project (A) has a reference to the dll generated by Project (B). It's a direct reference - the reference is created by pointing to ProjectB.dll in a common directory. One of the types in (B) contains the following directive to map the namespace identifier to the assembly [assembly: XmlnsDefinition ( "http://ABC/ActivityLibrary" , "ABC.UI.ActivityLibrary" )] I open Visual St ...Show All
Visual Studio 2008 (Pre-release) Zoom in/Zoom out in the DLinq designer?
Hello! In the WebCast showing new things of the May DLinq CTP the guy showed zooming in/out of the DLinq designer. What should I do in order to zoom in/out of the designer Best regards, Henrik Dahl Hello! I have a Lenovo ThinkPad T60p notebook and as I press the CTRL-Key and use the button for making the trackpoint to act as a scroll wheel and use the trackpoint, the scroll icon shows up at the cursor, but no zooming in/out is taking place. Best regards, Henrrik Dahl ...Show All
Visual Studio Express Editions User Searches 2 fields to find a database record in application.
Hi, I am learning Visual studio 2005 Express Suites (very new learner). I am attempting, in a form to have a user type in a first name and last name into a text box each, then click a button to find a person in the database. The associated database fields are: StudentID, StudentFirstName, StudentLastName (StudentID is a foreign key in a a couple of other tables). The text box field names are: TxtBFirstName and TxtBLastName. The button name is: BSearch There seems to be a way to do this type of search through the bindingsource [studentsbindingsource] where I click the little arrow, choose "Add Query", click "Query Builder", then edit the SQL query. I am confused as to how to phrase the WHERE clause - basically it would ...Show All
Visual Studio Express Editions How do I convert .NET 2.0 Coding into VB 2005 Express Edition coding?
How do I go about understanding and converting the coding of .NET 2.0 into the coding that Visual Basic 2005 Express Edition can understand Spotty, I find these sites to be highly fallable. Rarely will they translate user generated code. On the OP's first request, I tried to use them and they received errors as per usual and produced mostly C#. That's why I resorted to translating them myself. ...Show All
Visual Studio counting number of rows in a list
I have a rectangle(rect1) with a list in it (list1), in that list i have another list(list2). In my rectangle (rect1) i want a textbox(txt1) that shows the numbner of rows that list1 contains. I also have another textbox(txt2) where i want to show the number of rows in list2. I've already tried with the CountRows function but i get an error. The function I use in txt1 is CountRows("List1"). I als want a textbox on my report (outisde the rectangle) to show the number of rows in List1 and the number of rows in list2. How can i do this You can use a conditional count or sum aggregate. Examples: =Count(iif(Fields!Type.Value > 5, 1, Nothing)) =Sum(iif(Fields!Type.Value = 1, CDbl(Fields!Amount.Value), ...Show All
Visual Basic Multiple Checkboxes, 1 Varible
Is it possible to have mutliple checkboxes (two or three) change the same variable, but when one of them is set to True, all change to True You also can create a form-level property like that: Private Property MyGroupChecked() As Boolean Get Return CheckBox1.Checked End Get Set ( ByVal Value As Boolean ) CheckBox1.Checked = Value CheckBox2.Checked = Value ' and so on ... End Set End Property And then, write this event handler: Private Sub MyGroupHandler( ByVal sender As Object ...Show All
Visual Studio Team System CTP4 Problem
I just installed CTP 4 and attempted to create a new Database Project as follows: I select File | New | Project I expand 'Database Projects' and select Microsoft SQL Server I select the SQL Server 2000 template I enter the name and location etc. I click the OK button and after a few minutes I get an error stating, "An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error locating Server/Instance Specified). I have both SQL 2000 and 2005 installed on my laptop. I don't know what server/instance its at ...Show All
