MSNetDeveloper's Q&A profile
Visual Studio 2008 (Pre-release) Xml schema features in DataContract/DataMember
The DataContract/DataMember attributes lead to generation of XSD's, which I consider a nice and usefull feature. Strings map to xs:string, classes to complex types, so far so good. These XSD's are validated only very loosely/forgiving and not on the server (or maybe the client). After searching this forum, I've found a post in which rough directions were given on how to implement XSD schema validation in a behavior. My issue, however, is that I consider the DataContract/DataMember options very limited when it comes to data validation options. I can define a DataMember as string, but I cannot define a minimum and maximum length, which is very easy to do in Xml schema. Xml schema has a lot of facets to further restrict types. I don't thin ...Show All
SQL Server Variable Length Procedure Arguments
Is there any way to have variable length arguments for stored procedures - kinda like how there is in C/C++ For example, if I wanted to send 2 arguments at one time, and then at another time send 7 to the same procedure, is that possible Will this mean that I have to create a list of arguments ahead of time My problem is that I do not know ahead of time how many arguments the procedure will be sent. So if, I create a list of 10 arguments, and then the procedure is called with 15 it will break. Is there any other way of doing this Does TransactSQL have an array data type Maybe an array will be better for this, but I can't find anything on that. ...Show All
Visual Studio Document Explorer merge problem
I downloaded MSDN August 2006 and tried to install. It installed and now Document Explorer shows articles only from that MSDN. But other documentation is not shown. I have documentation about DirectX and Compuware DevPartner in English and about SQL in Russian. I tried to reinstall them all but nothing changed, DExplorer still not merged them. Hello Frank I tried to repair and remove/install but nothing changed. I also tried to remove all documentation including MSDN and install ones again. I can see only MSDN docs without separate SQL, DirectX, XNA and DevPartner. I also tried to set English and Russian language to DExplorer. I have VS2005 Profession with KB915364 and KB916769 updates but without Service ...Show All
Visual Studio Team System Unable to download Visual Studio Team Suite, 180-day trial version
Hi all, I am trying to download the 180-day trial version of Visual Studio Team Suite. What I got was a 1KB file: En_vs_2005_vsts_180_trial.img! Could anyone help me with this Thank you very much David Phung The correct download location is: http://www.microsoft.com/downloads/details.aspx FamilyId=5677DDC4-5035-401F-95C3-CC6F46F6D8F7&displaylang=en . I just downloaded this and confirmed that it works for me. Perhaps you can try again. I would also recommend using a download manager like www.freedownloadmanager.org which can speed up your downloads and auto-resume in the event that your connection is dropped. Brian Keller ...Show All
Windows Forms WebBrowser control and html document(simple question)
Hey, I added a .html document into my project. But How do you make it so that my web browser control "webbrowser1" will show the document, I named it "New_Tab.html" Thanks :) this.theWebBrowserControl.Navigate("New_Tab.html"); this could would be placed wherever you wish for this document to be loaded from. of course, change the path of the navigational link depending on where this html file is placed hope it helps! ...Show All
SQL Server What instead of "select" trigger?
There are acting: MS SQL Server 2000 + SP4 OrCAD Capture CIS Capture CIS can read data from tables or views via ODBC. I'd created a view for this purpose, but now I want to implement logging: who had selected the data from view and when he did it the last time. Several difficulties arised: There are no triggers for SELECT in MSSQL Server I can call user defined function in a view, but can't write anything to user defined tables and can't call getdate() within my function Calling extended stored procedures is an excessively complicated way Our system administrator doesn't allow the existence of extended stored procedures on the server Any reasonable suggestions ...Show All
Visual C# Is there any function for converting Currency ( Numbers to Words )
Hi groups, I need some idea/ways are there for creating currency conversion. I mean if i give inout as numbers ( say 1500 ) is should convert into text as [ One thousand five hundred only. ] Hope someone already implemented this type of functions for reports etc..pls share your logic and code if any. Maheshkumar.R wrote: Hi groups, I need some idea/ways are there for creating currency conversion. I mean if i give inout as numbers ( say 1500 ) is should convert into text as [ One thousand five hundred only. ] Hope someone already implemented this type of functions for reports etc..pls share your logic and code if any. ...Show All
SQL Server SQL Ev databases--Case Sensitive?
I noticed an example of setting a localization ID when I created a new SQL Ev database. The doc says in ms171864 that SQL Mobile databases are never case-sensitive. Is this correct for SQL Ev ...Show All
Visual Studio Express Editions Remove all points n lines plotted on graph
Im using the paint event to plot my real time graph, some of my codes are shown below. I want to add a function/button where once its been clicked on, the graph which has been plotted would be erased or removed..How can this be done visual basic code: I just want to remove everything being plotted on the graph..I have tried me.yvalues.removeall() but it still doesnt work..The reason why i want to remove all of them is so that i can plot new graph based on a new set of data. ...Show All
Visual Studio Express Editions Using the \n for a line break....
Basically, I read a part of a file, which is the description, which goes into a label, the 'description ' can be changed in the file, accordingy to what you want it to be. So, pretty much I need a way to insert line breaks between every few characters. And for some reason, \n in a file, thats read and put directly into a label, is different than adding "\n" in the compiler, onto the label...... Sorry if I didn't explain it clearly enough, but I have a label on my form, and its value is taken directly from a file, but what if the line in the .txt file, is really long, and the label will run off the form, and if I insert \n into the file, it just sees it as a word, not an escape sequence. How could ...Show All
Game Technologies: DirectX, XNA, XACT, etc. mesh object seems to move relative to floor textures
i have drawn a textured floor and placed a mesh object (a simple box) in my 3D world on the floor... ...but when i move the camera around then my box seems to move a little (i notice this because of the texture), am i missing something here or is this normal behavior how to solve this thanx for your help... relevant code within OnPaint event: //floor device.SetTexture(0, StreetTexture); device.SetStreamSource(0, floorvb, 0); device.DrawPrimitives( PrimitiveType .TriangleStrip, 0, 2); //mesh box device.SetTexture(0, CrateTexture); device.Transform.World = Matrix .Translation(0f, 0f, -10f); TexturedBox.DrawSubset(0); //camera device.Transform.World = Matrix .Translation(0f, 0f, 0f); device.Transform.View = Matrix .LookAtLH(pers ...Show All
Windows Forms How to launch the application on StartUp
hello i have completed my applicaion but i want it to work automatically as soon as i turn on my PC. how will i do that and also how can i add an icon of it to start up menu on taskbar in order to be able to stop it whenever i want You can install and run your program as a windows service. Here explains how to do it in a simple way. http://www.codeproject.com/dotnet/simplewindowsservice.asp As the services are started as soon as windows is loaded your application will be started too. ...Show All
Visual Basic Excel Functions within VB
Hey, I'm using the PMT function in excel and in VB 2005. Basically what I'm doing is trying to make my loan calculator an actual program, instead of always having to write everything out within an excel spreadsheet. I have all the needed information and I thought that my VB code was correct, and according to all the help files I can find they are. However the number I get from the function in my VB program is wrong. I'm not sure why the answer is different if all the inputs are the same in both the program and the spreadsheet. Thanks for the insight. Here's my code for the PMT Function in my program, incase you need to see it: MonthlyLoanPayment = -Pmt((InterestRate / 12), Math.Round(MonthsWithoutMedicaid), LoanedAmount) Azrael ...Show All
Microsoft ISV Community Center Forums VBA doesn't listen to my Format command...
Hi all, I'm having a problem with formatting text in a userform. my code: Private Sub txtUurloon_BeforeUpdate(ByVal Cancel As MSForms.ReturnBoolean) Dim txtTmp As String txtTmp = txtUurloon.Text txtUurloon.Text = Format(txtTmp, "€ ###0,00") End Sub When i put in for example 1 then my textbox updates and shows € 001... While it should be: € 1,00! Does anybody know what i do wrong Greets Guus HI, Try moving the euro symbol out of the format statement. Private Sub txtUurloon_BeforeUpdate(ByVal Cancel As MSForms.ReturnBoolean) Dim txtTmp As String txtTmp = txtUurloon.Text txtUurloon.Text = " €" & Format(txtTmp, " ###0,00") End Sub ...Show All
Visual C++ Apply desktop/explorer settings in Vista from API
which code of API is responsible to apply explorer settings and shell restart/refresh in Windows Vista hello Re: Apply desktop/explorer settings in Vista from API such questions are out of scope of this forum, for the scope of visual c++ general forum, look at: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=19445&SiteID=1 the more appropriate place for you question is probably Windows platform SDK: http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=121&SiteID=1 thanks bite ...Show All
