RameshKoniki's Q&A profile
Visual Studio Team System Which type methods are from the interface?
When you have a type that implements at least one interface is there an easy way to enumerate the methods that are from an interface Method.ImplementedInterfaceMethods seems like it would and is used in the RuleUtilties.IsExplicitInterfaceImplementation method but it hasn't worked for me. I may not be using it correctly though. It looks like I won't be able to get this information at the type level and will have to analyze the methods of the implementing type. I wonder if RuleUtilties.IsExplicitInterfaceImplementationOf will do the trick Another good question. When we build our SDK FAQ, I'm going to troll ...Show All
Visual Basic Converting String to double?
OK i have a plain text file in a rich text box. This plain text file contains for the most part just text, but it has several chunks of data which are apparently stored as doubles For Example this string here: 33333oH@33333oH@26/01/06 I happen to know that the date field is a date of payment, and apparently, the data before this is the amount paid. The original program i am trying to read was written in quickbasic 7. I don't know enough to know how to do what i what. I've tried Try Dim test As String test = "33333oH@33333oH@" Dim Result As Double Result = Convert.ToDouble(test) ...Show All
Windows Forms How to scale text using Textrenderer?
Hi. The following code will scale the text to match the clientrectangle of a panel, no matter what the textlength or fontsize is. Dim scaledRect As Rectangle Dim actualPoints(2) As Point Dim transformMatrix As Drawing2D.Matrix Dim textSize As Size textSize = e.Graphics.MeasureString( "This is a test!" , Me .Font).ToSize scaledRect = New Rectangle(0, 0, textSize.Width, textSize.Height) actualPoints(0) = New Point(0, 0) actualPoints(1) = New Point(Panel1.ClientRectangle.Width, 0) actualPoints(2) = New Point(0, Panel1.ClientRectangle.Height) transformMatrix = New Drawing2D.Matrix(scaledRect, actualP ...Show All
Windows Forms WaitCursor and form disable
Hi I got an application with a lenghtly task in managed C++. I wish to disable the form to prevent user from doing anything and have a waitcursor (hourglass) when the task is running. this->Cursor = Cursors::WaitCursor; this->Enabled = false; the task this->Enabled = true; this->Cursor = Cursors::Default; The problem is when I disable the form, the WaitCursor disapear. If I& ...Show All
Windows Forms Extending the Button Class
I'm trying to write a program in Visual C++ .net 2005 beta 2 and it does not have the funtions I need to implement a button to change the rows that are being displayed in a dataset. The code that should work is this->BindingContext->Item[JazzPep_MembersDataSet, "Pep Members"]->Position = this->BindingContext->Item[JazzPep_MembersDataSet, "Pep Members"]->Position + 1; but when i use this I get compile errors that say that Item is not a valid class/struc. It was suggested to me in the Visual C++ section of this forum that I extend the button class ins Visual Basic and then import the assembly throught the CLI.&nb ...Show All
Visual Studio Team System Is there a tool to create the Methodology template ?
I wanna create my own template of a projects or modify others temaplates , is there a tool to do that easily Confirmed - there is no tool to do this yet. Clearly it would be a valuable addition to the set of tools we make available to the community. I don't think we've got anyone formally signed up to provide such a tool yet, but we're definitely investigating options. ...Show All
SQL Server Create user
I came across this code. if not exists ( select * from dbo.sysusers where name = N'name' and uid < 16382) EXEC sp_grantdbaccess N'Name', N'Name' GO i was wondering if anyone can tell me the significance of uid < 16382 thanks Run the query: select * from dbo.sysusers --in 2000 and earlier The database roles will start at 16383, users are less than this. This isn't the case in 2005 (it is all I have to test on now, and it puts them all together and you can see them as different based on metadata.) Louis ...Show All
.NET Development Data Encryption
Hello all; I want to encrypt a string for example a password and then save it into database(SQL Server). And also when I retrieve encrypted data from database, I should be able to decrypt it. Is there any way can I do that Simple code snippet would be truly appreciated. Thanks for your time spending. If you want encryption DO NOT use the above algorithm, example or not it is not encryption and will not protect the data. Don't ever create your own algorithm, they will never be as good as the ones that have already been developed. If you are using .NET 2.0, there is a ...Show All
Visual Studio Express Editions printing with WebBrowser
I want to print out more than one XML file at a time i.e. when the user select the printer in ShowPrintDialog() only once then all the XML files in the folder are printed out. Now i can print only one XML file at a time by hosting the WebBrowser in my application then open an XML file in the browser and ShowPrintDialog() to print it out. I'm wondering is there anyway to do as what I want or how can I set the printer and page setting prior beofore calling the print() method i.e. open each file and print it one by one with the setting from the ShowPrintDialog() I'm new to this. Thank you in advance. ...Show All
Visual C# System.Web.HttpUtility
Hi! I'm currently using the VS Beta 2 to reprogram a project first done in the 2003 version. The problem is when I'm trying to use the HtmlDecode method in System.Web.HttpUtility class, the only thing I get up as possible methods are the three ASP... methods. Is there anywhere I can download an upgrade for this Or is there maybe an alternative method to use Thanks! /rosin Did you manage to solve this I've got the exact same problem. Tried everything and I just can't figure it out... Would be most thankful for any help you could give me. ...Show All
SQL Server SQL Server Agent Issues
Hey everyone, I don't know if I am posting to the correct forum so please move this if there is a better forum for this. I am having issues through SQL Server that I believe may be related to the SQL Server 2000 User Mode Scheduler. First of all, I am running a single instance of SQL Server 2000 on a Quad Processor system. I was not around when the system was installed so I do not know how it was originally configured. I am getting a reoccurring error whenever I try to do anything with replication or scheduled jobs. Error 14258: cannot perform this operation while SQL server agent is starting. Try again later. I found the f ...Show All
Visual Studio Express Editions Joining Tables in database controls
I am trying to populate a list box control for an application that has two tables with a many-to-many relationship (authors and titles). The idea is to select an author from a list and show all titles for that author. In addition to the author and titles tables, there is a join table that has the primary key for author as well as primary key for titles. Any ideas on how to make this happen through the controls Hi, you can use Windows Forms Databinding. If you have two datasets you can bind one control to the dataset of the authors. And the others to a Relation to the second table with the tables. I think the ...Show All
.NET Development FtpWebRequest usage
Hi, I am trying to use FtpWebRequest and my program works, but very slow. I suppose it is bacuse FtpWebRequest opens connection every time when I try to get some information. So if I want to get full directory listing program creates instance of FtpWebRequest class tree times to make the following request Methods: ListDirectoryDetails, GetFileSize, GetDateTimestamp. (well, it's possible to get file size from directory list and this gives 33% less in connections number, but I want to use framework as much as I can - this is the purpose of FW, right ). I took this approach from 'FTP Explorer Technology Sample'. So, I am wondering if ther ...Show All
SQL Server Stored Procedure
Hi, I'm new to stored procedures and I'd like to do a little bit o customization into a sp that I currently have on my sharepoint portal server. Here it goes: EXEC sp_executesql N 'SELECT t1.[TimeCreated] AS c0, t4.[tp_Email] AS c10c5, UserData.[datetime1], UserData.[ntext2], UserData.[nvarchar10], UserData.[tp_ItemOrder], UserData.[float2], t3.[tp_Title] AS c8, UserData.[tp_Created], t4.[tp_Title] AS c10c4, UserData.[tp_ModerationStatus], UserData.[nvarchar1], UserData.[nvarchar6], UserData.[datetime3], UserData.tp_Version, UserData.[ntext1], t1.[LeafName] ...Show All
Windows Forms How to only handle the ValueChanged of a DateTimePicker if "DroppedDown"
I wish to refresh a display (a simple performance line chart) when dates change. I have two options, a "Refresh" type button, or a instant refresh when the date range changes. I would like to handle the ValueChanged event, and redraw the graph as the dates change. I would like to only respond to the value changed when the calendar portion isn't "droppeddown". This ensures that the graphs isn't redrawn as the user navigates to find the date they're looking for in other months. I could handle the DrowDown and CloseUp events to track its status, but that doesn't seem right. Is there not a simple way to establish whether the co ...Show All
