akula's Q&A profile
Windows Forms Memory management question -> Form.Close()
Hello, In one of my winforms pages, I launch another form as follows Private Sub btnExtract_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnExtract.Click Dim page As New ShowCourses page.Show() End Sub When this form comes up, I fill a datagrid and then set the dataset and datadapt ...Show All
Visual Studio MFP Package.Project source
What is the correct way of adding the Package.Project source to our Package solution All of the examples I have seen are using an import statement on ProjectBase.Files. The question I have is determining the path. The IronPython example is using relative path from the project to ..\..\..\Common\Source\CSharp\Project, but the Project sample under Archive\CS_Samples\Project\Project is using this relative path in addition to an env variable $(_NTDRIVE). What should we be using to determine the path from where our project is located Mike Archive code should not be used to judge anything. Its archive. Sam ...Show All
Windows Forms User Controls And Delegates
Hi, I've got a user control inheriting from System.Windows.Forms.TextBox and I've added a ListBox as a child. I would like to expose an event when the ListBox changes visibility and I need help coding a delegate. Any help appreciated. Code Snippet Follows==================================== public class TextBoxLookup : System.Windows.Forms.TextBox { private System.Windows.Forms.ListBox listBox1; public TextBoxLookup() { // This call is required by the Windows.Forms Form Designer. InitializeComponent(); // TODO: Add any initialization after the InitComponent call this .listBox1.Visible = false ; thi ...Show All
Visual Studio Express Editions Parser Error
I cannot get this right. maybe I am not sure what I have to copy to the hosed server. Run a simple file: default.aspx that has a login control. Nothing in it. I copy to the host server and gives me : Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Source Error: Line 15: <div> Line 16: </div> Line 17: <asp:Login ID="Login1" runat="server"> Line 18: </asp:Login> Lin ...Show All
Windows Forms New Article on Optimizing Localization
A new article has been posted by Brian Pepin, one of the designer devs on the Windows Forms team. It walks through the code used in the localizaiton process and has a sample that will significantly reduce the size and load time of your localized Forms. Check it out at: <a href="http://windowsforms.net/articles/localizationfilter.aspx">http://windowsforms.net/articles/localization ...Show All
SQL Server Sql Server Compatibility : Null Values in Identity Column
Hi all, I've a compatibility issue with an application wich was designed to work with sql server 6.5. Now, the application works fine in production with sql server 2000, but I can't configure my test server to reproduce the production behaviour. My problem is that the request send to the database by oledb, send null values in a column of type identity and i've an error with sql server 2000. ex : Consider that I've a table TEST with three columns COL1, COL2, COL3 and COL1 is an identity column (with auto-increment). The request is : insert into TEST (COL1, COL2, COL3) values (null, 'aaa', 'bbb') If someone knows how i've t ...Show All
Visual C++ Tab Order???
Hi, I like to arrange tab order of the user interface in order. I am writing an MFC program in VS 2003 Net. Can you please help me Thanks, vcboy You can use SetWindowPos to change the Z-Order of the windows/controls. Most easier is to create the windows in the sequence you want to have them. ...Show All
Visual Basic ADO/Access Questions
I've had a moderate amount of of experience with access databases in vb6. We'd declare a file system object and from that declare a workspace and from that a record set descriptor. One could picture and understand what was happening. VS2005 is different though. You could create and delete tables and define them dynamically. VS2005 seems to be different. It seems that things are done up front in the IDE Almost as if the relationships are drawn. Instructions are to click on this and do that. One creates table adapters and and dataadapers and with these apparoaches everything seems quite removed from what really happening. Al ...Show All
Visual Basic Remote Registery Access and Windows 2003
I am trying to write a simple app for connecting to each machine in my domain and pulling particular registery entries. It works fine on Windows 2000 machines but when connecting to windows 2003 machines I am getting System.UnauthorizedAccessException was unhandled Message="Attempted to perform an unauthorized operation." All the machines are a member of the same Windows 2003 domain and the app is running as a login that is a domain administrator. Dim reg As Microsoft.Win32.RegistryKey reg = Microsoft.Win32.RegistryKey.OpenRemoteBaseKey(RegistryHive.LocalMachine, dr( "Name" )).OpenSubKey( "SOFTWARE\MyProduct\Product ...Show All
Visual Studio Team System Delete Work Item Type from project?
I was playing around with custom work item types in some projects. Now I want to delete some of the types I created. How can I delete Work Item Types from a pre-existing project without having to create a brand new project (I apologize for all the questions at once, been saving them up for a while). Yep, you are both right. We didn't follow through on deleting (permanently) as well as we could have any where - team projects, files, work items, etc. We are looking at what we can do to improve that. Thanks for the feedback, Brian ...Show All
Visual Studio Tools for Office Upgrade a Combobox with queries list in access
Hi, This is what I'm trying to do with Access 2000 : In a Form called 'MENU REQUETES', I want to upgrade my combobox 'Req_Liste' with the name of all the queries present on my database. I tried this : Set dbs = Application.CurrentData For Each obj In dbs.AllQueries Forms![MENU REQUETES]![Req_Liste].additem obj.Name Next obj but this is not working....can someone help me Thanks Hi Steve: I've posted your question in the access.formscoding newsgroup, as this is a non-VSTO question: http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.access.formscoding&lang=en& ...Show All
Visual Studio Team System TF42046: The build service used in the build process is not reachable - stack trace.
Hi all, Am using the beta 3. I have been struggling with this issue for the past 24 hours. From what I read there can be multiple reasons for this error message. I have experimented and verified the settings mentioned in this link: http://geekswithblogs.net/mskoolaid/archive/2005/12/15/63276.aspx suggestions on resolving or debugging further can help. A couple of other things I am noting: 1. As I see from task manager, the TFSBuildService.exe starts to run, that at least rules out problems with port configuration error. 2. I have enabled tracing in TFSBuildService.exe.config. But I don't see the buildmachine.log getting cre ...Show All
Smart Device Development Cannot establish a connection
hi i am mehmet i am deployment smart device application solution on vs.net 2003. and i am using Active Sync. but when i am connecting to device PDA later solution is error : Cannot establish a connection.Be sure the device is physically connected to the development computer can i do have a look at this article http://support.microsoft.com/default.aspx scid=kb;en-us;813579 try goin to this location on your pc C:\Program Files\Microsoft Visual Studio .NET 2003\CompactFrameworkSDK\WinCE Utilities\WinCE Proxy Ports Reg and launch the ProxyPorts.reg ...Show All
Visual Studio Express Editions Creating a web browser...
Hi everyone! I'm making a web browser but I don't want 'webbrowser2' to be created on the form untill I click a button... I tryed: private void button5_Click( object sender, EventArgs e) { WebBrowser webbrowser2 = new WebBrowser (); webbrowser2.Height = 250; webbrowser2.Width = 279; } But it dosn't seem to be working (and i don't know how to set the location). Can someone please help me out! THANKS! There's also left and top properties you need to set. An easier way would be to let it be created, but set it as not Visible ( visible = false ) and then make it ...Show All
Windows Forms MouseDown in Client Area of MDI never fires?
Very strange; it never fires. Oddly (to me), if I assign a ContextMenu to the MDI form, it comes up fine with a right-click in the form, but it also comes up with a right-click on a MDI child form, unless the child has its own context menu. The problem I have is I create a context menu when the user clicks in a certain area of the MDI form; when that happens, the static MDI ContextMenu is also displayed. If I can detect the MouseDown (or Up) on the MDI form (esp. client area), then I can create all context menus on the fly. ---Mike AH MDI Parent. That's different. This is because the gr ...Show All
