luoo's Q&A profile
Visual C# array of struct
Hi all How can I make an array of struct this is my struct struct x { int a; int b; } Now I want to make an array.what should I write Hi, you have several types of "arrays", so you can do it like this for example: x[] myArray; ...Show All
Visual Basic Zipping Files or Compressing them
Does anyone know how I could zip some files through a program, or compress them somehow I am trying to make a program to back things up, and I don't even know where to begin. Yes... I remove an if...... Change this: Catch e As Exception MsgBox(e.Message, MsgBoxStyle.Critical, "Decompression Error." ) End If Exit Function End Try To this: Catch e As Exception MsgBox(e.Message, MsgBoxStyle.Critical, "Decompression Error." ) Exit Function ...Show All
Windows Forms parsing html...
Hi, Is there any good code out there showing how to parse an html file using c# I want to have access to tags, attributes, text, tec... Any help Thanks Actually you can match it using this expression <title>( <data1>.* )</title> ...Show All
.NET Development Downloading files from an ASP.Net popup.
I have a problem downloading files. My requirement is that I want to download files(mostly .mpp, .xls files) from a popup window. I am giving the code from an iFrame in the popup to avoid the popup being closed. But I am not able to give a suitable name for the downloaded file(it is downloaded in the name of the iFrame itself). Also i am ignorant of the fact if the download is complete or not. Is there any way I can tackle this problem Hello, A great place to ask ASP.NET questions is the ASP.NET Developer Forums . Hope that helps, Stephen http://blogs.msdn.com/stfisher ...Show All
Windows Forms Program Design
Hi, I work for a webdesign company providing all the backend code for clients' e-commerce websites and intranets in ASP and ASP.NET. I'm a self taught programmer, starting from when I was quite young. I'm more than capable of writing everything that has so far been put in front of me, and I'm quite an accomplished programmer; although because I'm&nbs ...Show All
Visual C# Use Access with Automation, from c# program
Hi to all! for this my first post i ask information on an argument about wich a very poor documentation on the web exists: the office automation. My problem is about a windows c# program that manage some Access data using classic DataSet. In the same access mdb file where the tables are stored i also have some access reports that i want to open in preview mode from the C# program. unfortunately if i do this, i receive an error exception because "the database is already opened in exclusive mode". I think the DB could be opened from the c# program dataset. i had the msn Q31 ...Show All
.NET Development language problem
Hi all, I'm consuming a .net webservice with a string parameter. When I try to send the string with Hebrew language, the webservice get the string as question marks ( ). It seems to be that the webservice doesn't recognize the encoding of the string. I send the string from the mobile as UTF-8 encoding. I use soap to call the webservice. Please help me, what can be the problem Whitch things I can do to check the problem How can see what is the sting encoding that recives with the soap call Please help... Regards... HI. maybe it is base64 encoding issue. you would step below: ...Show All
Smart Device Development No ResumeBindings on PropertyManager
I use the PropertyManager in Windows Forms applications when binding form controls to custom class properties. The method used to update the controls on a form when the underlying object properties have changed 'ResumeBindings' is missing from the Compact Framwork. How can you achieve the same functionality with CF NETCF V2 supports ResumeBinding() and SuspendBinding(). On CF V1 you can try calling CancelCurrentEdit () to push data from data source to the control. ...Show All
Visual Studio Tools for Office Transferring a DataSet into a VSTO Workbook.
Before I dive into my question, let me first start by saying I know what I'm trying to do is difficult at best and maybe impossible, but I figured I'd go ahead and ask and see if anyone has found a solution because I know quite a few others are running into this limitation of VSTO. I have an application that spawns multiple windows with spreadsheets in them. The application loads some data into a DataSet and then displays the resulting data on the spreadsheet for user editing. After the user is finished editing, s/he is able to save the data back to the database. Unfortunately, I am having to use my own ListObject at the moment. What I wo ...Show All
.NET Development 2 Connections? Why?
I have the following DataSet Object in the DataAccess Class. public static DataSet SearchAccount() { SqlDataAdapter DASearchAccount = new SqlDataAdapter(); DataSet DSSearchAccount = new DataSet(); SqlConnection Conn = new SqlConnection(strConn); DASearchAccount.SelectCommand = new SqlCommand(); DASearchAccount.SelectCommand.Connection = Conn; DASearchAccount.SelectCommand.CommandText = "USP_TestSearchAccount"; DASearchAccount.SelectCommand.CommandType = CommandType.StoredProcedure; //DASearchAccount.SelectCommand.Parameters.Add("@AccountName", AccountName); DASearchAccount.Fill(DSSearchAccount, "Account"); Conn.Close ...Show All
Visual Studio Team System CA1823 False Positive
It's easy to see why this false positive occurs, but it's still annoying! Consider the following code (from a plain-vanilla console app): This false positive turns up a lot. It's interesting how many const strings out that are used exclusively as a substring within another pattern. 8) We will either clear up this noise or disable the check in the next (post 1.35) update. Sorry for the inconvenience and thanks for the report. ...Show All
Visual Studio Team System How to get target information during running a Test project
Hello all, I have set up a Team Build Type to build my solution of multiple configurations, such as "Debug|Win32", "Release|Win32", "Debug|Pocket PC 2003", "Release|Pocket PC 2003" and so on. Within the same solution, there is a Test project which perform a BVT test. I config the Team Build Type to run this BVT test after building in TFSBuild.proj as following: ... <RunTest>true</RunTest> ... <MetaDataFile Include="$(SolutionRoot)\Main\MySolution\MySolution.vsmdi"> <TestList>BVT</TestList> </MetaDataFile> ...Show All
Visual Studio 2008 (Pre-release) Executing Custom Code at WCF Service Deploy/Initialization with PeerChannel
Hello, I'm trying to find out if it is possible to execute code on WCF Service initialization/deployment on a PeerChannel. Basically, here is the situation. I need to have a service which by nature does not need to act in a Peer fashion, it's a plain vanilla service that accepts requests via some standard channel binding, like WsHttpBinding. On this service, I need the ability to also expose a PeerChannel endpoint that performs certain maintenance tasks with other services in a Peer fashion. These maintenance tasks need to be executed through a PeerChannel when a service comes up and goes down. Is this possible If you need further ...Show All
.NET Development Data Source dialog box with C#
I get the Data Source dialog box (ODBC Administrator) with VC++ / MFC at runtime with: CDatabase::Open see here How can i do it in C# / ADO.NET I need it to choose or create a DSN at the runtime. Why I do not know, which database the user of my software use. I know only, it is a ODBC Database. thanks I found the answer here: http://www.codeproject.com/csharp/Data_sources.asp Now it was simple: ============= 1.) Import the ODBCCP32.cs and 2.) call: ... SA . ODBCCP32 obj = new SA. ODBCCP32 (); obj.CreateDatasource( this .Handle, t ...Show All
Visual Studio Team System Transition Constraints
Hi All, Can we allow/decline transition from state to state depend on field value Can we apply any restriction on transitions at all (except of from/to attributes with group values) May be there is a way to do it through custom actions Thanks in Advance, Leon I wouldn't expect to see new feature work in a service pack...certainly not SP1 considering the shortened timeframe between TFS RTM and Whidbey SP1. ...Show All
