BJohnKenn's Q&A profile
Visual Basic How to group lines in a text file
Hi, I have some trouble when I try to group similar lines in a text file, which is a Tab delimited. I am trying to reformat a txtfile, it looks like this: Pick_num Item_num Date 100 A001 03/05 100 A002 03/05 200 A101 03/05 200 A221 03/05 200 B002 03/05 300 B004 03/05 The output format will be like this: Header 100 100 A001 03/05 100 A002 03/05 Trailer 100 Header 200 200 A101 03/05 200 A221 03/05 200 B002 03/05 Trailer 200 Header 300 300 B004 03/05 Tr ...Show All
Windows Forms Howto change color of buttons on Tab
Hi, Could anyone help me with changing the backcolor of buttons on a Tab Control.I am able to change the backcolor of tab pages,but cannot change the backcolor of the tab buttons. Regards, Supriya Hi Supriya, This can be done by changing the DrawMode property of TabControl to OwnerDrawFixed. Then handle the draw_Item event like this: private void tabControl1_DrawItem( object sender, DrawItemEventArgs e) { TabControl tabControl = ( TabControl )sender; Font font = new System.Drawing. Font ( "Verdana" ,8); string tabTitle = tabControl.TabPages[e.Index].Text; int x, y; System.Drawing. SizeF fontSize = e.Graph ...Show All
Smart Device Development NetworkStream with WriteTimeout not supported in WM 5?
.NET CF 2.0, Windows Mobile 5 Hi, I would like make a write timeout function for tcp connection. I use TCPClient at which the attribute SendTimeout is not supported by CF 2.0/ Windows mobile 5 yet. On the other hand, networkstream - WriteTimeout shall be supported on synchronous write operations. However, it throws an InvalidOperationException, if I want set/get the attribute. This is what I found in the documentation: http://msdn2.microsoft.com/en-us/library/system.net.sockets.networkstream.writetimeout.aspx Isn't the Networkstream of a TCPClient a "normal" NetworkStream Or how can a make a TimeOut-Function Thank ...Show All
Windows Forms mask in DataGridView
How can I check the mask when the user edit the cell. I already set the custom format in DataGridViewCellStyle using CellFormatting event. But, when I key in the value, it doesn't check the format. ( for example, maxlength... ) ( EX : 1. CellFormating Event - format setting : AA-AA-AAAA 2. When the data display : in Database&nb ...Show All
SQL Server Error Generating Model for AS Data Source
Hi, I get an error in my browser when I’m using the Report Manager to generate a model for a created Analysis Services data source. I get a rsModelGenerationError error, but there’s no explanation for it. Does anybody know a solution for that Is there another way to create a model for an Analysis services database My AS database is located in a ditributed server. Thanx! Mehdi ...Show All
Windows Forms How to make the end of TextBox.Text in view?
I have a TextBox with WordWrap to false and Multiline to true. I am using it as a text editing box for my application. I can set the cursor to the end (SelectionStart and SelectionLength). But how do I programmatically make the TextBox to display the content with the last character (cursor) in view when the text is longer than the width of the control Thanks in advance. One way is increasing the text box width or height to display full text, it can be done by calculateing the width occupied by the text in the text box, from the text width, modify the text box height or width. following code ...Show All
Visual Studio Team System Team project creation failed
After some day's of hard work I succeeded in installing Visual Studio 2005 Team Foundation. But when I want to create a new Team Project I an error message: Initialisation for plugins "Microsoft.Pcw.wss", "Microsoft.Pcw.currituck" failed. I have Team Foundation Servr and Client installed on the same machine, and I am always logged in as machine administrator. The site http://test-jb2dms7g05:8080/bisserver/EleadWebService.asmx is available, also the sites: http://localhost http://reports http://reportserver/reportservice.asmx Does anyone know what to do This is the project creation log file: 10.25.2005 09:10:19.671 | Module: ELeadServiceMe ...Show All
Visual Basic Creating Control Arrays!
How can i create a control array in VB 2005 If I convert a VB 6 project into VB 2005 the control that's in an array has an extra property in the misc sections called Index on Text1 or what ever the control is called. But when I copy the control into another VB 2005 project it no longer has that property! How can i create this in another project I read http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=67447&SiteID=1 but it did not answer my question. Thanks! This feature is no longer support in VB.NET. I've just found a link. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=263432&SiteID=1. ...Show All
Windows Forms Manual deployment using Mage.exe and MageUI.exe
My goal is to create an automated script to build and deploy our application to a publishing URL. The building is already done and is working great. Using MageUI, I was successful in creating the application manifest and deployment manifest, then manually copied the files into the publish URL and everything worked. Using Mage.exe, I have been slightly less successful. I have tried to follow the same steps I believ MageUI is taking, listed below. I keep getting errrors when installing and running from my client pc though. Steps to reproduce: Create new folder for application to deploy ( ie. bin\debug\1.0.1.3) From the debug ...Show All
Visual Studio VS2005 July CTP under Virtual PC - shortcutCLTDbg32.txt can't be read
I've been trying to install the July CTP of VS2005 Professional under Virtual PC SP1 which is running Windows Server 2003 SP1 and it invariably fails towards the end of the main install trying to read D:\VS\Program Files\Microsoft Visual Studio 8\SDK\v2.0\GuiDebug\shortcutCLRDbg32.txt telling me the file was not found and offering me the choice of Retry (which loops failing with the same message) or Cancel (which does a rollback). That file is on the disk and appears to be a multi-stream file. It can be opened in Notepad in the host operating system (Windows XP SP2) ie outside the VPC with no problems. Notepad displays its content ...Show All
.NET Development accessing asp:table cell values
I'm working with an asp:table control using C#. I wish to get the string values in the cells but it is proving more difficult than I had thought, is there an easy way My method doesn't appear to work, Text always returns and empty string! The cells in the second column actually contain a asp:textbox as the contents are meant to be editable. There are only two columns and a variable number of rows. Here's what I'm using [CODE] TableRowCollection rows = Table1.Rows; foreach (TableRow presentRow in rows) { string presentKey = presentRow.Cells[0].Text; string setValue = presentRow.Cells[1].Text; if (!presentKey.Equals("") ...Show All
Visual Studio Where to start??
Hey everyone! I need to find out where to start with CR and .net. I have read about 5 or 6 books on .net and visaul studio. Not one of these books ever mentioned CR. At the moment I am working on a project that I need to report some info from some tables, calculate some values @ report time, and take totals at the end. Programmaticly doing this is not a problem, but printing all this formated is a problem. Anyhow, where should I start to find out how to use cr Good books or tutorials I have googled and searched the message boards, and nothing tells you how to get from point a to point z. Thanx in Advance! ...Show All
Visual Studio Express Editions SQL / Datagrid
Hello there, i’d like to know, in general, how would the code be to fill a datagrid ("datagridview1") with all datasets from a table ("Tbl_ausgaben") which is in the DB_AusgabenDataSet I think there must be sth like SQLConnection ... Could any1 give me an exemple code or a link which could help me Thank you very much! Bye, Mike Hi, Sorry for the late reply. If you're using FlexGrid control, this article may help http://msdn.microsoft.com/library/default.asp url=/library/en-us/vbcon98/html/vbconhflexgridcontrol.asp . Microsoft ActiveX Data Objects 2.0 classes mentioned in this article can be found in Microsoft.VisualBasic ...Show All
SQL Server "certificate not found" for second receiver
I am trying to test load balancing between multiple broker service instances. I have set up one sender and two receivers. When I tried sending a lot of messages from the sender, I noticed that all messages were being received by receiver 1 alone. While I am able to communicate between sender and receiver 1, I am not able to send message to the second receiver (I stopped the first receiver instance to find this out). I receive the "certificate not found" error in the Profiler for the second receiver. The code for my second receiver is very similar to the first one. I am dumping in the full code down here. I appreciate if someone ...Show All
Windows Forms How to remove a cell value in datagrid?
Hi, How could i programmatically delete the value in a data grid cell. I need to add a function to the datagrid to be able to delete/remove the current cell value by pressing a key. Following statement clear the cell but in visual mode ( on Screen) you still can see the value. So, this doesn't work for me. datagrid1.Item(...row_number...,...col_number ...Show All
