rternier's Q&A profile
.NET Development How to remove columns from DataView but not from DataSet table
Hi, I use DataSet only one times and then I create DataView many times in the cycle . This DataView is used for generating individual client offers. I want to hide RegionID from DataView, but not from DataSet dv.Table.Columns.Remove("RegionID") ' this doesn`t work Does exists something like ColumnFilter Example: Dim dsNews as DataSet Dim saGenerator As SqlClient.SqlDataAdapter Dim dv as DataView ... saGenerator.Fill(DsNews.Offers) 'only once For Each ClientID In ClientIDs dv = New DataView(DsNews.Offers) dv.RowFilter = "RegionID IN (" & IndividualOffer(ClientID) & ")" 'Each dv converting and saving to *.CSV file Next Notes: IndividualOffer - returns comma separated string ex. "1,5,10 ...Show All
Visual C++ Underlying CRT variable messed up by third party lib
Hi All we have a 3rd party library (flexlm) that when we link with the following src: (VS2005 vc++ /MTD crt) #include <stdlib.h> #include <iostream> #include <fstream> #include <strstream> #include <io.h> #include <direct.h> #include <tchar.h> using namespace std; int main() { FILE* aFile = fopen( "test1.txt" , "w" ); ofstream aStream(aFile); aStream.close(); return 0; } We get a problem with the file descriptor table _iobuf ( __iob ) in the runtime library see below: if lib is linked at fopen + _iob 0x781c1b60 __iob {_ptr=0x781c4940 "" _cnt=0 _base=0x781c4940 "" ...} _ ...Show All
Windows Forms change content/using tabs
This is an example of what I'm trying to do. So first you have the first (click for image)situation. Then you click "Update" and you get second (click for image) situation. My question is How Thanks Generally speaking, you change the right part according to the left part. To do this, you may use splitcontainer control to split the windows form into two part. And the left part in the image is very similiar to the outlook bar, if you want the same effect, you can have a search and i'm afraid there are lots of demos out theres. As long as you click the button, say 'Update', the right part is updated, changed to a new interface. Just give you a gerneal idea. Hope this helps. ...Show All
Visual Studio 2008 (Pre-release) XAML code and C# code kept in sync
WPF is obviously a step in the right direction in enabling developers to make modern UIs, however Windows Forms still has quite a few advantages, the built in designer for once. Cider does not cut it (yet! ), and far less features then Blend. Blend and Visual Studio collaboration still has a long way to go also. I understand the need for XAML (to enable designers to do the ui without the need of strong programming skills) but for certain people like me developing dynamic UI in c# code is so much more intuitive and easy. Since XAML code is parsed and converted in c# code anyway, isn’t there an option to be able to edit this c# code directly (currently it is generated automatically from the xaml file so the modifications will be lost ...Show All
Smart Device Development Help for PDA
How can I create any help documentation for PDA device Something as *.chm for destop Windows. Hi, there is an article here on devbuzz about authoring help files. I personally use FastHelp , and have written a review of it here HTH Pete ...Show All
Audio and Video Development Question about how a element's opacity affecting its children.
Dear All, I have a question about how a element's opacity affecting its children. I think the parent element's opacity shall cascade to its childen elements, for example: " <div id="parent" style:position="absolute" style:x="10px" style:y="10px" style:width="100px" style:height="100px" style:opacity="0.2"> <button id="children" style:position="absolute" style:x="5px" style:y="5px" style:width="50px" style:height="50px" style:opacity="0.8" /> </div> " I think button "children" shall be drawned as a half-transparent element with opacity ...Show All
Visual Basic Compare 2 objects
hello. A question please. I do this: dim a as new person --- class person dim b as new person a.name = "Bryan" a.tel = "1111111111" b.name = "Bryan" b.tel = "1111112222" I'd want to compare the 2 objects. How can i do that Thanks... ok, for all, thanks very much !!! I now deduce that I can't compare 2 whole objets. I can know if theirs contents are diffrents comparing each properties of each one. ("Return other.Name = Name And other.Tel = Tel"). Am I rigth Thanks... ...Show All
Visual FoxPro Replace doesn't work
Ok , what I'm trying to do is to generate a new ID every time I append a new record, this is the code I use I find the maximum value and store it to a variable CALCULATE MAX (invoice.id) ALL TO var_id Increment the variable var_id=var_id+1 I replace the "id" field with the variable, but it doesn't work REPLACE invoice.id WITH var_id What could be wrong the field's value doesn't get replaced with the variable's value Andy is correct. If you want a ready made table you can use mine: How do I generate new IDs http://www.feldstein.net/newid.asp ...Show All
.NET Development Problem accessing parts of IHtmlDocument2 via .net interop on Windows XP
Hi, I've written some code to attempt to get the selected text from an HTML document loaded in a running instance of IE. I need to be able to access the frames collection of the IHTMLDocument2 interface so that I can get text from the documents contained in the frames. Here's what I've got: using SHDocVw; using mshtml; ShellWindows m_IEFoundBrowsers = new ShellWindowsClass(); foreach (InternetExplorer Browser in m_IEFoundBrowsers) { if ((int)win.Window == Browser.HWND) { m_IE = Browser as InternetExplorer; browserExists = true; break; } } if (!browserExists) { return; } IWebBrowser2 doc = m_IE as IWebBrowser2; ...Show All
Visual C# Getting the month out of a string date!
Hi, I'm facing a small problem and it would be great if someone could provide me a solution to this problem. I have the following code: string str="11/09/2006"; // In "dd/MM/yyyy" format. int month; Now when I specify month = Convert.ToDateTime(str).Month; I get the value of month as 11, which means its taking the "MM/dd/yyyy" format. How can I specify the "dd/MM/yyyy" format so that I get the value of month as 09. I do not want to use the spilt function and get the month, is there any other efficient way of doing this. Thanks & Regards, Frenz The Brits (and the Frenz) put the day before the month: System.Globalization.CultureInfo cult = S ...Show All
.NET Development NetworkStream.Length Property
Hi All, I want to use this property but in MSDN it says "This property is not currently supported and always throws a NotSupportedException.". When will it be supported Can you suggest any other method or property Try out this article: http://www.yoda.arachsys.com/csharp/readbinary.html ...Show All
Visual Studio Team System Publish operation failed
Good day everyone, I have an odd problem when publishing unit test results from both the build server and the developer's desktop. Initial note: All builds and unit test results were succeeding and successfully dropping to the fileserver in the past. In the case of unit tests, even failures were posted to the dropzone (by design, of course ;)). However... recently things have 'gone sideways' :(... here are some symptoms: Build server (unit test publishing): - At build time, I see the test phase start and I can even watch the fileserver's dropzone structure for that particular build and see the TestResults folder created and the subsequent files are copied over (In/Out/binaries etc...). - As soon as the test completes, th ...Show All
Smart Device Development How to zoom pictures on WM2003 and WM5.0
Dear Sir, I would like to develop an application on windows mobile 2003 and 5.0 of the following features: 1, The camera shot a picture and display it on the mobile device’s screen. 2, Since the resolution of the device’s screen is usually much poorer than the picture, users would like to zoom it. The scenario could be designed as following: there are a small circle on the snapshot of the picture. Users are capable of moving it via keys. When selected, the screen display the zoomed portion of the picture. I am a beginner of windows mobile developer, I am not acquaintance with the resources of windows mobile sdk and .net compact frame work. I could you tell me how to realize the above effect as well as t ...Show All
SQL Server Unable to add Securables to a DB Role
Hi All, I am having problems with a sql server 2005 database. Basic information on the setup, I have two windows user groups, admin and users. These both have logins to the sql server 2005 which are using Windows Auth. They in turn are users inside a database. In the database, there is one Schema that has been used to create all the data tables, stored procs. This was all done back in sql server 2000 days. Now, I have created two roles (one Admin, one Users) and want to add Securables to each of these roles. Essentially, the Admin will have access to all the secureables (except tables - but all stored procs) - and the Users will have access to stored procs that Get data (ie: No updates, deletes, adds). When I add these secureab ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Using Non-XBox 360 Controllers
As far as I can tell the XNA framework doesn't allow me to use controllers other than the XBox 360 gamepad. In future releases of XNA will the use of other controllers be possible If not, then the framework is fundamentally flawed for those wishing to make games for windows. Grayson Peddie wrote: My question for those of you making XNA games are "How many of you are only targeting Windows PCs " * Jim Perry raises hand. Are you talking about running XNA games under Wine for Linux systems I'm not really concerned about it. ...Show All
