Andrew Matthews's Q&A profile
.NET Development Read a pipe delimited file
Is there some easy way to read a pipe delimited file into a dataview, dataset, datatable etc Basicly I'm working on an interface to a web app that will respond with a pipe delimited set of records. IE each record on a seperate line and each field seperated by a '|' char. I'd like to get this into some form of data object to be able to better deal with it in code. Hi, Here is a code snippet that loads the the data into a DataTable from a string if you have the pipe separated data in the string. DataTable objDataTable = new DataTable(); string [] strLines = null ; string [] ...Show All
Visual C# Help What am i doing wrong??
hellow, i have a question, what am i doing wrong here FileStream joc_joc = new FileStream ( "joc_joc.txt" , FileMode .OpenOrCreate, FileAccess .ReadWrite); StreamReader line = new StreamReader (joc_joc); while (!line.ReadLine().Equals( "#" )) { listBox1.Items.Add(rand.ReadLine()); } i complie with no problems, but when i acess the form i get this: An unhandled exception of type 'System.NullReferenceException' occurred in Adelina2.0.exe Additional information: Object reference not set to an instance of an object. Please dont get me wrong, i`m i can`t see the er ...Show All
Smart Device Development Setup and Installer Package
I have developed CF2.0 application and did CAB Project and MSI installer package to deploy. I do see lot of downloads on my application but all the downloaders are disapppearing after download. I accidentaly found the reason that, when they try to install my Compact Framework 2.0 application with the supplied Installer the installer asks for .Net Framework 2.0 to be present in the Desktop since my application and Setup projects were developed in Visual Studio 2005. I do not think many users will have this framework installed in their desktop. As soon as it is prompted to download Framework for Desktop it discourages to con ...Show All
Windows Forms Zooming in and out on picture boxes
I have a picture box on a form that is a satellite photo taken from space. Does anyone know of a way that I can take a section of that photo and zoom in on it and resize that section to the whole picture box Any help would be greatly appreciated, smtraber Hi NewbieDude, Sorry for the long response, I've been busy at work. Do you still need help regarding mousewheel capturing problem, or did you already solved it -chris ...Show All
Visual Studio LAN Booster
Unable to use SourceSafe LAN service, performance of SourceSafe operations will not be optimal. I have been working on this for the past 3 days. This was a SourceSafe database created in 6.0 and was working correctly with 6.0 integration. This is what I have confirmed: The Visual SourceSafe LAN Service is running. I installed the COM Internet Services Proxy on the Server (saw in a different post) and rebooted the server. Added Tunnellng TCP/IP as well and rebooted. UseHelperService = Yes is in the srcsafe.ini. Looked in DebugView and do get the errors mentioned. Tried SSServiceTest and that fails too. I tried to fi ...Show All
Visual C++ wldap32.lib
Anyone know where this is located Microsoft Platform Software Development Kit (SDK). I have looked all over the Microsoft site. I need to get the latest wldap32.lib. Thanks, JoeyP You can find the download here: http://www.microsoft.com/downloads/details.aspx FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&displaylang=en Ronald Laeremans Visual C++ team ...Show All
Visual Studio "This page cannot be displayed" in Visual Studio Documentation
Hi, From several years now, we have been buying the full version of the MSDN documentation. It's been helping us much since then. Unfortunately, we have been experiencing some problems using it on our Intranet ( Our network is not connected on the Internet for obvious security reasons ). There seems to be more external links when refering to an other article in MSDN than before. The question is, do you plan on using more and more external links inside new MSDN articles or are they isolated errors that slipped through testing Cause if it is indeed the new philosophy, buying the MSDN help becomes more and more useless, since the onlin ...Show All
Visual C++ Convert System::String^ to Float
Hi, I have a value such as "523.12" that will be entered into a Textbox control (Visual C++ 2005). How can I convert this value into its equivalent float value Thanks! ~Dan Scraniel wrote: Hi, I have a value such as "523.12" that will be entered into a Textbox control (Visual C++ 2005). How can I convert this value into its equivalent float value Thanks! ~Dan use Convert::ToDouble(String^) ...Show All
Windows Forms how to close window in this way ...
hi i have 3 forms , form2 is for asking username and password after clicking a button on form 1.after confirm the username and password , it goes to form3 . these forms will be appear like this : first , form1 appear , after click the butoon, form2 will appear (form1 is still visible), after confirming username and password, form1 and form 2 will hide and form3 will shown. how can i do this in form2 i can't use " form1.hide() " thank u for your attention hi i created a class and in this class i have : public shared result in form1 , onclick button1 i have : dim m as new form2 m.showdialog() me.hid ...Show All
Smart Device Development configuring dev environment to run 2 pda's
this isnt related to visual studio 2005 but instead to vs2003 - i didnt think it was suitable for any of the other compact forums ------------------------------------------------------------------------------------------------------------------------ Intially i had my development environment all setup and working fine for a single device. i am using vs2003, v1.1 compact framework and a Dell Axim X50 (windows mobile 2003 v4.21.1008) which is linked to my pc using an ActivSync std partnership. this morning, i was handed a new device which i also need to develop against. its an HP iPAQ hx2400 (windows mobile v5 v5.1.1702) i also upgra ...Show All
Windows Forms Adding non-predefined number of controls in runtime and handling their events
Hello! I've got a problem with runtime conrol adding. I'd like to add a few ComboBoxes in a panel (Number of them isn't known to a programmer). And then I'd like to handle SelectedIndexChanged of each one. If someone write whether it's possible and how to do it, I'll be pleased. Thanks for all replies! Here's a <a href="http://www.windowsforms.com/Forums/ ...Show All
Visual C# ColAutoResize
In my app I have 2 different DataGrid's and they each reside in seperate forms. Each only has a single DataTable as its DataSource. Upon a change in either Grid's DataSource, the method below is called to resize the columns. In Grid1, I display the table, but sometimes hiding certain columns using Table.Columns[index].ColumnMapping = MappingType.Hidden. In Grid2, I display the table, and sometimes want to hide columns. However, on this table I also use the most commonly explained way to highlight specific cells of the table. I create DataGridTableStyle, which has a DataGridColumnStyle for each column. Also overwriting the DataGridTextB ...Show All
Visual C# unicode charaters
Does anyone know how do I read UNICODE character from a text file and write it to another file. Because I have problems reading/writing non ASCII characters like: s,o, etc. I'm using this: StreamReader reader = new StreamReader(filename, Encoding.Default); Or be explicit about it: Encoding.GetEncoding(1252) ...Show All
Visual Studio Team System Load Testing of Window based client with web Services as server
I want to know that whether we can use vsts for load testing of a window based application which uses web services as server . All the tools i have found uses web based clients to test webServices. Are there any other tools available that can solve my problem or vsts provide this facility VSTS does not provide tools for testing applications with a windows based UI. You can certainly unit test and load test the server-side web services, but not the UI. ...Show All
Visual Basic What good is this?
Dim PrgrssBr as New ProgressBar ... and what can you do with it Thanks. Hello zdrae, The purpose of the dim <variable> as New <type> syntax is to allow you to declare a variable and initialize it all in one go. It is really just "syntatic sugar" for the following equivalent vb code: dim myList as ArrayList myList = new ArrayList Choosing between the two forms of syntax is really just a matter of style. Some developers like to write their variable declarations / initializations in a compact way, so we support that. Hope this helps. -Scott Wisniewski Sof ...Show All
