Arif Khan's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. DoEvents vs. OnPaint-Invalidate()
I was just wondering if the OnPaint-Invalidate() method of creating a render loop is really better than the DoEvents method. I do not come from a directx background but I am forcing myself to do it so that I can help create the next great game (of course!) Anyway, I just saw this method in the Coding4fun articles and it seems to definitely be a more OOP approach in any case. Are there any other benefits A great game loop can be found insid ...Show All
SQL Server sp and joins... please help!!
Hi all I am writing a sp to returns sales data, unfortunately the only to collate the data is to make 2 tempory tables, the problem I am having is joining them... the office id is unique in both tables and the 2 tables I am trying to join are #target1 and #bookings select cast (office_id as varchar (10) ) , cast (bo_office_id as varchar (10)) from #target1 inner join #bookings on #target1.office_id = #bookings.bo_office_id the error ...Show All
Visual Studio Express Editions Page Setup Dialog and its Margins
I need some help please with the following issue: I have a simple application that writes a line of text to a page. When I check the values of the System.Drawing.Printing.PrintPageEventArgs pagesetup margin values they are all 100mm. If I then open and close the PageSetupDialog whose margins are all set bydefault to 10mm the margin values change to the following: Left=39 Right=39 Top=39 Bottom=39 If I then open the PageSetupDialo ...Show All
SQL Server failure installing SQL Server 2005
I am trying to install SQL Server Sept 2005 on Windows Server Enterprise Ed. 2003 which was just freshly installed on a new partition. I downloaded files from a DVD and when I click on install.exe it checks the system configuration: everything is OK (all checks passed) but then I get a window/message: "The installation package could not be opened. Verify that the package exists and that you can access it, or contact the application vendor t ...Show All
Visual Studio Team System Setting Permissions in Team Foundation - all client machines need to refer to the Team Foundation Server by name
I followed the instructions for adding contributors to a project on VSTSB3. That is, I added them (as a AD security group) to the project via VS.NET, added them to the Sharepoint site, and added them as browsers to the SQL reporting services. Contributors can access the project, but see a red "x" next to the documents and reports folders, respectively. We found this is becuase some clients are not on the domain and entered the IP address of the ...Show All
.NET Development How to use CredentialCache & DownloadFileAsync for Local Network
I tried to do a method to download a file from LAN or WEB. If LAN or WEB location don't have username and password the below method work. If WEB location have an username and a password the method work. If LAN location have a username and a password the method didn't work. The file was shared on WinXP Pro and the folder can be mapped with Windows Explorer (if username and password is correct of course). Private Sub TransferFile( ByVa ...Show All
Visual Basic File I/O to read a specific line
Hey guys, In need of help. I need to read a line from a .ini file (specifically the 4th line). What it is, is a path to a database which I want to implement as the connection file in my vb window forum --> crystal reports so crystal viewer can pull the data from that database. [CONFIG] ReportDirectory=E:\appdata\ MainframePortNumber=1111 ClientsDB=E:\appdata\clients.mdb ProviderDB=E:\appdata\provider.mdb So I need VB to read the 4th line and ...Show All
SQL Server Microsoft SQL Server Management Studio Express Error At Started!!!
有 用 (JIT) 而不是此 框的 信息, 此消息的 尾。 ************** 异常文本 ************** System.IO.IOException: 法在易 父 下 建 定子 。 在 Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str) 在 Microsoft.Win32.RegistryKey.CreateSubKey(String subkey, RegistryKeyPermissionCheck permissionCheck, RegistrySecurity registrySecurity) 在 Microsoft.Win32.RegistryKey.CreateSubKey(String subkey) 在 Microsoft.SqlServer.Management.UI.ConnectionDlg.RegisteredServersUti ...Show All
SQL Server Forms authentication fun
Anyway, I finally get forms authentication up and working (I think). I use the included example. I finally get to the point where I register a user. Then I modify the rsreportservice.config file to make the new user the 'admin' user. Now when I login, I have no permissions to anything. I restart the entire server. Now when I login I get a "Key cannot be null. Parameter name: key:". Any ideas here ...Show All
Visual Basic Deploying help file
Ok, first ever post. I've developed a VB application and associated chm which I want to deploy together, currently deploying VB application ok without the helpfile using ClickOnce using 'cd' option. I can get it all to run in Visual Studio by specifying the full path to the chm under HelpName space on the help provider, but of course the deployed application wont have the file in that place. So I've tried adding the chm file to the project an ...Show All
Visual Studio How to move shapes within diagram programmatically???
Hi, is there a possibility to change to position of a shape within the diagram by code. My intenion is, when i move a shape all its connected shaped should be moved as well. Is this possible Any hints or ideas Thanks, Benjamin Benjamin, You can change the position of a shape by setting its AbsoluteBounds property. You will need to do this in a transaction. You can detect when a shape has ...Show All
SQL Server Login failed for user...
Hi! I have msde (that installed with an application) on the old computer. Now I am setting up a new computer and I want to use SQL Express with this application so that I could easier manage databases. I have installed SQL Express 2005, attached databases from the old computer, created an ODBC system data source and created user "AD" to use with this application. Now when I try to log on with this program I get the following e ...Show All
Visual Studio Express Editions changing col header names
Does anybody have any success in changing the column header tesxt for each column somthing like DataGridView1.CurrentCell = DataGridView1.Columns(1) DataGridView1.CurrentCell.Value = "File Name" which does not work any ideas PS in VB2005 hi, you can do something like this colName.HeaderText = "Employee ID" select your datagridview and go to properties , select co ...Show All
SQL Server SQL2000 SP4 deadlock problem
Hello, We have an application running well for a long time on SQL2000 SP3a. Few days ago we have installed SP4 and immediately after this some users started to get errors: "Transaction (Process ID XXX) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction." When I look in the process info it seems that this process is blocked by itself, i.e. the blocking process and the ...Show All
Visual Studio Internet Connection in VS 2005
Hi, I just installed VS 2005 on my machine, but my online help cannot be accessed. I keep getting the message: "The request failed with Http Status 407. Proxy authentication required". IE on my machine does have proxy authentication. Is there a fix for this Thanks, Arshad Arshad, Where does this message appear Is it in a WebBrowser upon trying to view a help page, or is it in the Sea ...Show All
