Ruddles's Q&A profile
.NET Development how to detect form feed, line feed.....
hi expert, Is there any way that i can detect form feed , line feed and carriage return in and input string Thanks in advance. As Micheal has suggested.... Suppose you have a string: char carriageReturn = '\r'; char lineFeed = '\f'; char newLine = 'n'; string stringToCheck = "some text\nsss\f"; int indexOfnewLine = stringToCheck .IndexOf(newLine ); // will return the index of new line characeter if found else it'll return -1 as index (Means it doesnot exist in the string. Same for others... You can also use IndexOfAny(char[]) to see if anyone exists in the string..... and What's its index... Best Regards, Rizwan ...Show All
.NET Development .NET 1.1 to .NET 2.0 Upgrade Logical issue
Guys, I am new to .NET Framework and .NET development, my Boss asked me to findout that either we can Develop and run our .NET 1.1 application under .NET 2.0 I think that for building and running VB.NET applications under .NET 2.0 we need to have VS 2005 and is it possible that I can built applications in VS 2003 and run it under .NET 2.0 Just need to clerify from you guys first Thanks in advance .NET Framework installs side by side, one does not conflict the other. You can run .NET 1.1 apps in .NET 2.0 I believe, I've tried it, but you cannot run .NET 2.0 apps in .NET 1.1/1.0. It's not backwards compatible in order to develop .NET 2.0 apps, you need VS2005. VS2003 and earlier do not run under/compile wi ...Show All
SQL Server Data Transformation Project Template
Does anyone know how to install or make available the Data Transformation Project Template in SQL Server 2005 I can not find it using Integration Services. Not quite sure what you are asking but this might answer your question: http://blogs.conchango.com/jamiethomson/archive/2005/11/12/2380.aspx -Jamie ...Show All
Visual Studio Team System Call to Static class from Set of originating Methods
Hi, I'm new to FxCop and am not sure what I want to achieve is possible so was hoping that someone could confirm this. I need to determine whether any calls to a specific static class are being made from a fixed set of methods. The methods are defined in a base class but overridden by descendants. However, what complicates this further is that these methods may be several calls deep within the call stack, as they call other methods which in turn could call others. The methods called by the ORIGINAL set of methods are unknown. For example: Originating Method 1 -> Sub Method 1 -> Sub Method 2 -> <CALL TO STATIC CLASS> I would want this to be flagged as a broken rule. So I have two problems I'm not sure FxC ...Show All
Visual Basic Connecting to Access via the wizard
I was attempting to use a DataGridView and am having troubles connecting to an Access Database. I'm running the Data Source Configuration Wizard. I get to Choose Your Data Connection. I click New Connection. I click Change. I select Microsoft Access Database File. I click OK. Here is where my problems start. My box says Add Connection. In it is a field to enter a Connection String. It also has 3 buttons -> Test Connection, OK, Cancel. And it has a disabled Advance button. I have 2 computers that show this. 2 other machines display what I expect. The box says Add Connection. It has the Change button that I clicked previously. It has the Browse button to search for my Database. It has the 3 buttons and disabled Advance butt ...Show All
Visual Studio 2008 (Pre-release) Interacting with 2D placed on 3D is now possible in v1 of the Windows Presentation Foundation!
Like the subject says, you can now place 2D on 3D and interact with it! More information can be found at the WPF 3D blog: http://blogs.msdn.com/wpf3d/archive/2006/12/12/interacting-with-2d-on-3d-in-wpf.aspx or you can check out the Channel9 video we did on it. http://channel9.msdn.com/Showpost.aspx postid=266036 Enjoy! -Kurt ...Show All
Visual C# problem resizing images
I found some code on the internet to resize an image, but when i want to resize an image to lets say 300*200 i get an image that is 266*200. I even tried 350*200 but still 266*200! This is the code: public void ResizeImage(int MaxWidth,int MaxHeight, string FileName, string NewFileName) { // load up the image, figure out a "best fit" resize, // and then save that new image Bitmap OriginalBmp = (System.Drawing.Bitmap)Image.FromFile(FileName).Clone(); Size ResizedDimensions = GetDimensions(MaxWidth, MaxHeight, ref OriginalBmp); Bitmap NewBmp = new Bitmap(OriginalBmp, ResizedDimensions); //Dit gebruiken als er geen gebruik gemaakt wordt van saveFileDialog //NewFileName = Fil ...Show All
Software Development for Windows Vista Product Identification Tool - How to use
I am trying to follow the steps to get The "Works with Windows" logo. One of the first steps is to get a Product ID Code. I downloaded the Microsoft Product identifcation tool, and ran it on my system, but it does not display my application in the list. What prerequisites do I need in order for my app to appear in the list so that I can proceed wiith this. Also, is it looking for installed applications or msi files. I have both for my app on this machine but the tool did not pick them up. Update! Literally seconds after posting the above I received an email from the Setup Factory support people: The issue is with a registry key that is created by the installer. The PIT looks at the registry keys i ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Save Buffer Image
First off, let me state that I'm relatively new to game programming... As I understand it, I am supposed to draw all my 2D sprites to a buffer, then show the buffer, is this correct If this is correct, is there a way to draw buffer1 and save a specified portion of it to buffer2, then save buffer2 as an image, without ever displaying either of the buffers ...Show All
.NET Development Delayed Datareader column error
In a live application which i created, i noticed that after a day or two, i get a datareader error, specifically the error which returns a column name as it's message. i.e if i had written reader["col_name"] i get col_name as the error message. The problem is that i read 5 column names in a single read, and the messages vary, it not always the same column name. However, whenever i restart the server, the problem goes away for another day or two. Recently i increased my max pool size because i was having pooling issues, this had an effect on the datareader error in that it now occurs every 2-3 hours instead of the 1-2 days. pls i need help on this one Thanks The error is saying that the ...Show All
SQL Server How to programmatically turn on My Reports?
SQL Server 2005 Reporting Services From the Site Settings page in Report Manager, to turn on the My Reports functionality, one must check the “Enable My Reports to support user-owned folders for publishing and running personalized reports.” Checkbox and click the Apply button. We need to turn on the My Reports functionality programmatically. How can we programmatically turn on My Reports Call SetSystemProperties and pass in EnableMyReports with a value of true. For more info, see here: http://msdn2.microsoft.com/en-us/library/ms155025.aspx ...Show All
SQL Server Linked server distributed query doesnt work
Hi, The distributed query seems to work on the management studio of the server where I have linked the other server to but not accross the network on other management studio with the same impersonated logins. The error I get is. OLE DB provider "SQLNCLI" for linked server "usbo-sql01" returned message "Communication link failure". Msg 10054, Level 16, State 1, Line 0 TCP Provider: An existing connection was forcibly closed by the remote host. Msg 18452, Level 14, State 1, Line 0 Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection. The wierdest thing happened. I exuectue a distributed query on my management stu ...Show All
SQL Server Unable to Install SP1
Microsoft Update tells me it is unable to install SQL Server 2005 Service Pack 1 (several times). When I check the Update History, I see that Error Code: 0x2B18 is returned. However, I can't find out anything about this error code and it just tells me to retry installing the update. I also tried downloading an update from MS Downloads to attempt a manual installation, but that failed as well. I'm dealing with a newly migrated instance of Windows Small Business Server 2003 Premium R2 on a new HP ML350 G5 Server. Any helpful suggestions would be appreciated. I also have this problem. It is on my desktop at work so I haven't bothered much about it until today. I have Microsoft Update set to infor ...Show All
Windows Forms datagridview showing no grid
I added a datagridview control to a form (VS 2005), filled with data at form load time. The datagridview control keeps being grey, not showing any grid at all.. I have another example working properly but,.... I can't see the difference... Any hint, please thx here you are, the code from the form ============================================= Imports BL ' ' ' Public Class EmpInfo Inherits System.Windows.Forms.Form ' Private mdsEmps As BL.EmpService.Employees Private mdsEmps As New DataSet Private Sub EmpInfo_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load GridLoad() End Sub ' ' ' Public Sub GridLoad() Dim br As BL.Employ ...Show All
SQL Server Encryption and bulk insert
Hello, I need to build a table with encrypted data with the source data coming from a .csv. The account number from the .csv will need to be encrypted in the final table and I will also need to have a hashed or MAC index on the account number. I'm guessing that I can do this with a stored procedure using a temp table to load the unedited data and then load the actual table from there. The table will be built from a download every evening. The key and certificate for the encryption are already set. I have been able to load data directly to the table providing values. But, I have been struggling getting a bulk insert to work. I'd appreciate any ideas or examples. Thanks! Thanks for your quick ...Show All
