David S. Anderson's Q&A profile
Windows Forms Master / Detail on separate Windows Forms?
What is the best general approach to have the Master vs. Detail on separate Windows Forms The reason I'm doing that is I need more real estate for my detail form. So On form1 I want my datagridview, and as I select a row on it, I want to update my detail form on form2. Currently I am attempting this way: From the datagridview on a form called fproj1 I am activating a hidden but loaded fproj2 as follow: Private Sub ProjectDataGridView_CellContentClick( ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles ProjectDataGridView.CellContentClick fProj2.ProjectBindingSource.Position = Me .ProjectBindingSource.Position fProj2.Show() End Sub ...Show All
Visual Studio Team System How do you extract a parameter from a url in a redirect?
How do you extract a parameter from a url in a redirect When I record steps how do I get at the body of the redirect response Hey mfitz, How did you use the LastResponse properties to solve this problem Is the code looks like the follows: yeild return request1; string redirectUrl = this .LastResponse.Headers[ "Location" ]; myParemeter = redirectUrl.tostring(xx, xx); I tried the code like the above. But the redicrectUrl turned out to be "null". ...Show All
SQL Server Pass parameter by url
Hi All: I have create a report withone parameter. Now what i am trying to do is that at a web page i have a button call report . i want to click this button then jump to the report . at moment i just simply write response.redirection("report url") can anyone tell me how to pass the parameter by using this way Cheers Nick THis would be as simple as: http://<pathtothereport>&ParameterName=SomeValue HTH, Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
SQL Server SQL Express won't install, seeing existing product key
hello, WIN 2003 web edition. Purchased sql 2005 standard because express was dropping transactions due to too many connections. Installation failed, found out we couldn't install it on 2003 web edition. Am now trying to re-install express to get the store back online and it is failing, says it sees an existing product key and it is incorrect. I have uninstalled everything (about 100x's) and even there is nothing in the hkey_local machine\software\microsoft\windows\uninstall list of guids that has anything to do with sql server, but the install still won't work. PLEASE answer soon, I have definitely lost this client for good but I would like to get their site up asap. Thanks $245 ...Show All
Windows Forms Display filtered values in combo in VB 2005
Hi, I have a databound combo on form in VB 2005. The datasource of the combo is set to a DATASET which displays all items from LOOKUP table. This works correctly, but the problem is that i want to display limited items only in the combo.............. For example in a Receipt collection form, the combo is data bound..... Datasource:Invoice table Display member: Invoice Ref Value member:Invoice ID Selected value: Receipt collection Invoice ID In this form, all the appropriate values are displayed with the corresponding lookup data in the combo when i navigate thru the records. Now, the combo gets populated with all the Invoice Ref numbers. I want to reduce display of all Invoice numbers.In the combo (when populating), ...Show All
.NET Development onClientClick
hi I have a GridView with a template button column. I want to set visiblity of the button that is clicked to false using OnClientClick property. and I dont know how to reach the clicked button with code. thank you in advance ...Show All
Visual Studio Tools for Office VSTO 2005 Solution in Word-Template doesn't opens in 2007 Word
I have a VSTO 2005 Word Template with an attached XML-Schema which is distributed over several files. The template contains tables and nested tables. The table cells contain the data within XML-Nodes. The VSTO-Solution opens in Word 2003. In 2007 Word the template opens but not the VSTO-Solution, an error "This Action is not valid outside of a block--level XML element." occurs, followed by a "Office document customization is not available.". If I remove the XML-Nodes and insert them at the beginning of the document, in front of the tables, the VSTO solution opens in 2007, that means, my security configurations and the solution-entry in the document-properties are correct. On the other hand, if I let the XML-Nod ...Show All
.NET Development .NET event sink handling
I have a C#.NET singleton object that explicitly implements an event sink. Basically, it is a configuration object that fires an event when a configuration entry changes. The addition and removal of event handlers is through the following code: event vdelSettingChange ICommonParameters .eSettingChange { add { eSettingChange += value ; } remove { eSettingChange -= value ; } } Since the object can have multiple clients, do I have to manually implement the mechanism for the object to call the event handler on each client, or does the .NET framework automatically handle this In otherwords, do I have to make eSettingChange an array and iterate through calling each item in the array, or is thi ...Show All
Visual C++ c1xx attempting to compile first preprocessor directive.
Yesterday I didn't notice any problems with my project, but today whenever I change a file, it compiles the changed file, and then attempts to compile the first preprocessor directive I've defined (in my case WIN32). The exact error reads as follows: WIN32 c1xx : fatal error C1083: Cannot open source file: 'WIN32': No such file or directory After I get this error once, I can recompile again, and since the changed file has now been compiled, it goes directly to linking and doesn't spit this error out again. I'm using VS2005 Standard Edition. What can I do to fix this or to get more information on what's happening I'd added an environment variable which had now been removed, thus cr ...Show All
Visual Basic Unknown problem
Hello! I am writing application which is server which communicates with client by socket. The server contains one form "frmMain" and one module "Module1". Module1 contains the following lines: Imports System Imports System.IO Imports System.Net Imports System.Net.Sockets Module Module1 Public Const BS_PORT = 8221 Private pfnWorkerCallBack As AsyncCallback Private soclistener As Socket Private socWorker As Socket Public Sub StartListening( ByVal Port As Integer ) Try Dim ipLocal As IPEndPoint = New IPEndPoint(IPAddress.Any, Port) soclistener = New Socket(AddressFam ...Show All
Visual Studio Express Editions Data Grid View preventing Column Header click
Hi, How can I disable the column header click event I have set the Selection mode property to Full Row Select. I have coded the cell_click event to handle the user clicking a row This all works fine. At the moment the clicking of the column has the same effect as clicking the highlighted row. If I use the cell content click event, this resolves the column issue, but then restricts the selection to cell content, that is the user must click on the cell text which is abit hit and miss. I need to disable the column selection allowing the clicking of a row only to fire an event. I could code to handle the column click event, but is there a property etc that will disable this feature. Ron ...Show All
Visual Studio 2008 (Pre-release) named pipes error: Metadata contains a reference that cannot be resolved
Hi I have created a simple service accessible using named pipes, here is config file: < system.serviceModel > < services > < service name = " WCFHost.MyService " behaviorConfiguration = " metadataSupport " > < host > < baseAddresses > < add baseAddress = " net.pipe://localhost/serviceX " /> </ baseAddresses > </ host > < endpoint address = " mex " binding = " mexNamedPipeBinding " contract = " IMetadataExchange " ></ endpoint > </ service > </ services > < behaviors > < serviceBehaviors > < behavior name = " metadataSupport " > < serviceMetadata /> </ behavior > </ s ...Show All
.NET Development Query Builder Component
Hello, I would like to incorporate a query builder component into my application so that I could bulid sql statement dinamicaly (SQL Server, Access). Are there anything in MS or third party tools you can suggest Thank you, serge Hi, I have used this 3rd party component and it just performed fine. YOu might want to give it a try. http://www.activequerybuilder.com/ cheers, Paul June A. Domag ...Show All
Visual FoxPro Why the datas from the .dbf file (table) on the form are not displayed?
Hi all Need help very badly.. I purely have no idea where i go wrong. I'm trying to get the datas (such as CHEVSINSMZ 100,CHEVSINSMZ 100, CHEVSINSMZ 101, CHEVSINSMZ 102, etc) from the table (.dbf) display and then trim into "CHEVSINSMZ 100 & 101 & 102 itself. What i get the result on {.xdf_bl.value= OutPutSTring} of the form is (1)_________ when testing this form. Why cannot the datas be shown on the text field when searching for the value in the .dbf _-_-_-__-_-_-__-_-_-__-_-_-__-_-_-__-_-_-__-_-_-__-_-_-__-_-_-__-_-_-__-_-_-__-_-_-__-_-_-__-_-_-_ tnfjob is the name of the table. Jt_hblno is an attribute of the table (.dbf)in the form. It is like something that originally contains CHEVSINSMZ 100,CHEVSINSMZ 100, ...Show All
SQL Server How to rename a table ?
Hi all. I'm porting an application from eVB-ADOCE to VB.Net-SQL CE In the old application there are some SQL statements like this: "ALTER TABLE OldTable TO NewTable" Is there an equivalent instruction or a simple way to rename a table I was not able to find anything simple to do the same. I really need NOT to do something like SELECT * INTO NewTable FROM OldTable because the resulting table could go outside memory and/or spend too much time in elaboration. Please let me know what I can do. Many thanks ! Joao Paulo Figueira wrote: Don't worry - I'm working on an article that will allow you to do this from .NET CF on a device. I will post this article either today or tomorrow. ...Show All
