pinoyz's Q&A profile
.NET Development How to Fill a OleDbDataAdapter with a DataSet
Hi, I have a Connection to a Access DB, In the DB is a Query that I need to be displayed on a DataGrid from a Dataset. OleDbConnection OleConn = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=./MyAccessDB.mdb); OleDbCommand OleComm = new OleDbCommand("SuppliersCliamQuery", OleConn); OleComm.Connection = OleConn; OleComm.CommandType = CommandType.Text; OleComm.CommandText = "SELECT * FROM SuppliersCliamQuery WHERE ClaimNumber = '#23XP'"; DataSet ds = new DataSet(); OleDbDataAdapter myReader = new OleDbDataAdapter(OleComm); myReader.Fill(ds); My Current Query in Access look like this: ClaimNumber ItemDetailsFromClient #12BX P3445 ...Show All
Visual Studio Documentation Compiler - Sandcastle
We did code complete of documentation compiler ( code named "Sandcastle") on June 15th and currently we are testing the tool building our .NetFramework documentation. We would like to release the CTP version of Sandcastle in Microsoft download center by next week. The perf in our testing has been great as we are able to build the entire framework content in less than 1 hour. I am in the process of going through final check and code signing required to post this in our download center. Please expect the CTP in the next week or so and I will provide an update here as soon I post the CTP. Anand.. Well it is the end of that next week that the Sandcastle CTP should be release, where is it I too would love to see sandcastle ...Show All
Smart Device Development Using custom fonts on windows mobile devices
hello, We are developing an winforms application for win mobile devices. We need to target win mobile smart phones 5.0 and 2003, also win mobile ppc 2003 and 5.0. What we should do if we want our own custom fonts for the application. can we use and install a particular true type font on all of the devices above second option is going for our own bitmap fontstrings but in that case how can we use them in managed application where controls like textboxes,listviews does not support these fonts we are developing managed application with c#., and as much as possible want to leverage on rich controls provided by .net., Only hurdle here is fonts, please suggest us suitable solution urgently. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Can I use standard tcp/ip protocol on XBOX360?
I want to make a mmo card game, and I already have a server, and I want my program running on xbox360 connect my server on a pc server running windows. Can I use standard tcp/ip Hmmm. I was considering trying to write a raytracer to take advantage of the power of the 360. Now I think it may not be very practical as I would have no way of getting any image that was rendered by the raytracer back to my PC is that correct ...Show All
Visual Studio 2008 (Pre-release) Dual Factor Service Authentication
Hi, What I would like to do is to establish "dual factor" authentication for a service. Basically, I want to ensure that the machine certificate and an appropriate username/password is supplied to the service in order to construct the appropriate claims. I've been toying around with various configuration file entries, and I can't seem to find the appropriate set of bindings to make this work. In these cases, the clients are presenting these items to the STS which is issuing the appropriate claims which are verified at the receiving service. There are two scenarios that need to be handled: 1) Utilize current Windows Login information along with the machine certificate 2) Utilize custom username/password along with the ...Show All
Windows Forms How to See custom properties of CustomColumn in Editor window
Hi, i'm trying to write a custom column to display text and image both. Image will also be clickable to use as a button. I write it and works, but at design time i can not apply its image properties(imageClicked, imageOver vs). Do i have to write (impossible) a new editor or is there an other way to see them. Also i wonder how to disable OnMouseDown event, because i want my image button not to do anything when i set a property called locked. I overcome as below private void dataGridView1_CellClick( object sender, DataGridViewCellEventArgs e) { if (e.RowIndex < 0) return ; if (dataGridView1.Columns[e.ColumnIndex].Name == "MyColumn" ) { DataGridViewCustomButtonCell buttonCell = ( DataGridVie ...Show All
.NET Development Achieving IIS type of isolation
Hi, I was wondering the following: ASP.NET applications that run in IIS usually can't do any damage to the hosting machine (deleting files outside of the security context, shutting down the machine, etc.). I need something similar as I have an application where users can send code snippets to it, the process runtime compiles and executes it. For various reasons I can't host this application within IIS. Anybody has some ideas how I could achieve something like this Thanks, Tom Thanks, that's interesting, I didn't know that. How could I for example permit IO access to a certain directory only Thanks, Tom ...Show All
Visual Studio Team System Help! IDE Crashes on Schema Import
Hello, I'm a brand new VSTS/DBP user... When I try and create a new project and import an existing DB schema, the IDE crashes about 20 seconds into the process. I should mention that the DB I'm importing is a very large Database, thousands of tables and thousands of procs. When I ran the example import (Adventureworks), it worked fine. I admit, I'm a Microsoft / Sql Server groupie, and I always try and update to the latest tools. I'm currently on a customer engagement at a very large I.T. Consulting company and I'm trying to convince them to upgrade to Sql 2005 from Sql 2000, as well as trying to convince them to move to Visual Studio from Imceda SQL IDE Pro and TOAD for Sql Server. So, basicall ...Show All
Visual C# converts a char into a string
Hi All, How would I convert this string bleh = "hello world"; inputString = "r" if (bleh == inputString) { blah = inputString; } The error message I get is Error 1 Operator '==' cannot be applied to operands of type 'char' and 'string' Much help appreciated ahmedilyas wrote: I still wouldnt, I would still go for Equals() and its what I've been told and go by it always. I guess its personal preference but speaking to my colleagues...for string comparisons, Equals() would be the way. Everyone has their own views/opinions/experiences, this is mine and so are a few of the Microsoft fellow friends/colleagues I have ...Show All
Visual Studio VS 2005 Performance issues
I have a server running Dual 1.8GHz processors, 4GB RAM and two 146GB 10K drives (RAID 1) and I am getting terrible performance using VS. I am trying to figure out if it is an I/O issue, RAM, RAID, or VS issue. I read a thread that suggested I defragment the drives since I didn't do that after the VS installation. Any other suggestions would be appreciated. We are running two VHD's on the server. All running Windows 2003 R2 Enterprise and VS is 2005 R2 Enterprise. Thanks, JB lol I see, well this is a Visual Studio/software development forum and not Virtual Server :-) the best place to ask would be over at the appropriate newsgroups: www.microsoft.com/communities Thanks! ...Show All
Visual Studio Team System "Generating list of changesets and updating work items" taking extraordinarily long
I'm having a problem with the "Generating list of changesets and updating work items" part of the Team Build taking an extremely long time even when there are very few changes in a build. In one build the step took over 2 hours before I cancelled the build, I've been waiting 30 minutes so far on the current build. Any suggestions I had the same experience the first several times I was building our largest solution. After the first successful build, the build server started only showing differences and things went much faster. That said, it did seem like it took an unusually large amount of time to find the 3000 or so changesets that went into the first build. ...Show All
Visual FoxPro foxpro for windows
Hai, I hope i am not troubling you all. i have installed foxpro for windows 2.6a on win 2000 server. but when i am trying to run that i get a error divide by zero or over flow error. how can i run foxpro for windows. please help me. There's a patch for this at http://support.microsoft.com/kb/240982 ...Show All
Windows Forms Applying WinXP to all app controls independent from Windows theme
Hello all. I have application, that was developed with use of standart WinXP theme (I mean I use this theme when I was developing app and when I created application design). But when I change theme appearance I get lots of problems with design. Actually it can be done by creating my own controls and setting their appearance panually. But it will take really looooots of work. So is it possible to say application "use default Windows XP theme appearance and ignore current theme settings". Any help will be muuuuch appreciated Let me show you steps to reproduce the problem. Right click on desktop Select propeties, then "Appearance" tab. In "Windows and Buttons" combo select: "Windows classic style" ...Show All
SQL Server Client connection error while trying to create maintenane plans
Error: Ole db error 0x80004005 Client unable to establish connection This happens when trying to create a maintenance plan in sql 2005 sp 1 It has now happend with 3 installs - one fresh install and two upgrades from 2000 to 2005. The startup account for sql server is a domain user account and has not been changed. This happens on both windows 2000 and windows 2003. This however does not happen if the sql startup account is in the local admin group for the machine Any help is greatly appreciated Thanks KR Refer this link , i hope it will solve u r problem. http://support.microsoft.com/kb/253500/ also upgrade to SP2 , there are lot of enhancement done ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Method for animating rumble on CodePlex
Hello everyone. First, thanks to everybody who is contributing to the community. You guys are awesome! I wrote some code to animate the vibration of the rumble motors. I hadn't seen this topic come up at all and after playing a really great XNA game that had really bad rumble (either fully on or fully off) I figured it wouldn't hurt to put it up. http://www.codeplex.com/acres The first release has a Windows game project demonstrating a few different rumble animations when you press the various face buttons. I'm really curious to know how people handle controller vibration in their games. Is it an afterthought Do you handle its procedurally or through predefined settings Hi, On a title we did for Xbox we used to feed audio wave f ...Show All
