Roland H's Q&A profile
Visual Basic Hiding Designer Generated Code
When I converted a project from VB 2003 to VB 2005, the "Windows Form Designer generated code" region is still visible in the IDE. All files were showing up in Solution Explorer so I clicked the "Show All Files" icon to hide them. This hides several files in the Solution Explorer but still does not hide the Designer Generated Code region in the code window. Could it be an issue with upgrading a project from 2003 Is there any way to hide this region The auto generated code for new files goes into partial classes, but the old code does not get moved. You can right click and c ...Show All
.NET Development Need help with small program feature
Hi everybody, I need help with a small feature for my program. I want to make a button that calls a webbrowser like mozilla, IE,... and I want it to show a specific website. Is this possible If yes could someone post the code here Thanks in advance ...Show All
SQL Server Dataflow slows dramatically down after passing 1.6 million records ?
If i have a dataflow witch moves records from one OLE DB Source to a OLE DB Destination, the step slow down when getting above passing 1.5 - 1.6 million records.The Source is a SQL 2000 and the Destination is SQL Server 2005. the Package is run from a laptop with 1.5 GB ram What can i try to help it Use the Windows Performance Monitor (Administrative Tools-->Performance). In there, there is an IS object containing various counters that you can use to monitor performance. There is a help file provided that explains how to use Windows Performance Monitor. -Jamie ...Show All
Visual Basic Pass a TreeNode argument ByRef or ByVal?
I used the following code to add a child treenode under a parent treenode, when passing the parent treenode by reference, after adding the child treenode, the selected treenode changed back to the parent node instead of the child node, after I changed the parementer from ReRef to ByVal, after adding the child node, the selected node stays at the added node, which is what I want. But I still do not understand why byRef does not work, as far as I know, for object type, passing byRef or byval should be the same Am I wrong Public Sub AddNode(ByVal oTreeParent As TreeNode) Dim oParent = oTr ...Show All
.NET Development Create new DataTable as a subset of existing DataTable?
How do I create a new data table as a subset of an existing data table I know I can use the .Select("Where Clause"), but that returns a array of rows. How do I convert the array of rows back to a new data table Yes, DataView.ToTable does work, but how do you get a typed datatable out of it ...Show All
Windows Forms Cross-thread operation not valid...
Hi all, I have one project that run well on Visual Studio 2003. When i using the same code in isual Studio 2005, this is: public void port_OnRead(string Data) { // Note! // To convert from string to byte[] use SerialNET.Port.StringToByteArray() if (Data == null) { // Timeout } else { byte[] myBytes = ConvertStringToByteArray(Data); hexString = BitConverter.ToString(myBytes); // Replace the - seperator for an whitespace hexString = hexString.Replace("-", ""); label1.Text = hexString; } it have error at label1.Text = hexS ...Show All
Visual Studio Express Editions Help please...
This type of program has been done before but I am using the subject as my first actual progam that I am making. It is a temperature conversion program that converts Fahrenheit, Celsius, Kelvin, and Newton by making a selection of what you want to convert. I finally got my program to work(figures number correctly) but I have one small problem, the program wants to run through every if statement before it finishes, no matter what the user wants to convert. I was guessing all I need is probably a few lines of code but I dont know, and I used a lot of functions(so I become experienced with using them) so if I don't need them just tell me. he ...Show All
Visual Studio Express Editions Collection access in event handler (newbie)
Hi I am making huge progress on my first program in Visual Basic Express, and have come to an abrupt stop. I have dynamically created a new Panel and dynamically populated it with a series of textboxes. Then I have filled each box successfully with desired text contents. These procedures work well and I can refill the textbox text properties at will. During the dynamic creation of the textboxes, I added each to a collection with: newP.Controls.Add(newT) 'put new button into panel COLLECTION I assigned an event handler for all of them with: AddHandler newT.Click, AddressOf ClickButton ' all textbox click handler wh ...Show All
Visual C++ Right-click on a ListCtrl
Hi, I have a ListCtrl (report view) in the main view in my application, and I want to show a popup menu when I right click on the ListCtrl. But it doesn't work, the popup menu only shows when I right click outside the ListCtrl. I want it to appear only when I right click on the ListCtrl. In the CMyView class I have this code: void CMyView::OnRButtonDown(UINT nFlags, CPoint point) { CView::OnRButtonDown(nFlags, point); CMenu menu; VERIFY(menu.LoadMenu(IDR_POPUP)); CMenu* pPopup = menu.GetSubMenu(0); ASSERT(pPopup != NULL); pPopup->TrackPopupMenu(TPM_LEFTALIGN | TPM_RIGHTBUTTON, point.x, point.y, AfxGetMainWnd()); } I h ...Show All
Visual FoxPro Fatal Error when writing to excel
Hi, The version of Foxpro is 6.0. The application I am buliding is to write data into Excel 2003. There are times when I am getting a Fatal Error at a stage when I am writing the data into the cells. Prior to this step I have other processes where I add more sheets and rename them, setup the borders and page setup and all works fine. I try to debug the application and it runs fine. The problem is that the message is intermittent even after I build the exe. Installing the EXE on different PCs also gives different results, somtimes the extraction writes to the excel file well but sometime I receive the fatal ...Show All
Visual Studio Documentation For VS2005
Hi, I see that build comment web pages has been removed from VS2005. All are suggesting to use Ndoc. The latest downloadable version available for Ndoc is 1.3.1. Is it compatible with VS2005 I tried using it but I wasn't able to get documentation sucessfully. Any help in this regard is welcome. Ann. NDoc 1.3.1 is not compatible with VS2005. A new version, 2.0, is in the works but it's still in alpha testing. Please see the discussion entitled "Generate documentation under .Net 2.0" for more details. ...Show All
Windows Forms XP Button on form (but not on caption)
In Visual C++ on an WinForm which doesn't have a caption (and I don't want it to), How do you paint the XP Close button Thanks, You can try investigating the ControlPaint class in Windows.Forms that has a set of methods for drawing standard windows elements. There might be a method that draws the close button. Alternatively try looking at the ButtonRenderer class that draws theme specific buttons, maybe once of the options is to request a system close button style. I vaguely remember there is also a Win32 function for recovering standard system images such as the scroll bar parts and I would guess the system buttons. Try a google ...Show All
Windows Forms datagridview master detail
I converted old application from vs2003 where I had used datagrid control. I had master detail shown in one grid with + enabling to see details. part of code enabling me to see master detail in old datagrid was something like this: custDS.Tables.Add(dt0) custDS.Tables.Add(dt1) Dim dc1 As DataColumn, dc2 As DataColumn dc1 = custDS.Tables(0).Columns("Sample_Ref_ID") dc2 = custDS.Tables(1).Columns("Sample_Ref_ID") Dim drel As DataRelation = New DataRelation(custDS.Tables(1).TableName, dc1, dc2, False) custDS.Relations.Add(drel) Me.DataGrid1.DataSource = custDS Me.DataGridV ...Show All
SQL Server deploying report models
Hi Friends I've quick question ,we have a .net application and we want develop a report builder utility for our end users.I found sql server's built in Report builder is very useful so i created a report model which is easy enough for our end users to select different data items to create their own reports. My questions is how can i deploy this from our production machine to client site what are the requirements etc., I have looked web for any references but in vain. Any help with this regard is much appreciated. Thank you Hi, This is what i came up with while searching for a way to create model programaticaly. Upload ...Show All
Visual Studio Team System Ability to add "State" to the columns on Links within a work item
Is there any way to modify what columsn are shown on the "Links" tab of a work item view For instance, for related links, I want to show a column that has the appropriate "State" of the work item (Proposed, Active, Closed, etc). Is there any way to do this Thanks, ~slee Slee, columns in the links tab are fixed for v1 and unfortunately cannot be changed. Remember that the control shows other type of links too, such as changesets or test results which may not have a state field. Naren ...Show All
