Brad Corbett's Q&A profile
Windows Forms CallBack in GridView
Hello: I am in the process of extending GridView and adding some functionalities. For example, I added a single row click to postback and handle the event. I would like now to be able to do a CallBack instead of PostBack. Do you know if there is a whitepaper on how that CallBack functionality is added to the Grid currently through sorting and paging I believe it is better to follow the same technique used. I have been trying for some time, im getting all the needed methods and functions, and I have added for example: Grid1.EditIndex = e.GridViewRow.RowIndex; inside the handler of the sinlge click which is being fired upon a callback, I am doing debugging and I am going to that method, but nothing is changing on the grid. ...Show All
Visual C# Compare ArrayList
Hello, I have 2 sorted array lists. e.g. arrayList1 = a,b,c,d,e,f,h,k,l and arrayList2 = a,c,d,f,g,h,i,j ArrayList1 contains the list of strings that are to be compared against. Unfortunately there are thousands of strings in each. So I don't know if it would be any good doing something like; does arrayList[0] == arrayList[0]||arrayList[1]||.... (in a loop of course). Another thing, arrayList2 is getting its (distinct) data from a database so I can't really check it against arrayList1 there and then, as it would leave the connection open for longer... I don't know maybe this is an ok trade off I don't suppose there is an efficient arrayList1.compare(arrayList2) method out there ...Show All
Visual FoxPro Multiple Child table
What can i do in add button if i have a lot of multiple child table what is the best solution also how to append blank in child table please help me... There is not a best solution because generally child tables do not need an immediate addition of records. If you mean you want to insert a record in child tables whenever you insert a record into parent then you could do that like: insert into myChild1 (foreignKeyField) values (parentPK) insert into myChild2 (foreignKeyField) values (parentPK) Prefer insert into as it does both append blank-replace in a single shot. With Append blank there is a slim chance that someone else could modify the record before you do (unless buffered). ...Show All
Visual Basic TImer w/ call fx
i need 2 call 2/4 fx in a loop at the same time, add a timer/delay b4 every fx is executed code is sumtink likie this Private Sub Walk_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Walk.Click Dim a As String Dim b As Integer Dim c As String Dim d As String a = &HFF b = &H5F c = &H11 Do Until Timer2.Enabled Call RLeg_Up() Loop Call LLeg_Up() d = (SendWalk(0) Xor SendWalk(1) Xor SendWalk(2) Xor SendWalk(3) Xor SendWalk(4) Xor SendWalk(5) Xor SendWalk(6) Xor SendWalk(7) Xor SendWalk(8) Xor SendWalk(9) Xor SendWalk(10) Xor SendWalk(11) Xor SendWalk(12) Xor SendWalk(13) Xor SendWalk(14 ...Show All
Visual Studio Express Editions Chart Control
I have upgraded a VB 6 application that has a chart. The upgrade was successful but when I run the application I get the following error: System.InvalidOperationException was unhandled Message="An error occurred creating the form. See Exception.InnerException for details. The error is: Unable to get the window handle for the 'AxMSChart' control. Windowless ActiveX controls are not supported." Source="WindowsApplication1" StackTrace: at WindowsApplication1.My.MyProject.MyForms.Create__Instance__[T](T Instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 180 at WindowsApplication1.My.MyProject.MyForms.get_Form1() &nb ...Show All
Visual Studio Express Editions TreeView node and context menu
Hello, Can someone please share with me how I can detect which node the mouse pointer was at when a user right click and bring up the context sensitive menu What I am try to do is to apply the selected action from the context menu to the node the user right click on. Thanks for any input! That's good advise. Will keep that in mind and might try it out later. This is certaining a very useful idea. I had already implemented your first suggestion and it seems to be working fine so far. Thanks for the information. ...Show All
Windows Forms ListBox text alignment w/decimals
Hello out there. Populating listBox easily with Tostring. However, my decimals do not align neatly. For example: Item name Item Number 100.22 item name2 Item Number2 100.0 Item name3 Item Number3 100 How can I align numbers with two decimal places in a listbox thanks cPrince Yes that should be possible: For more information see this: http://msdn2.microsoft.com/en-us/library/0c899ak8.aspx Keep in mind, that you have to use 00 instead of ## at the end, because 00 will always display 2 digits: Example (14.2): ##.## -> 14.2 ##.00 -> 14.20 Could you give an example what you want to achieve, so I could give you better advice :) ...Show All
SQL Server in what situations principal database might become unavailable ?
Is it correct to say in any case exept when data or log file not available pricipal db will be availabe and manual failover could be done only from from principal ...Show All
Visual C++ Specify directory for CFileDialog
My on-line documentation for CFileDialog seems to suggest that there are two ways to set the initial directory for the file search. My problem is that neither approach seems to work. For each method, you first create a CFileDialog object and then you make some changes to its m_ofn member before you invoke its DoModal method. One curiosity is that there does not seem to be an m_ofn member, however there is a m_pOFN member which presumably points to the intended structure. OK, so I create a CFileDialog object, fdlg and invoke fdlg.DoModal(). It works as I had hoped. Next, I set (actually a strcpy operation into the existing buffer) fdlg.m_pOFN->lpstrFile = "D:/" and then invoke fdlg.DoModal(). It returns a "CANCEL" co ...Show All
Microsoft ISV Community Center Forums How do connect an Excel file from Remote Server
Hi All, I am creating one application in Excel. In this application One Excel file will be in the Remote Server.When one persone get log in then the file immediately has to link with this excel file which in the remote server. Now my question is - Is it possible to connect the Excel file from the remote server using VBA. Please any one help me to do this. i am searching this in lots of way. if not is it possible Access file. Kalidas Hello, sorry for the late answer. You should map that network drive from windows explorer-Tools-Map Network drive.. with a letter, say Y, and "Reconnect at logon" option for easy acces. Than you can use chdrive "Y:\....." path... ...Show All
Visual Studio How to enumerate all project/assembly references in a IVsProject?
I want to enumerate all project/assembly references in a IVsProject. How can I do it Is there any way to do it without using Extensibility (VSProject.References property) Thank you. The properties you see listed for the individual Reference nodes, are implemented by an IDispatch interface (The VSLangProj.Reference interface), which you could retrieve via the VSHPROPID_ExtObject. The class(es) that implement these reference nodes, typically just call into the base class (very similar to CHierNode::GetProperty). So you can't really pull a lot of useful data from the IVsHierarchy::GetProperty. But the IDispatch interface associated with the node, does have a number of useful properties on it. You co ...Show All
SQL Server SQL Server Management Studio - File Encoding
I have been searching the forums for this issue and I haven't found anything on it so I apologize in advance if this issue has already been covered. My eyes are droopy and the coffee supply is low. Is there a way to always save a file as UTF-8 or ANSI in SQL Server Management Studio In analyzer you could save as ANSI, etc. - d Hi, Originally I thought that my settings were saved, but once I opened mgt. studio again, I had to select the encoding again. This is annoying. If there is a setting somewhere that we can change to keep the encoding we choose as the default it would really help. - d ...Show All
SQL Server using DTS for reading Dynamic .CSV files from a Folder
Hi All, I have a challenge i am trying to overcome, hopefully soneone would have come across this issue before.. I am creating a DTS package that will be scheduled to run at a certain time everyday. A source folder exists that get a set of new files everyday.The DTS Package will then read each file and copy the data into a load table in my database the challenge is this: I am trying to load files from a source folder into my load table, Within each file, the entires are in a specific format using pipes to seperate the data that goes into which column e.g example of a file entry: column1 | column2 | column3 data1 | data2 | data3 data1 | data2 | data3 data1 | data2 | data3 And now i am using DTS to ...Show All
.NET Development Error: WSDLReader:XML Parser failed at linenumber 0
The system cannot locate the resource specified HRESULT = 0X1 Incorrect function WSDLREader: Loading of the WSDL file failed HRESULT=0X80070057: The parameter is incorrect Client one of the parameters supplied is invalid. HRESULT=0X80070057: The parameter is incorrect Thank you in advance for your help If your url in the production environment requries authentication, you will need to download the WSDL locally and pass the WSDL to mssoapinit as a static file. You can change the actual web service endpoint address via "EndPointURL" property on SOAPClient. mssoapinit does not support retrieving WSDLs from the urls that require authentication. ...Show All
Visual Studio Team System Area path security question
Suppose I have 2 nodes in my Area definition: Node1 en Node2 Area |--- Node1 |--- Node2 Members of groupA have the permission "Edit work items in this node" set to "allow" for the root area "Area" Members of groupA have the permission "Edit work items in this node" set to "Allow" for Node1. Members of groupB have the permission "Edit work items in this node" set to "Allow" for Node2. GroupB is NOT listed in the list of users and groups for the root area "Area" security settings. GroupB is NOT a member of any group that has permissions in the root area "Area". I was suprised that users of groupB were able to create workitems at all when using ...Show All
