Details Monster's Q&A profile
Smart Device Development path not valid
I am trying to connect to a sql mobile database. the db is located at C:/PMIS Mobile.sdf I know the db is there, I put it there. but when I try to run it, I get path not valid. My code is below. Dim cn As New SqlCeConnection("data source =C:/Pmis Mobile.sdf") cn.Open() if anyone sees what I am doing wrong, please let me know. Hi. Got same exception using SQL Compact Edition. Reason was in using OpenFileDialog class. Directory was changed and SQL Compact Edition was unable to save changes to DB. Solution is in setting "OpenFileDialog.RestoreDirectory" to "True". ...Show All
Visual Studio 2008 (Pre-release) XLinq xsi:nil="true"
I was wondering if there was any consideration about providing "first-class" support for indicating that the content of an XElement equates to "nil". The XML Schema spec is pretty clear that you can only use xsi:nil="true" when the element contains no content. But to detect this, you currently have to do a nested if{}: if (x.Element(_SupplierID).Attribute(_nil) != null ) { . if (x.Element(_SupplierID).Attribute(_nil).Value == "true" ) . { . nilCount++; . } } It would be nice is there was an easier way to test for the xsi:nil case -- just as there is for missing elements: if ...Show All
Visual Studio Team System Team Build, and Static Code Analysis.
Hello everyone, When i make a new team build type i can enable Code Analysis, but is there also a way to specify which rules i want to check , cos there are quit a few from all the different categories that i would like to exclude. And you can do this when running CA in Visual Studio or when using it as a checkin policy. So where to set this for Team Build I am using the Juli CTP of TFS, soon i hope to upgrade to Beta3 ;) Greetings, Paul You can do this by overriding CodeAnalysisRules property of project files through tfsbuid.rsp file. This file is generated when a build type is created and located under $/ ...Show All
Game Technologies: DirectX, XNA, XACT, etc. dxwebsetup wierdness - deployment with app
Hi, sorry to post this in this forum, I am unsure where to post it. OK here is the thing. I have a deployment problem. I am creating a setup with my app, created in VS 2005 Pro, using C#(.NET 2.0) This app of mine requires DirectX runtime end user files, or the SDK but really the runtime files. Now, during installation, I bundled in the dxwebsetup.exe. This executes fine. 2 main problems here already: 1) I want to silently install it without the need for user interaction, switch used to do this: /Q. When specifying this, it just seems to show then disappear instantly. I then find this next problem: ...Show All
Visual Studio Not Installing- Visual Studio.NET 2003, Please Help
I apologize if this is long; I just wanted to answer any question you guys/gals might have. The Problem I have ordered the trial edition of Visual Studio.NET 2003. When I try to install the software I am getting many errors saying that it can't find a file. This is what is happening in Detail: The installation offers me the option of, Ignore-Abort-Retry. When I click Retry, it says the same thing; when I click on Ignore. It starts to install again, but then the same message comes up with a different file name. Then the same thing happens. This happens with about twenty-five files. Then, ...Show All
Smart Device Development Converting Wav files to Mp3
Can you please help me in giving a suitable code in VB.Net or C# .Net to convert Wav files to Mp3 in smart phone Device Emulator . Version: MSDN 2003 Expecting a quick reply .....Thanks in advance..... Most likely there’s no such thing as MP3 encoder for PPC in VB or C#. Many reasons from performance issues to copyright issues would prevent that. You might be able to adapt some of C++ sources available (e.g. LAME), but that would take a lot of effort and performance will be far from real time. ...Show All
Visual Studio Team System Setting TFS SC through code
Hi is there a way to set proxy settings through code (TFS object model) That is to force file "gets" to use /not use a proxy. I think the only way is to modify the registry directly. HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\TeamFoundation\SourceControl\Proxy ...Show All
Smart Device Development wireless application
Hi, I plan to develop a application on pocket PC. If i want to use wireless connection to communication with the SQL SERVER, what should i do Can the PDA directly connect to the SQL SERVER, or throught another application Which .net classes will help me to do so I'm distressed, and would appreciate your help so much. I'm trying to develop a C#.net app on Pocket PC 2003, CF2, that needs to communicate with SQL Server over wLan. I have a reference set up for SQL Client on the hand-held. I can browse the web from the hand-held, and can connect over wLan from a laptop running WinXP ...Show All
Visual Basic Real Time Data Monitoring
Hi All: I am writing a project to analyze data from a device in real time. The idea is to pick up the signal from a sensor through serial port in 20Hz and to do some calculation on the data received, and plot out the result on the form. I use a background worker to read data from the serial port and do the calculation within a Do Loop. There is no problem on this. My problem is that when I try to use GDI+ to plot the results on the form, data are not refreshed instantly on the form. I use a Collection of Single to store the data for plotting. Questions are: 1. Can Vb2005 do the job Or VC2005 is better 2. Is there a control ...Show All
Visual Basic DataTables??
I need to figure out how to take data from one table and create a table in memory with my own columns. How do I create this table in memory and pass the data to it Hi, Here is code snippet to create a datatable in memory. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim dt As New DataTable("MyTable") Dim dc As New DataColumn("ID", GetType(System.Int32)) dt.Columns.Add(dc) dc = New DataColumn("Name", GetType(System.String)) dt.Columns.Add(dc) Dim dr As DataRow = dt.NewRow dr(" ...Show All
Windows Forms Hiding the Selected Row/Cell in a DataGridView
I have a DataGridView, and when it is first displayed, I do NOT want there to be any visual indication that a row and/or cell is selected. Currently, the cell at row 0 / column 0 is always selected, and I can find no way of either having nothing selected or at least hiding the visual appearance of a selected item. Anyone have any ideas Rob Jones ...Show All
.NET Development Attributes (and descriptions) of properties in generated partial classes
Hi When a generator creates properties in a partial class it usually doesn't know anything about the attributes the application will need on these properties. I could manually set the attributes after the code is generated. But they would be lost as soon as I need to regenerate the code. The best solution would be partial (stub) properties in a peer partial class that is not generated and thus never destroyed. But they do not exist in framework 2.0. Any idea how to come out of this dilemma. orbit If you have control of the generator, make the properties virtual. Then simply derive from the partial ...Show All
Visual Studio 2008 (Pre-release) Determining Text Size
Is there a way to determine the size of a text string in WPF I'd like to take a given string, and have WPF calculate the size needed to render that string using a given font, style, etc. Thanks. Bruce Bukovics Author of .NET 2.0 Interoperability Recipes http://www.apress.com/book/bookDisplay.html bID=10116 My solution: public static float MeasureString( string text, Font fontInfo) { Bitmap bitmap = ( Bitmap )ResourcesManager.GetObject( "some_image" ); IntPtr ptr = bitmap.GetHbitmap( Color .White); Image image = Image .FromHbitmap(ptr); Graphics g = Grap ...Show All
SQL Server regrouping hierarchies
hi!!! i have a new question .. i have a dimension and i have set a hierarchy for it.. it worked when i processed the cube but when i browse the cube it displays the hierarchy correctly: the main hierarchy then by clicking the (+) it displays the second level hierarchies and so on but the data is not correctly ordered. so i changed the property 'key columns' of the other id`s i have in my dimension.. now the sequence of the data is correct. but the tree in my browser displays expanded i mean,, individually. each by each record.....it is not in groups of data like before.. i don`t know if anyone can underst ...Show All
SQL Server Adventure Works DB Samples with Express 2005 SQL Server
Downloaded the file for the Adventure Works DB Sample. Which folder do I need to install it in to have show up in SQL Server Express 2005 You can put it in any folder you want to (normally in the usual data folder you are using, by default this is located somehwere in the programe files , microsoft SQL Server directory. But you have to attach the database using the sp_attachdb procedure or use the GUI to attach the database, right click on the server --> attach database and you are done. HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
