Whololo's Q&A profile
Smart Device Development Can I draw 3D objects by C# (cf 1.1)?
Hi everyone, I need to do a really simple and samll 3D universe in a pocket pc 2003 using c# in .net cf. I was searching on google for hours, but I couldn't find any related resouced about that, I have a reference book but all the drawing method are 2D, anyone can help me of that, really appreciate! Many thanks! Ray and I don't see I will develop other 3D app soon in ppc so I don't want to buy another pocketpc just for one program, and I also need cf 2.0 too..... ...Show All
Windows Forms Refreshing a combo box value...
Hi, I would like to know if someone knows how to refresha combobox instantly after you did an insert. The problem begins because i have a button that inserts values in the combobox but in another form, but the combobox doesn't show the new values that you already insert. (obviously, when you insert the value, instantly closes this modal form, and  ...Show All
.NET Development RemotingConfiguration.Configure ensureSecurity parameter
The old .NET 1.1 Configure method is marked as obsolete, and recommends using a new override with a parameter ensureSecurity. The MSDN documentation on the ensureSecurity parameter is a bit laconic: " true to enable security; otherwise, false ." I want to maintain backwards compatibility, i.e. don't want to require security. But I may want to use the new security features at some time in the future. What should I set this parameter to I'm a bit confused that the decision whether to use the new security features is hardwired into the code via this parameter rather than being defined in the configuration file. ...Show All
Smart Device Development WebBrowser.DocumentText
I try to put some images to the webbrowser with .documenttext method but it can not show it.It shows x. I try all possible way of writing path but it didn't work. Can't we put an image to the webbrowser with this method The problem resolved by installing the August-ServicePack for NETCF: a bug in webbrowser was fixed and the above mentioned assingnment works. ...Show All
Windows Forms Deploying .NET applications with Windows Installer Package
Dear all, I have been learning VB.NET for a couple of months now, and I am curently in the process of learning how to deploy an application running on mySQL. I am learning how to deploy this application with WISE (downloaded the demo version to try it out). Is there a way for me to have WISE look at a XML file (where to locate SQL&n ...Show All
SQL Server PropertyGrid and SMO objects
With Visual studio 2005 I've mapped my SMO objects and a new PropertyGrid control, everything works fine (a lot thanks to Microsoft VS 2005 team for this wonderfull and power control). However I have two problems : 1. if I make some change in my PropertyGrid how to apply these changes to related object in my database 2. If my user dosn't have enough permission to change my DB objects how to turn PropertyGrid to ReadOnly mode ReadOnly property doesn't exist and set Enabled property to false doesn't work since the user cannot navigate through properties Any help Thank you better put button on propert ...Show All
SQL Server Fail Execute Process Task based on batch file ERRORLEVEL?
I am new to this, but have scoured the web and not found an answer to my question... I have an execute process task that runs a simple batch file. When this batch file completes with an ERRORLEVEL greater than 0, I would like the task to fail. I thought this simply meant setting the "FailTaskIfReturnCodeIsNotSuccessValue" property to true, and setting the SuccessValue to 0. However, this does not appear to work. Even with a simple batch file forcing the errorcode to 1 as follows, the task still completes "successfully". SET ERRORLEVEL = 1 Any ideas Thanks! I am not clear on ...Show All
.NET Development Passing excel and word files to web services.
We need to pass excel and word files to a web service in our application. File sizes range up to 4mb. What is the best way to pass these files to the web service I am aware of the following options. 1. Pass the files as binary data embeded in the xml 2.Use DIME/MTOM support for this. For the file sizes up to 4mb which of the above options works fine. A code snippet on how to convert the excel files to binary data and converting binary data back to excel file would be of great help. Help on the query is very much appreciated. Thanks, Laxmi. Dim input As New FileStream("myfile.xl ...Show All
Visual Basic How to create a custom control
Is there a reference guide or something similar on how to create a custom control in vb.net Troy, there are load of guides, howtos and examples available online. Use any search engine and I am sure you will find it like I did http://www.devcity.net/Articles/87/ssteps_customcontrol.aspx MSDN also describes everything how it works but I would suggest you use google, msdn or other search engines to try to find examples how it is used. Search for: "custom control .net vb" for more. ...Show All
Visual Studio Domain Model Definition Schema
Hi, I found a XML Schema used for validating the Designer Definition (*.dsldd) in my VS install (DesignerDefinition.xsd), but I couldn't find any for the Domain Model Definition (*.dsldm). Here comes the questions : Is there such a schema for the Domain Model Definition If so, is it available Will there be an equivalent for the united format (*.dsl) to come with the first final release of the DSL Tools Regards, Kevin POCHAT. Hi Kevin, You're right that there is no XSD for the current dsldm. But yes, there will be an XSD for the forthcoming combined schema. Like the DM file, there will be a speci ...Show All
Visual C# timer loop from vb5
Hello I was wondering if C# has an equivalent to this: 'loop for .1 second Duration! = Timer + 0.1 Do Until Timer > Duration! Dummy = DoEvents() Loop [ DllImport ( "kernel32.dll" , SetLastError = true )] static extern int GetTickCount(); private void Pause( int time) { int PreTick; PreTick = GetTickCount(); while (GetTickCount() != (PreTick + time)) { Application .DoEvents(); } } ...Show All
Windows Forms DataGridView for nested Xml Child Elements
Hello, Let say I have the following XML file : <Patients> <Patient> <ID>100</ID> <NAME>Sarah Readings</NAME> <DESC>flu</DESC> <FORMULA> <PARAM>panadol</PARAM> <PARAM>linsep</PARAM> </FORMULA> </Patient> </Patients> I would like to display this data in a DataGridView table. Normally I would load it to a DataSet and map it to a DataGridView. However, as the node <FORMULA> would have multiple children nodes <PARAM> this could not be done. I imagine the output table would have two rows for this ...Show All
SQL Server SQL Server Agent Jobs
Hi, I'm new to this area so hope someone can help: 1) Does SQL Server agent jobs support executing windows script files (.wsf) I tried running using an Operating System Command (CmdExec) but nothing happened: wscript c:\file.wsf 2) The windows script file is located on the Web Server. I want to run the job from an SQL server calling the windows script file which is located on a different server. The target server is not an SQL Server. Is this possible Thanks, Martin This will execute the script on the SQL Server --> wscript c:\file.wsf, if its not present there it won’t execute. Remo ...Show All
SQL Server date format according to regional setting
hi all, is it possible to format a datetime value in report to display according to the shortdate format set in pc's regional setting i manage to get the parameters to display according to the format in regional setting but is it possible for fields in report to follow shortdate format btw, i can't seem to find the setting for report language under report tab in vs. i could find language under Tools -> Options -> International Settings -> Language. is it the same thing cos i've been reading other related posts and seems like the setting can be found under report tab.. Thanks! ...Show All
Software Development for Windows Vista Vista Feb CTP - MSDN product key validation error
I tried to install Vista February CTP on a Virtual PC 2004. Installation stops with "Cannot validate product key ... " error after entering the product key which is published on the MSDN subscription page. Had the same problem, I resolved it by changing the key which is available on the same page. I just re-entered the same key and then it accepted it. Steven ...Show All
