kshay's Q&A profile
Windows Forms How can I draw outside the form?
Hi everyone I do face a new problem, I have a normal form, and a graphics object from the form's Paint(), and I am trying to draw something that will come on the top pf the form and little bit outside it I need the draw something outside the form and to keep the form active (the focus over the form) Is that possible Y ...Show All
Windows Forms ASP.NET Caching in win forms
anyone have any good ideas regarding a custom caching solution like the asp.net caching mechanism in winforms ...Show All
Visual C# Constructor Chaining in C#
Dear All, I am actually new to Object Orientated Programming. I was just studing about Constructors and I came across the concept of Constructor Chaining.Can some 1 explain me about what is this constructor chaining.I know it means that we can call one constructor from another constructor. I have tried 1 example which is as follows: class Class1 { private string e_name,e_JobTiltle,e_Address ; private Class1( string name, string Title) { e_name =name; e_JobTiltle=Title; } private Class1( string name, string Title, string Address) { e_name =name; e_JobTiltle=Title; e_Address = Address; } Now how can I impleme ...Show All
Visual Basic Asp .net Menu Control - Line Seperator :(
How can I make a line seperator without having to create an image If I do have to create an Image how can I adjust it without having to create different sizes for different menu items Your help is greatly appreciated... rich Hi, On future ASP.Net specific questions you could post in forums.asp.net . You will have a great chance of being answered there... cheers, Paul June A. Domag ...Show All
.NET Development Help! Common Language Runtime Debugging Services
Hi, We have installed a software PCDCTfor window and we are getting error on exe failling Reports. But failed and give following error message whenever we try to run a big reports/processes: PCDCT for Window.exe - Common Language Runtime Debugging Services Application has generated an exception that could not be handled. Process ID=0x710 (1808), Thread Id=0xa8(2688) Click OK to terminate the application. Click CANCEL to debug the application . We have click the cancell and found following detail PCDCT for Window.exe - No debugger found. Registered JIT debugger is not available. An atte ...Show All
SQL Server General network error in VB Application
Hello All, I need some help with tracing this problem. Only one system in our network gets this error. Runtime error '-2147467259(80004005') [DBNETLIB][ConnectionWrite (send()).]General network error. Check your network documentation. I am using SQL Server 2000 I have checked the access rights of the user they are perfect and also as i have mentioned earlier this error comes up with this login only. I have also tried replacing the system but it was not helpfull. What can I do to trace this error. Thanks in advance. If this happens during the connection (login) time most likely the server closed ...Show All
Windows Forms Simple way to populate treeview from database
What is the simpliest way to populate a treeview from a sql or access database with 1 table (category and subcategory) Thx in advance Thx DMan1, now i know that i have a long way to walk with programing. ...Show All
Visual Studio Team System Are web tests executed in actual application?
When I execute a recorded web test that would add a new company (or whatever) in the application, the new company is not added when I go and check in the application after the test was completed successfully. Not sure how the test run process works. Does it have a real effect on the data in the application that I am testing The replayed test should indeed have an effect on the application --it should have the same effect as if running the application in the browser. It is not clear why this does not appear to be working for you. But it could be one of the following issues: 1.) It is possible that ...Show All
SQL Server Replication with filter
Hi All, I've done my replication successfully between SQL Server 2000 and SQL Server CE. But how if I want to filter my replication For example :- At Table1 have 5 field which is UserID,Month,Year,Price,ItemCode I want to filter replication data with UserID and Month and Year. How can I do it Thank you!! I think I see what you are trying to do - what you want is a horizontal filter that replicates only certain rows to certain subscribers. The good news is that's entirely possible. Let's say you wanted to (as you mentioned in your previous post) filter rows by userid. What you can do is set ...Show All
Visual Studio Team System many applications sharing framework projects, and each on a different version
I have several applications that share a set of framework projects. Each application uses a different version of the framework projects. Can I check out multiple versions to support multiple checked-out applications, or do I have to check out separately It might sound goofy at first, but originally we just created project references to the framework projects. But this assumed that all of our applications would always use the latest version of all framework projects. That worked well when we only had two or three apps, but our number of applications grew, and the framework project evolution that occurred to support one app quickly put u ...Show All
Microsoft ISV Community Center Forums WORKING ON WORKBOOK WITHOUT OPENING IT
I am doing some changes in a workbook. The first thing I do is to open it. Then I do the changes. Then I save it and close it. Is it possible to effect the changes without opening the workbook This is the code: directory = "c:\Documents and Settings\Antonio\My Documents\Client " Workbooks.Open directory & "Geroa\Geroa Inventory.xls", 0 Worksheets("renta variable").Activate Worksheets("renta variable").UsedRange.Select ROW_COUNT = Selection.Rows.Count For I = 2 To ROW_COUNT If Cells(I, 1).Value = bloomberg_stock_ticker Then Match = True Cells(I, ...Show All
Visual C# Open Command prompt from C# program and run sqlcmd utility
Hi This is with respect to this post http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=458786&SiteID=1 My C# program creates db and other db objects. I want to run .sql files from C# program. Basically I can read the files and run the command using sqlcommand. Tjis will take a lot of time if the file is large. I have decided to run the sqlcmd utility providing the .sql file as an input file. For this I need to launch command window and then run sqlcmd with the required params. For some reason the code below does not execute. (Assume the other variables have been declared) // create the ProcessStartInfo using "cmd&qu ...Show All
Visual C# Database Connection String
I am new to C# and VS2005 and am creating a large project which connects to SQL Server using numerous table adapters. I would like to be able to organize my code so that when I am building the project in Debug mode the table adapters use a given connection string. Then when I'm building in Release mode, the table adapters use a different connection string. I am looking for solution that only takes a few lines of code. I am aware of ... #if DEBUG ...connection string #else ...another connection string #end However, the table adapters use the connection string which is part of the application settings a ...Show All
Visual Studio Tools for Office C# CommandBarButton problem
I'm using a VSTO Outlook 2003 Add-in. CommandBarButtons are displaying correctly in OutLook 2003 except when Word is used as the mail editor, (default installation). When Word is the editor the buttons display as small boxes with "x"s in them. What am I doing wrong Is there a resource explains in C# the "Use" of CommandBarButtonClass Members Below is a snippet of the C# code which I'm having the problem with. // Begin snippet // Add the CommandBar newBar = inspector.CommandBars.Add( "ExportControlBar" , Office. MsoBarPosition .msoBarTop, false , true ); // Add a button newButton = ...Show All
Visual C# Shared Memory: Another problem
I am trying to make the C# code and the C code communicate with eachother by a named shared memory. I am able to get them to access the memory by pointing to the memory location, and they runs fine independently. However, if I run the C and C# exes at the same time the C# will points to null in the memory location. // Note: You must compile this file using the C# /unsafe switch. //[assembly: SecurityPermission(SecurityAction.RequestMinimum, Execution = true)] // This class includes several Win32 interop definitions. internal class Win32 { public static readonly IntPtr InvalidHandleValue = new IntPtr(-1); public const U ...Show All
