Eric White King's Q&A profile
Smart Device Development add new property for contact?
hi I have seen that contact class has much property, such as contact's name, birthday, and so on. Can I add new property to a contact using c# .net cf 2.0 thanks This forum is intended to deal with issues directly related to the .NET Compact Framework. It appears that this question can better be answered by someone on one of the newsgroups for Windows Mobile or Windows CE. In order to get a quicker and more accurate response, please consider reposting this question to one of the following newsgroups: Windows Mobile API : microsoft.public.pocketpc.developer microsoft.public.smartphone.developer Windows CE API : microsoft.public.windowsce.embedded Gene ...Show All
Visual Basic C:\Documents and Settings\...\My Documents\Visual 2005\...\bin\debug\Reports *Spaces will not let me open .doc file in word*
Hi, if someone on here could help me, I'd really appreciate it. I am currently building a program that will be able to open excel and word documents in their appropriate programs. Heres my code: Dim Job As String = txtJob.Text Dim str2File As String str2File = "" str2File = Application.ExecutablePath str2File = str2File.Substring(0, str2File.LastIndexOf( "GaugeHelper.EXE" )) Dim wordstart As New Process wordstart.StartInfo.FileName = "winword.exe" wordstart.StartInfo.Arguments = str2File & "\Reports\" & Job & "\" & Job & ".doc" w.Start() I can get it to work, except for one thing, When you use the common folder name \Documents and Settings\ Word will try to ...Show All
SQL Server Change Color of Textbox Depending on Value
He is my question depending on the code field from my database I need to display a different color. The field is a detail in my table with just text displaying the title of the report. I have the actual code value in another column . I then go to the background color expression and am using this code: =Iif(First(Fields!Code.Value, "CodeDataset" ) = 3, "Green" , Iif(First(Fields!Code.Value, "CodeDataset" ) = 4, "Blue" , "Red" )) They all work if you pull the report up one at a time, but when selecting multi-values you get the color from the first record on each report page no matter what the second, third or so on values are. The code field does display each correct code. Is thi ...Show All
Smart Device Development socket programming
hai everybody iam trying to connect to ftp server from ftp client, the connection is establishes also and i can download the files from ftp server also but , i downloaded the files from particular path "c:/inetpub/ftproot" only. iam unable to access / download the files from other paths. if i want to do download the files from other paths in the ftp server what i have to do.. Can anybody help in this regard familiarize yourself with the FTP protocol. if you're using sockets and not an ftp client object, you'll need to use commands such as cd, get, mget, put, mput, lcd, del, mdel, etc. and so on ... ...Show All
SQL Server CLR stored procedure with RMO objects
I've wrote a simple CLR stored procedure that uses Microsoft.SqlServer.Server; Microsoft.SqlServer.Management.Common; Microsoft.SqlServer.Replication When I've compile it and try to CREATE ASSEMBLY (with unsafe) I get the following message: "Warning: The SQL Server client assembly 'microsoft.sqlserver.connectioninfo, version=9.0.242.0, culture=neutral, publickeytoken=89845dcd8080cc91, processorarchitecture=msil.' you are registering is not fully tested in SQL Server hosted environment. Msg 6544, Level 16, State 1, Line 1 CREATE ASSEMBLY for assembly 'SQLServerMonitoring' failed because assembly 'microsoft.sqlserver.batchparser' is malformed or not a pure .NET assembly. Unverifiable PE Header/native stub. " I've tried to register ...Show All
.NET Development Best approach for Product/Order system
Hello all, This is my first post on MSDN. I am designing a Product Ordering system, which will return an invoice. Here is my db schema (partial) Categories(ProductId, department, class) OrderDetails(OrderId, ProdId, Quantity) Orders( OrderId, OrderDate, CusId) Products(ProdId, ProdName, ProdPrice) So far i have got a display such as below: ProdId(CheckBox), ProdName, ProdPrice In addition to this, each row has a Text input for Quantity To Order I have acheived the above by filling a dataset with the Categories and Products table, and rendering the results in a nested datalist, using Parent/Child Relation on the ProdId. What i am now stuck on is where i go from here. I would like to determine the selected Item from the CheckBox and associ ...Show All
Windows Forms Datagridview - Keypress
In the keypress event of the datagrid I would like to make sure that the only numerics 0 to 9 are entered,for column 3 only. Can anyone show me how to do this, thanks in advance. I am using VS 2005 c# //check for the third column if(dgvGroupDetails.CurrentCell.ColumnIndex == 2) { //check if presses key is 0 to 9 if (e.KeyChar = "0 to 9") { //true } } try above in the key press event ...Show All
SQL Server Error 18452 (not associated with a trusted sql server connection)
Using sql2005 on a Novell network... When attempting to log into Mgt Studio using windows authentication I am getting the error: Error 18452 (not associated with a trusted sql server connection) . I added my domain\userName in sql with no problems and added the account to the sysadmin server role. However, I noticed my credentials on my pc are not listed as domain\userName but rather ComputerName\UserName. I think this is what is causing the problem but I am not sure. Can anyone lend a hand I'd appreciate any help, Thanks. Scott Hi, switch on the login audits at SQL Server to see which user tries to logon to the server. HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Visual Basic Hosting Excel Appliaction as a contorl in .Net form
Hi every one, I need to host Excel application inside my Application main Form that I am building I want to add it as a control same as web browsers in VS .Net from toolbox. with webbrowsers control we can drop it in the form and then configure it. How can be done with Excel or World Hi- If you have Office 2003 (or earlier), you can use OWC (Office Web Components). There is a spreadsheet control, chart controls, rich edit control, and a few others. To use this in VS.NET: - right-click the Toolbox - Choose Items... - select the COM tab (OWC is a COM component) - choose Microsoft Office Spreadsheet control - drag n drop from the toolbox to the form - start setting pr ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Conecting my computer to Xbox 360
What are the steps to do that because I typed in my conection key and everything but still it cant connect to my computer Thanks for the help but I follow the instructions and still it did not work. I can stream music and video and pictures from the computer to the 360. So I dont understand why it did not work. I enter the conection key over 10 times but still I cant connect. ...Show All
SQL Server How to transfer a table between databases in SQL Server 2005 express
Hi, In SQL Server 2005 Express I currently have 2 databases which I’m working on, my problem is I want to transfer a table from one of the databases to the other but don't know how to go about achieving this I want the table structure and all the info held within the table transferred across. Any ideas are welcome. hi, using SSMSE, generate the DDL script of the table you like to "copy"... execute the resulting script in the target database.. then insert all the rows in the original table like INSERT INTO dbo.Table SELECT col1, col2, coln FROM originalDatabase.dbo.Table; regards ...Show All
Visual Studio IDE in Design view
i have just installed vs2005 and have a problem with the design view of the IDE. i cant place a button or txtbox or the like on the design view and see it. the code is there but it is invisible in design view. ive tried resetting all settings but with no look. is there a way to turn on the feature that allows for the display of buttons etc in design view. thanks jimkn It is difficult to see what the prob is here but if you remove VS 2k5 it will not uninstall .NET Framework 2.0. Also this happens with an out of the box installation of Visual Studio I mean you did not install anything on top of it or changed some settings No anti-virus running, no virus on the system ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Math Question
Look to this code: Matrix proj = Matrix.CreatePerspectiveFieldOfView(MathHelper.PiOver4, (800f / 600f), -1f /*near plane*/ , -100f /*far plane*/ ); //proj.M33 *= -1f; Vector4 vIn = new Vector4(-1f /*x*/ , 1f /*y*/ , -1f /*z*/ , 1.0f /*w*/ ); Vector4 vOut = Vector4.Transform(vIn, proj); The vOut after the transformation is {X:-1.81066 Y:2.414213 Z: 2.020202 W:1}. But i think that if z is -1 and -1 is the z of the near plane, z should be 0 after the transformation, not 2.020202. So i did my own fix. Added the line proj.M33 *= -1f;. Uncommenting the line proj.M33 *= -1f; the result is z = 0. Am i right please, someone that understand some math, give me a explanation on what i am doing wrong. (If something is wrong) ...Show All
Visual C# Hiding Files
I am looking for a way to hide files using c#. I know about changing the file attributes to hidden but I want to hide them regardless of the users view settings(ie. show hidden files). There are tons of programs out there that do this but I cant seem to find any examples of how. Any help would be greatly appreciated. Thank's Brad I like that idea but ideally I was looking for a solution to hide and unhide as needed. I know there are programs out there that do this I have used them. I was thinking they might remove the entry from the File Allocation Table If thats true is there a way to do it in c# Or can I still disguise them as "BAD" clusters to the OS Thanks for the input. :) Brad ...Show All
Visual C# events for array of buttons.
dear all I have an array of buttons pbuttons (nearly 40 of them). I want to have click events for these buttons can someone tell me how to do that for a array of buttons thanks in advance, prasad.. you are a gem. that worked just perfect I just forgot the casting of sender as button. I am learning slowly for sure...:) ...Show All
