OdinsBlade's Q&A profile
Visual Basic MDB in pocket pc project
Hi. I have problem in connecting my access DB to the pocket PC project. propobly i have problem with System.Data.OleDb.OleDbCommand it is not defined. so what I am doing: new project -->pocket PC2003--> in solution explorer drag and drop mdb fail. end thets all whot i cen do. i can not add to combo box datasource. and also thrue add project data source wizzard i cant add mdb , i get error dataprovider is not supported. what should i do how to get data from mdb to combobox in pocketpc project senks sorry for my engl. as far as I can tell the oledb namespace is not a ...Show All
Visual Studio Express Editions Connecting to an Access 2003 Database from VB 2005 Express
Hi ! I have a form with some textboxes and a button. I have an Access Database on my desktop. I want to write the values from my textboxes to a table in the database. I havesome code to do this, and it should work, but It throws an exception that is far too complicated for a Newbie like me to decifer. Here is the Excption (on top) with the code I'm using below that. Heeeeelllllp! P.S . The values in the "TextBoxes" are numbers, and the value in the "MaskedTextBox" is a value from a "DateTimePicker". System.Data.OleDb.OleDbException: Syntax error in INSERT INTO statement. at Syste ...Show All
Visual Studio Team System Cannot select testrunconfig
I have a solution that contains a testrunconfig file. However, the menu Test -> Select Active Test Run Configuration says that "No Test Run Configurations Available". I have deleted and readded the testrunconfig file. Any suggestions I am running 8.0.50727.42 Not sure why. But adding a "Solution Items" folder directy under the solution and putting the testrunconfig in that folder did the trick. ...Show All
Visual Studio 2008 (Pre-release) BUG: Scrollviewer problems with mouse events
ScrollViewer has problems with mouse events. In XAML I try setting a MouseLeftButtonDown handler. It doesn't respond to that event. MouseLeftButtonUp works though. And when using a MouseMove event handler the dragging handles on the scrollbars stop working. It should be noted here though that in my code I am doing a mouse capture. use the PreviewMouseLeftButtonDown event ...Show All
Visual C# XmlReader question -- reading nested elements
I have an XmlReader that's passed to a method while it's at the very beginning of an element elem1. ...Rest of document... <elem1 attr1="val1" attr2="val2"> <elem2 attr3="val3" /> <elem2 attr4="val4" attr5="val5" /> <elem2 attr6="val6" attr7="val7" /> </elem1> ...Rest of document... Here's what I want to do but can't figure out how to: 1. Stop processing immediately if the XmlReader is NOT at an <elem1> element with zero or more nested <elem2> elements. There should be no other nested elements. 2. Read in elem1 and all its attr ...Show All
Visual C# Fastest possible update of a Bitmap
Hi Assuming image is a Bitmap, is this the quickest way (outside of hardware) to manipulate the bytes bmData = image.LockBits(new Rectangle(0, 0, image.Width, image.Height), ImageLockMode.ReadWrite, PixelFormat.Format32bppRgb); scanline = bmData.Stride; Scan0 = bmData.Scan0; q = (int *)(void *)Scan0; *(q + offest) = someByte image.UnlockBits(bmData); Thanks Ah, yes... that is a good way. I do something similar (but not quite that good--I'll have to update my approach :) You're correct that it doesn't require the use of "unsafe" code, but it does require Full Trust, which is almost the same thing... -Ryan / Kardax ...Show All
Windows Forms Trouble copying files to network folder
I am getting an error when trying to copy a file over to a network folder. The file being copied is only a couple megs, and there is 25GB free on the network drive it's being copied to. From the looks of it the user has the appropriate permissions setup to write to that folder. P.S. We are using Windows Explorer in XP Pro SP2, and going to a Server 2003 server. The file is actually a JPEG and if the user opens the image and does a "file save as" he can save it to the folder no problem, just can't copy via Win Explorer. Any Ideas I'm stumped.... Thanks! The error message I'm receiving is "There is not enough free ...Show All
SQL Server problem setting up population schedule for FTS
I just ran through the FTS setup wizard for a table in the AdventureWorks db that came with sql 05. When I tried to set up a population schedule, I got the following error... This SQL Server version (7.0) is not supported. I'm not using version 7, so why would I get this error and what can I do about it Thanks. ...Show All
SQL Server Diagram/Criteria/SQL panes
Is there any way that I can always show the diagram, criteria and sql panes when I do "open table" It's not configurable in SQL Server Management Studio. In Visual Studio, you can go to Tools -> Options -> Database Tools -> Query and View Designer to customize it. You can also toggle each pane quickly by pression CTRL+1 (diagram), CTRL+2 (criteria), CTRL+3 (SQL) and CTRL+4 (results). ...Show All
Windows Forms Twips, Pixels, WTF????
Hello all, Can someone please explain to me how I can get my form to look the same on everyone's pc I understand that I am sizing my form to pixels and that it is displayed using twips, which seem to be different based on the users computer, something like 12 to 18 or so. My problem is that I get my form looking nice and pretty&nb ...Show All
.NET Development file not suitable
Please take a look at http://support.microsoft.com/default.aspx scid=kb;en-us;324767 This question is not network programming specific. However I just tried MSN Search by http://search.msn.com/results.aspx FORM=TOOLBR&q=+AUTOEXEC.NT and found the KB Article. Please do some research by yourself before posting unrealted questions on forums. Good Luck To find a more appropriate forum please see: http://www.microsoft.com/community ...Show All
Windows Forms i am wondering...
I am using vb.NET part of VS.NET, and no matter how many times i check to see if targetanimal is nothing ( targetanimal being animalstate of the current target ) i always seem to get OrganismNotVisibleException, and my creature ends up attacking nothing or eating nothing until it dies. anyone know how i can check if the org is visible ( reliably ) ...Show All
Visual C# How do you change the file version?
I have created a C# app in VS2003. I have changed "assembly: AssemblyFileVersion" to what I need. I then right-click on the .exe file in explorer and select Properties. In the Version tab, the File Version at the top is "0.0.0.0". In the list box, the File Version shows what I changed. How do I get the File Version at the top of the dialog to reflect this I tried that and the File Version at the top is still 0.0.0.0. The AssemblyVersion did reflect this change. ...Show All
SQL Server Simple convert question!
Hello all! Never did a convert, I been looking for samples but I don't quite get it. I get this error message in my vb.net app, Taking a number value from a textbox, adding it to a table, with a money field. "Implicit conversion from data type money to nvarchar is not allowed. Use the convert function to run this query" Here is the SP it's pulling, CREATE PROCEDURE dbo.AddWg (@UserID NvarChar(50), @Credits Money) AS IF EXISTS (SELECT 1 FROM Bankroll WHERE UserID=@UserID ) begin Update BankRoll Set Credits = Credits + CAST(@Credits as money) where userID = @userID return -1 end ELSE begin Insert Bankroll (Credits, UserID ...Show All
Windows Forms How can I add my custom control the DataSource properties
Hi 1. How can I add my custom control the properties: DataSource, DisplayMember and ValueMember that will have the DataSource editor and wizard for them and desing-time 2. Is their more general way to add an existing System.Windows.Forms Desinger to my property Thanks to Jelle, I've found the answer: I use the refelctor to check the DataGridView properties and found this row: [ SRDescription ( "DataGridViewDataSourceDescr" ), RefreshProperties ( RefreshProperties . Repaint ), SRCategory ( "CatData" ), DefaultValue (( string ) null ), AttributeProvider ( typeof ( IListSource ))] public ...Show All
