D Evil Oper's Q&A profile
Smart Device Development Draw nice line Compact Framework
I want to draw some lines and basic shapes on screen in Compact Framework. I've used the Graphics class and a bitmap, and then added the bitmap to a picturebox. The problem is the lines look like *** when they are not going straight up or to the side, and by *** I mean that it looks like stairs. Anyone know how I can fix this problem Something like this: ScreenBitmap = new Bitmap (640,480); DrawImageGraphics = Graphics .FromImage(ScreenBitmap); Point[] PointsToDraw= new Point[5]; PointsToDraw[0]=new Point(0,0); PointsToDraw[1]=new Point(50,100); PointsToDraw[2]=new Point(300,200); PointsToDraw[3]=new Point(340,10); PointsToDraw[4]= PointsToDraw[0]; ...Show All
Architecture UIPAB - Open Navigation - Strongly typed state class
Hi All, I am trying to implement strongly typed state class in UIPAB. In Graph navigation I am able to achieve the same. In Open navigation, the UIPAB framework always loads the state class that is specified as default="true" in the <state /> tag, which means I need to have a common state class for all my open navigations. I am having dozen of views and corresponding business entities that i need to implement strongly typed state class. How can we have individual state class for every open navigation views Is this possible or is it a limitation in UIPAB Thanks Niranjan ...Show All
Visual Studio 2008 (Pre-release) Metod call authentication
Hi all! I need some Principal / Identity guidelines. I'm about to design a business/data layer (of a small application) using WCF. The user will have to login with a username and a password that will be checked against information in a database. The user will also be assigned different roles depending on what the database says. The clinet will be a winforms app and (as I said) the business/data tier will be a WCF-service. So, let's say there is one login method in my WCF service looking something like this: public GenericPrincipal Login(string name, string password) { ... } The client application will start off by asking the user for a name and a password and call the above method. A GenericPrincipal will be returned telling wh ...Show All
Visual C# passing an event to a Compossite control
How I can pass an event to a compossite control Is it that you’ve got a control on your composite control (aka user control) and you want events raised by it to be also visible by the users of the user control If that is the case... you’ve got two main options, you can either make the internal control (of the user control) publicly accessible to users of the user control so that external code can register for events directly with the source... this method generally isn’t preferred as it exposes too much information. The ideal solution would be something where you create a little code stub that looks like the SelectedIndexChanged event... but is part of the parent control and when adding/removing even ...Show All
Visual Basic Validating a date in a DataRow
Hi there, I have a date in a datatable which has been populated from an excel worksheet. Then scan the Datatable and validate each of the rows/columns as the data will be imported into the database. This is all fine with the exception of the date checking my code is below:- 'I've already populated the datatable etc then---->>> Public DataError As String = "#Bad Value#" Dim dt As DataTable = ds.Tables(0) For Each row As DataRow In dt.Rows If IsDate(row(5).ToString) Then DOB = row(5).ToString Else DOB = DataError End If Next row I've also tried:- If IsDate("#" & row(5).ToString & "#") Then and still no luck.... Can anyone out the ...Show All
Windows Forms Having problems building my Setup Proyect??
Hi! At the time that I'm building my Setup Proyect I have a 8 warnings saying Two or more objects have the same target location and one error saying Unrecoverable build error I don't know what to do beacuse I can not find the error. Please help me if you have seen something like this before because I want to run my application in another computer.... Regards!!! I had that problem... Dependancies of my project output had dependancies themselves; and the setup project will recurse until it has all related dependancies... however, when these recursed dependancies conflict dosen't do anything about it. So, the solution is to simply add in the references to all possible projects (or assemblies) which may get automatic ...Show All
Visual Studio Team System Suggestions wanted on how to handle "Found in Version" and "Resolved in Version" custom fields
Hi! We are currently in the progress to use TFS as our platform for the development process, and are now trying to create a customized Process Template to support our project model. Right now we have stumbled into a problem on how to implement the two custom fields mentioned in the title of this post. In our bug workitem we need two custom fields that the should 1. display the version the bug was found, 2. display the version it was resolved in. Both of these fields should have a combobox dropdown with valid versions for the product the Team Project is for. And here is the problem... How to implement these custom fields... There is some requirements to these fields. - The list of valid values is not the same in every project. - ...Show All
SQL Server RS 2005 Windows Mobile Interface
I am interested in serving a few simple stats to a PDA running Windows Mobile 2003 for Pocket PC, Phone Edition. The device I'm considering is the HP iPaq 6515. I'm open to suggestions, does anyone have any experience with this Thanks Hi can you tell me how to display the reports created in SSRS 2005 in PDA/mobile devices. what are the requirements and configuration. I dont have any idea about this. ...Show All
Windows Forms How to check if object's region is in second object's region?
Hello all, I want to how to check if picturebox on other picture box... Any answers will help, Thank all the helpers... static bool ControlsCollide( Control control1, Control control2) { return null != control1 && null != control2 && ! Rectangle .Empty.Equals( Rectangle .Intersect(control1.Bounds, control2.Bounds)); } -- Regards, Daniel Kuppitz ...Show All
Visual Studio Express Editions Code sample in MS ebook gives lots of errors
I've just installed VC# Express, and created a Console Application, using the code sample from page 49-50 in the "Build a program now!" ebook from MS. Everything looks like it should in the code window (I copy/pasted the code), nevertheless I get 21 errors when I press F5. Most of them look like this one: "Error 16 Invalid token '(' in class, struct, or interface member declaration" Here's the code, copied from the code window: 1 using System; 2 using System.Collections.Generic; 3 using System.Text; 4 5 namespace MyFirstConsoleApplication 6 { 7 class Program 8 { 9 static void Main( string [] args) 10 { 11 // Declaring two integer numbers variables that w ...Show All
Visual C++ Wanting to learn C++, any good starting places and/or tutorials?
Hi guys. I'm studying Visual Basic .NET 2003 at college, which I'm not too fluential in, but would like to get involved and learn Visual C++, has anyone got any good sites to get tutorials from Also see Getting Started (How Do I in Visual C++) or the VS 2003 equivalent. ...Show All
SQL Server sql services
hello Every one, I work for mcafee and we have alot to do with data bases and their manipulation. I need to learn to work my way around the query analyzer and manager. Any good docs or web sites about thank you all Ali Katouzian alcat1975@hotmail .com you must install sql server 2005 or 2000 depending on your preference. in sql server 2000 you may use the enterprise manager and the query analyzer to suit your needs in sql server 2005 you should use the sql server 2005 management studio ...Show All
Visual Studio Team System Build a WIQL query on iteration paths
Hi, In our team projects we always use the same standard iteration paths. So we came to the idea to build a query which shows i.e. all work items associated with a certain iteration. As this query should be executable for all projects, my idea was the following: SELECT [System.Id], [System.Title] FROM WorkItems WHERE [System.TeamProject] = @project AND [System.IterationPath] UNDER @project\iteration X Unfortunatly this WIQ does not work. There is an "expected end of string" error on executing the query. I guess it's because of the "@project" in the iteration path. Can anybody explain how such queries will work Thanks, DaFi ...Show All
Visual Studio VS Standard & Crystal Reports
Hi all Is it possible for me to develop Crystal Reports applications with Visual Studio 2005 Standard Edition Thank for any advance. Charoite Ashley forgot to mention that you are able to purchase Crystal Reports XI release 2 that will integrate into the VS 2005 Standard Edition's IDE. ...Show All
SQL Server Distributor cannot connect to subscriber
I am setting up my 2005 Replication system... publisher = 2005 sp1 Subscriber = 2005 sp1 I created a publication for a single table. Then I created the subscription to another 2005 server. Had to add it as a subscriber in the wizard. Told it to do the snapshot right away. Everything seems fine right up to the point where it tries to connect to the subscriber... I get a cannot connect error. I have tried all kinds of security context and accounts for the sql agent to run under but nothing seems to work. I cannot even get a linked server to work. I have the subscriber setup to accept remote connections. I am not sure where to look at next... I never had this issue in 2000. Did a little more ...Show All
