jfberube's Q&A profile
Windows Forms Saving contents of a graphics
Is it possible to save (and restore) the contents of a graphics Graphics.Save only seems to save the properties, such as transfromations, but not the contents. See the example in Visual Studio help under Graphics.Save. My aim is to construct a vertical line cursor on a graph and move it with the mouse. I know how to get the mouse position, but in order to move it I need to restore the picture to what it was before the cursor was added, then add the new one. Paint your graphic into a bitmap, then render the bitmap with Graphic.DrawImage in the Paint event handler. There's sample code in this thread . ...Show All
Visual Studio 2008 (Pre-release) GridSplitter -- is it dead in the current version?
Is GridSplitter broken in the latest beta It doesn't seem to even show up at all. It doesn't work in the samples nor anywhere else. If it's just not working for this beta, will I expect to see it working again in the next version, or will there be some breaking changes Thanks, Rei Weird... your code does work. Well now that I know that it's something on my end, I'll tinker around with it until it works. I bet it's one of the margin or size properties or something. Thanks! Edit: Ah, so it's the negative margin that I didn't do. Thanks again. ...Show All
Visual C# Run application as a Service
What type of project it should be to run as a service Say if I create something and want to run it as a service how to do it and some of my other application has to use that service how does that work Sean Hederman wrote: Perhaps we were talking about WCF because he asked specifically about it and .NET 3.0 Ooops, Sorry, I did read his only first post and then the solutions you people provided and ignored the post in which he wrote about WCF. In first post he didnot specify anything specific to .Net 3.0 so it was m y mistake. Best Regards, Rizwan aka RizwanSharp ...Show All
SQL Server Upgrading from Sql 2005 express to SQL 2005
Hi, can anyone advise if it is possible to upgrade from sql 2005 express to SQL 2005 developer edition Thanks, Jimmy You won't be able to upgrade the software itself that way, but the databases from either automatically work with each other. Just back up one database and restore it on the other - no changes to the database or code is needed. Buck Woody ...Show All
Visual C# app.config
Hi, how i can use app.config file for data base connection string. And where i can find this file in MS visual Studio 2005. Hi, From the menu choose Project > Add new item From the templates choose Application Configuration File -- SvenC ...Show All
SQL Server Query to get Linked List kind of data from the Table
hi Experts, I have a Issue table which stores the below data for many issue. some issue are duplicate to other and they are stored in a field Duplicate_of ID Duplicate_of State 77637 65702 Duplicate 65702 42217 Duplicate 42217 - Verified i wanted to write a query or some stored procedure when passed 77637 should help me get 42217 . Hint : 77637 when passed has field Duplicate_of which point to 65702 and his state will be Duplicate , 65702 will be duplicate to 42217 and state will be duplicate and 44217 is not duplicate to anything and state will be other then Duplicate i appreciate if somebody can help me think in some line to ...Show All
Visual Studio Team System Why don't I have contributor rights?
I'm evaluating TFS using a workgroup edition. Apparently I have no contritutor rights. When I right click the project node in VS it says No Commands Available. I can see the files and folders in the source control explorer but all check in, check out etc operations are disabled. I'm a member of the following groups ( UnikTest is the name of the project in question): [SERVER]\Team Foundation Licensed Users [UnikTest]\Contributors [UnikTest]\Project Administrators The project groups are members of the Team Foundation Valid Users group. The project was created using a wizard. The TFS user used to setup TFS, SharePoint and Reporting services has contributor rights (can add files and folders etc.). I've followed the guide Team Foundation Serv ...Show All
SQL Server Confusion with date attributes and member name / value
Hi, I'm just wondering about how the best approach is to create a date member... The member name has to be a string, so there seams to be no way that a client application can decide how to display a date (by it's regional settings). You have to do the formatting in the DSV. You can use some formatting with the member value but this isn't used by client applications by default (is there any application using it out there, yet ). So what's the best approach here Thanks, Deepak, yes that might be a solution... However this might be a problem with other datatypes as well... I just think about an attribute "Size" which might be formatted in differently in different regions (with a comma or point as decimal seperator, ...Show All
SQL Server Table output
Hi everyone, While creating a stored prodecure, I now that it is possible to use an output parameter which is a table . However, I do not know how to do it In other words, I would like to return a table but as an output parameter, so how can this happen you can create a table first then insert from SP insert tablex excute sp provided your table have the same schema as the output ...Show All
Visual Studio Express Editions c# for deploying to mobile
Hi I wish to write small c# applications that will work on a smart mobile (specifically hw6515 by hewlett-packard) that has the 2003 .NET compact framework installed on it. Can I deploy c# applications to the mobile (I have activesync installed too) using the c# express edition If not, what is the minimum (i.e. cheapest) package that I have to get to do this. If I have to use (as I suspect I might) visual studio 2003, I notice that microsoft are doing a 60 trial for this software, would the trial allow me to do this also for the 60 days Thanks in advace, any help appreciated Showman the express editions do not support mobile development - you would need the VS2003 to do this, or in ...Show All
Visual Studio Express Editions Adding and Removing from a variable Array?
Sorry for the beginner question but I can't seem to figure out how to add or remove values from an array of variable size. For example, this works without problem: Public Class Form1 Public config(2) As String Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load config(0) = "test" end sub End Class This however doesn't... I've tried various variations on this and I can't seem to figure it out. Public Class Form1 Public config() As String Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load config(0) = "test" end sub End Class How do I ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Simple Lines using DirectX .. ?
It was so easy in opengl. I want to draw a couple of line on the screen in screen space as well as text in DirectX using D3DXLine Interface,after experimenting a while i still dont see any lines though, any one know about this or have post about line drawing... If you can set up a Vertex Buffer you can also draw Line from a Vertex Buffer... You set up a Mesh object, you lock on the VB and you set all the points of your lines Their is two way you can have a pair of vertex and use D3DPT_LINELIST or one point to goto next each line and use D3DPT_LINESTRIP Device.DrawPrimitiveUP D3DPT_LINESTRIP, Ubound(Lines()), Lines(0),16 I think you can set up this without Mesh too, just a VB, setFVF and Set the Stream, and ...Show All
.NET Development What components end up in the compiled EXE ?
If I have a program that references 3 dll's that I made, is there any indication of those DLL's in the final, single, EXE after compilation I want to be able to find out what components make up a RUNNING exe program, but if all that information disappears on compilation, I won't be able to find out. Any ideas The dll's which are part of the system namespace DON'T end up to be part of the exe. Yes, sure you can deploy the exe on another PC without the system dll's because these dll's are already installed on that PC (when you installed the .NET framework). And you need to deploy all the dlls which are references directly or indirectly by your exe which aren't net framework system dll's. So, as a conclusion the dlls (syste ...Show All
.NET Development Accessing Web Service specs from DB
Gurus, I was wondering if it is possible to dynamically consume the services of a Web Service whom specifications are stored in and accessed from a DB Here is the story: I want to be able to add new web services to a database table (where the detail specifications of the web services are kept) so that I can consume those web services by simply querying this table and getting the specifications of eac and every one of them. Idea is to NOT change the application code in order to consume additional Web Services. Is it possible Any comment helps! Thank you. Dursun Dursun, You want to store in the DB just WS connection information or you want to store also WS description info (wsdl) as well as connec ...Show All
SQL Server Boolean in SQL Server 2005
What is the boolean equivalent for TRUE and FALSE in SQL Server 2005 In Access true = -1 and false = 0 What should I use in SQL Server bit values No, you need to use 0 and 1. SQL Server has no knowledge of true and false. This is only possible by creating custom data type via .NET. Greetz, Geert Geert Verhoeven Consultant @ Ausy Belgium My Personal Blog ...Show All
