Youcef's Q&A profile
Windows Forms Activation Key
Hi Everybody How r u all I am developing an intra office messanger using c#.I want that my product setup will be secured by both product key and activation key.I want to make a trial version that required a produck key to run trial version but after 30 days it required activation key.So only that user can use my application Product Key : Product key is same as window cd key Activation Key : Activation Key can be get by my website.You should get activation key to run registered version of my product Can any one tell me that how i can add these in deployment of my product or how can apply activation key on my product Waiting ...Show All
Visual Studio 2008 (Pre-release) LINQ and SQL Server Permissions
Hi, I have one reservation about jumping into LINQ for an enterprise application: Security. It seems (and correct me if im wrong) that to be able to use DLinq to perform insert/updates on the database, you would have to allow the database user you connect as, to have insert/update permissions on the tables in the database. This is not considered good practise at the company I work for, where we only give the user execute permissions for stored procedures (Obviously to prevent attacks like SQL Injection). I know one way around this is to override the default insert/update actions in DLinq to use stored procedures, but this takes away th ...Show All
Visual Studio Express Editions Compiling
Hi, I recently downloaded the Visual Studio Express Edition, and I am unable to compile the file to run it, or at least I do not know how to use the file once created. I was wondering how I would test out a program/file once it is debugged. Thanks everyone for the help! Can you describe more what you are doing and your expected results To compile an application you will need to load it as a project, build it and then run it. ...Show All
Windows Forms Dynamic Data Entry Control
Hi We are going to migrate a VB application to Windows Forms. The current application uses DataView Control from Green Tree. This is a kind of dynamic data entry control. We can specify the field type (Text Box, Check Box etc), data source (Table, column name etc), and positioning (width, height etc) and then, the control will generate all fields durin ...Show All
Visual Studio Team System Deleting Corrupt Team Project
I initially could not create a new team project because I was not a member of the local administrators group on the team foundation server (single server environment). Once this was corrected I deleted the failed projects via DeleteTeamProject /force <projectname>. At this point they do not show up in the Team Explorer. Next I try to re-create the project and the process fails with "Microsoft.Pcw.currituck" failed with error: "Initialization Failed: Project <Project> already exists on server <Server>". Rerunning DeleteTeamProject again will say something to the effect of "no project found" ...Show All
Windows Forms text box with gradient backcolor
Does anybody know a way to create a text box whose background is painted with LinearGradientBrush. As much as I figured, text box never raises Paint event. I created a button with transparent background (inhereted from Button and style set to SupportsTransparentBackColor), and when I combine it with a panel painted with LinearGradientBrush I get the effect I need. B ...Show All
Visual Basic Which Control did I RightClick on?
hi all... Is it possible to find out which control a user rightclicked on and show the name of the control in a messagebox For example I have three buttons on a form and a contextmenu that is used in common with all the buttons. When a user rightclicks on a button the context menu is shown. Kind of like the "Whats This" menu in MS Apps. So instead of writing a rightclick event for all of the controls on the form, I thought that if I could find the name of the control that the user rightclicked on to open to context menu, I could show the appropriate response. Is there a way to find if a coordinate of the mouse click falls ...Show All
Visual Studio Team System Test projects and private/protected members...
I watched a Channel 9 video showing some Team System stuff and they included showing off unit testing. When the speaker was asked about private and protected members, he said they had something for him, but he never actually said what it was. How is this possible I don't want to have to make methods public and wrap a property around every field just for testing. This blog could help: The inner works of private method testing in VS Team System ...Show All
Visual Basic run program without logon windows
hi, I have a tray application ready to running when windows start but this only happens when a user logon windows. (adding to registry key) How can I start the program whitout user logon windows (when computer is locked) Thanks. If you are not against the idea of losing your tray icon (or having the tray icon be located in a separate application), you may want to look at building your core application into a Windows Serivce . ...Show All
.NET Development how to set local timezone in asp.net?
Hi, We have created an application in asp.net(in USA) and we have clients in different parts of the world. The problem is , consider we are in eastern timezone (eg:Georgia) and one of our customers is in Texas, now there is a time variation. We came to know from our texas client that the application is displaying our timezone, but not his. Is there any way to make the application read/take the time from the local system Tnx in advance, sona ...Show All
SQL Server How to connect SQL Server From Pocket PC Device
Dear members I want to connect SQL Server database from pocket pc device but it gives an error than "Either the sql database does not exist or access denied My Code is SqlConnection conn=new SqlConnection("Data Source=OurServer;initial catalog=Resident;user id = sa;password = sa); conn.Open(); If anybody knows the problem please send some information Regards Bijaya This blog is a great source for connection troubleshooting tips: http://blogs.msdn.com/sql_protocols In this case if SQL Server 2005 is running on Windows XP SP2 then you may need to add an exception to the Windows firewall for the service. The blo ...Show All
Windows Forms Outlook 2003 Look and Feel
Hi There Everyone, Does anybody know if there is a Visual Basic version of this Many Thanks Si Hi, Thanks for your reply. Im only a newbie learning so don`t really want to spend any money on this:( Well not the prices i`ve seen for commercial products anyways:( Cheers Si ...Show All
Visual Studio 2008 (Pre-release) Updated samples for Beta 2
I have updated some of the samples to .NET Framework 3.0 Beta 2. http://www.valil.com/winfx Great! I was just trying to demo your chess app to somebody yesterday. More people should provide XBAP or .Application versions of their apps/samples. (i'd prefer people provide XBAPs as there is less hesitancy to download and run it...even if the user doesn't know the publisher...) Thanks, Rob Rob Relyea PM, WPF Team http://spaces.msn.com/rrelyea ...Show All
Smart Device Development looking for playing video stream
hi.. can i know how to playing a video in pocket pc stream or local i have search this topic but cannot find any answer. Chris Lorton wrote: Odeyssey software ( http://www.odysseysoftware.com/ ) has a product, CFCOM which they demo with an interface to media player. This is one possibility. If you want to roll your own, you'll need to create a shim DLL which you can p/invoke from managed code which will interace with the WMP COM interface(s) you need. If you have access to NETCF V2 (via beta2 or a CTP), you can use the new COM/interop feature(s) to use COM objects directly from managed code. -Chris Already ...Show All
SQL Server table or view doesn't exist
Hello I am trying to run a select statement in Java against SQL Server 2K. But I keep getting an error saying that the table doesn't exist. Is this a problem with my SQL statement select * from counting I also tried select * from dbo.counting my connection url is jdbc:microsoft:sqlserver://IS-0081526:1433;databaseName=bail; I can run these queries from Query analyzer I am able to run them with the same account and login. Tough to say. You are not doing anything fundamentally wrong. My guess is that your connection string is not correct or it is not picking up the specified Dat ...Show All
