Ather.'s Q&A profile
Windows Forms Drawing parts of an Image
Hi - quick question. I need to use DrawImage/DrawImageUnscaled to draw certain source areas from a certain Bitmap, using a Graphics object, many times. I've tried many variations of the call and they all are very slow... 30~50 iterations takes almost a second. There's nothing I can do about the size of my image file either, unforunately. Making it a small-size PNG doesn't help at all. Also, I really want to avoid using DirectX here for the reasons of simplicity, load-up speed, and also the fancy advanced features like gradient brushes, etc. that I really need. So, to my actual question - is there any other way to greatly improve my speed without using another technology than GDI+ Thanks in advance... P.S. I should add that I can't reall ...Show All
SQL Server Comparing DateTime to UK Format
sorry folks the other message was on the wrong board! Hello friends, I am trying to return all records between 2 dates. The Date columns are in DateTime format, and i am ignoring the timestamp. The user should be able to input UK Date Format (dd/mm/yyyy) and return the rows. This sql code works fine for American date format, but i get an error: converting from varchar to datetime when i put in a UK format. eg. 22/11/06. Please advise on this problem! many thanks! ALTER PROCEDURE SalaryBetweenDates ( @WeekStart datetime, @WeekEnd datetime ) AS BEGIN SET @WeekStart = (SELECT REPLACE(CONVERT(DATETIME,@WeekStart ,103),' ','-')) SET @WeekEnd = (SELECT REPLACE(CONVERT(DATETIME,@WeekEnd ,103),' ','-')) END BEGIN SELECT s.StaffNo,s.S ...Show All
Smart Device Development Problem-Connecting to sql server using pocket pc 2003 emulator..
Hi Folks, I am trying to connect my remote sql database using the pocket pc emu. 2003. I am getting the error "SQL Server does not exist or access denied.". The thing is I have ASP. net projects and I connect without any hassle. I have also tried connecting to an online database using the pocket pc '03 emu. and it works....I just don't understand why it isn't working remotely.... Can someone kindly help That means you should click on active emulator in emulator's manager and select "Cradle". Another way would be to configure emulator’s networking support (search emulator’s forum for details). You likely to run into other issues like wrong connection string. ...Show All
SQL Server ADO with SQLXMLOLEDB
A command is created on a connection with SQLXMLOLEDB provider(SQLXML4.0). 1. Where do you find information for the [cmd.dialect] 2. With you can provide an InputFile and get an outputFile. What are the formats of these files 3. What are the appropraite argumetns for the cmd's execute method Can you provide a link for SQLXML4.0 download Appreciate even part answers. Thanks. Jayaram Krishnaswamy my web site: http://www.angelfire.com/vt2/hodentek I blog at: http://hodentek.blogspot.com The inputFile is really a template file. The structure of thsi file seems to have changed from version 3.0 to version 4.0. If the inputFile(template) sent a SQL statement, it shound be executed on the server and the ...Show All
.NET Development SourceTable and SourceField
Hi I'm upgrading my code based on DAO to ADO.NET in VB2005 and got stuck looking for SourceTable and SourceField properties of DataTable fields. DAO.Recordset.Fields have .SourceTable and .SourceField properties which tell you the original table/field which provides the data in that particular field of the recordset. This is useful in my application where I am filtering users' queries to the database to see whether I want to allow them access to that particular bit of data. Although I can imagine that there are maybe other solutions to security issues, I've already built a whole system around this method, and would like for simplicity's sake just upgrade it without changing the methodology. Can anyone advise where to g ...Show All
Visual Basic Is it possible to make a parent form a child form of another form vb.net?
Hi! I am new here as well as the programming language I am using. I am working with forms now and I just want to ask if it is possible to make a parent form a child form of another form What i want to do is something like this (grandparent ->parent -> child) When I set the parent as a child, it gives me the error that I can't set the parent as a child. Thanks in advance. You never indicated that you wanted MDI forms :) You can only have one MDI container. You cannot have MDI Containers as children of other MDI containers (which is what the error is telling you). However, you can have forms within forms, as I stated: so your MDI container is the 'grandparent', the MDI Children are actually pare ...Show All
Visual Studio Team System MSSCCI Provider installation error
Hello! One of the devlopers has .net 1.1 framework installed on his computer. He is using Visual Studio 2003 and wants to access Team Foundation Server. I tried to install msscci provider version 1.1 from the msdn downloads website and it comes up with the message: "The setup requires the .net framework version 2.0.50727. Please install the .net framework and run this setup again. The .net framework can be obtained from the web. Would you like to do this now " The user isn't ready yet to get .net 2.0 framework. Please assist. Thank you! Thank you Michal. This is a new user who doesn't have prior source control tools installed on his machine. Hence doesn't have the Sour ...Show All
Software Development for Windows Vista Going from WDK5308 to WDK5320, now getting U4004 warnings
I'm trying to build my project from the command line under WDK 5320 and now I'm getting warning U4004 ("too many rules for target") for a target in my makefiles when previously under WDK 5308 everything built without any warnings. The makefiles have not been changed between updating the WDKs and the build process has remained the same. Why are my makefiles suddenly broken under this new WDK To be a little more specific, I have a target in many different leaf directories in my source called LastStep, which basically copies objects and executables to another location and does some clean-up. This same target is in many different makefiles in different directories and always worked without any kind of warning in WDK 5308. ...Show All
Visual Studio RDLC Report Viewer and No Data Showing
I have a bunch of local reports that will be running off of seperate SQL stored procedures. I have set up a form that contains a report viewer control. I have set up a dataset that contains my stored procedures. I want to make this dynamic so that I only have to have one report viewer control for all my reports. The problem I am having is that when running the reports with my code, I am not getting any data. Any help would be appreciated. ReportViewer.ProcessingMode = Microsoft.Reporting.WinForms.ProcessingMode.Local If utilities.Report = 1 Then Dim rptSource1 As New Microsoft.Reporting.WinForms.ReportDataSource( "ProspectiveTMDetail_ProspectiveTMDetail" , Me .BindingSource1) Me .ReportViewer.LocalRepo ...Show All
Windows Live Developer Forums Windows WM_MOUSEWHEEL message
Hi I have an application running on my lap top which should trap the WM_MOUSEWHEEL message allowing me to scroll backward and forward through my data. However, the high word of wParam is always zero even though the low word reports the shift/alt/cap status correctly. I have confirmed that my window has input focus and that GetSystemMetrics(SM_MOUSEWHEELPRESENT) returns true. Any ideas why this should be My only thought is that I'm using a laptop which has a local mouse pad and I also have a USB mouse. How does windows discriminate between the sources of wheel messages, or does it simply just 'OR' them together Hi Chris, You need to ask this question on one of the MSDN Win32 development forums. This Windows L ...Show All
Visual Basic How to hide a folder or File
I want to hide a file or folder in windows so that it can't even seen by command line or explorer. I am not talking about hiding a file or folder by simply changing the attribute in properties window. I want to hide in such a way so that no one can access my folder without the use of software. can anybody give me any idea how can i do this thanks as far as the file is concerned you can use the io.encrypt method and set the file attribute to hidden...this will hide it from prying eyes and if it is found only the encrypting account can decrypt it... Public Shared Sub Encrypt (ByVal path As String ) Member of: System . IO . File Summary: Encrypts a fi ...Show All
Visual Studio Team System Trial Expired, Microsoft Partner and I can't get the VS2005 Edition
Title summarizes the issue. I am hoping that someone can suggest a fix or resolution to this other than Microsoft because I've hit a brick wall with their Partner support. So please help...... We are a Certified Partner with ISV Competency. As such, we should receive the VS2005 Team Edition for Developers. Those discs have never been sent to us. Recently my trial started warning me and we looked through the stack of discs to find out we do not have the new discs yet. So I contacted our ISV Partner Account Manager and he opened up a support case to send the discs. I have received the shipment but the discs were not in there. Since then I've contacted the support line for Certified Partners and was informed that the discs had ...Show All
Windows Forms Urgent... Stuck in iimplementation Custom Save File Dialog
Hi All, I want to implement my own custom file save dialog. I have 2 options : 1) Use WinAPI and use GetSaveFileName API. 2) Inherit commondialog and make it according to requirement. I am using Windows API. GetSaveFileName. and implementing HookProc in that. I m getting every message in that. But I have problem in that. First problem is lparam value for particular event like folder up and back to folder is not constant. Second is even if I return nonzero value Folder doesn't ignore the message. actually it should according to documentation. Below is a sample code. public class DialogHelper { #region Private Variables public delegate int OFNHookProcDelegate( int hd ...Show All
SQL Server Problem with SQLServer 2000
i installed the Visual Studio 2004+ Framework.NET 2 and SQLserver 2005 after those i installed SQLserver 2000 and i got this : http://img240.imageshack.us/img240/7392/sql2fk.jpg thank you i dont know what do u mean... i even dont need SQL server 2005 i need only the 2000... but i have heard that removing SQL server 2005 from my computer wont work... can someone give me step by step what to do to solve the problem... thank you :D ...Show All
Visual Basic tab ASCII Character Code
curious what the ASCII Character Code for "tab" would be, I have a text file that is a database table dump and every field is seperated by a tab and need to know what the ASCII character code for it is so I can write a little script to interpret the text file. Thanks in advance. Mitch I trust it didn't take seven and a half million years to come up with that one Hans Obviously some people round here aren't Douglas Adams fans. ...Show All
