akuhad's Q&A profile
Visual Studio Team System How to avoid explicit interface member implementation
Hi,David,thanks a lot for your help. now, i have a new problem to ask for help from you! my rule is : Avoid explicit interface member implementation,except that If a class implements two interfaces that contain a member with the same signature. and ,how can i check it. thank you. Hi.Todd, I think you are misunderstand my meaning. i just want to check if a method implemente from more interface,and have the same signature. EX: interface ICloneable { object Clone(string a); } interface IComparable { int CompareTo(object other); object Clone(string a); } class ListEntry : ICloneable, IComparable { object ICloneable.Clone(string aa) { string ...Show All
SQL Server @@IDENTITY in code
Hi all, I encountered a problem with SQL server mobile. I am inserting a row inside a database table through C# code and need to obtain the ID of the last inserted row if successful. I have the following in my code: SqlCeHelper.ExecuteNonQuery(connectionString, "*INSERT STATEMENT*"); Int64 id = (Int64)SqlCeHelper.ExecuteScalar(connectionString, "SELECT @@IDENTITY"); The variable id always ends up NULL. Is this the correct approach to this Is there anything else I can use to obtain the id of the last inserted row in SQL server mobile -- The class SqlCeHelper is a wrapper that I wrote, it works 100%. Thanks Hi, No...unfortunately SQL mobile doesn't support the function. I though of the two ...Show All
.NET Development .NET remoting general
Hi, I am new to .NET remoting. I need to have a feature where everytime there's an update, the server will push the update to the clients (win form application). Can I do this with .NET remoting Any helpful links or tutorial will be appreciated. Devi Hi Sundar, Thank you for the reply. If I am not wrong, I think the App Updater Block is very similar to ClickOnce feature that is available with Visual Studio 2005. Your solution might not work for my requirements. If there is an update we want all the clients to get the update right away, we need them to run the same software, same resources all the time. We are not sure if the app will be re-launch everyday, the user might keep the computer on for a whil ...Show All
Visual Basic Assigning a currency value to a radio button
Hello, I'm very new to programming and I am starting to grasp the concept. But I can't figure something out, how to assign a property to an object once that object is activated. For example assigning a currency value to a radio button once that radio button is CheckedChanged VisualStudio 2005 VisualBasic It sounds like you have a situation where you have several option buttons and want to select the appropriate box based on the currency value in your data store. You can't directly bind to the collection of controls. You will need to programatically set the checked button yourself via code. One option would be to have a text box on your form located at -100,-100 and bind the currency value to the text box of ...Show All
Visual C++ MoveWindow MFC Method
I have an OnInitDialog handler which uses MoveWindow MFC method to intialize the dialog's position and size on program start. This works. I have a OnDisplayChange handler for the WM_DISPLAYCHANGE message that uses MoveWindow to reposition and resize a dialog based upon the display orientation. I have a 3 second sleep at the end of the OnDisplayChange handler for testing. During the sleep, the dialog is in the correct position and is the correct size. However, after OnDisplayChange exits the dialog is moved to a new size and position which is incorrect. Does someone know what is going on Thanks Hello Re: MoveWindow MFC Method The more appropriate place for your question is prob ...Show All
SQL Server Restoration of publication database backup
When I tried to restore backup of publication database, time taken for restoration is too long [ 4 hours]. The actual database restore takes only 20 minutes but the stored procedures used for cleanup replication takes the remaining time. Is the issue related to my environment or the cleanup replication stored procedure i have a restore going on for about 3-4 hours. my db contains not more than 100 records thats too much i should say maybe 50. and number of tables is 10-15, about 10 stored procedures. sql server enterprise , lucky i tested this backup/restore with this small db. Any latest news about taht thanks. ...Show All
Visual FoxPro How print continually in VFP?
Hi all, How print report continually in VFP (no eject after print finish) Thank! Hai, If u are not using VFP9 or if u dont want to use the reprot writer then write a program to print to a dos text file eg. if u have a employee.dbf with empid C(5),empname C(30),dept C(5),desig C(10),netsal N(12,2) then your program will be clos all clear private nrou nrou = 0 set device to file empdet.txt sele a use employee shared alias employee go top do while !eof() @ nrou,000 say emptid pict '!XXXX' @nrou,007 say custname pict '@!' @nrou,040 say dept pict '@!' @nrou,047 say desig pict '@!' @nrou,059 say netsal pict '999999999.99' nrou = nrou + ...Show All
Visual Studio vs2k5: Symbol not found error with web service
Attempting to step into a web method, receive: "Unable to automatically step into the server. Unable to determine a stopping location. Verify symbols are loaded. Symbol not found: Service.HelloWorld()." I notice though there are .PDB files in the virtual directory for 2 DLLs that the web service is dependent on, there is no .PDB file for the service's own App_Code.dll file. Since the PDB file contains 'symbolic debugging info' I wonder if that's the cause of the error. Do web services emit PDB files, or do they work entirely differently I do not see anything in the property pages of the web service project addressing debug build configurations etc. like in other project types. Am I mistakenly NOT getting a debug build of the web service An ...Show All
SQL Server SQL Server 2005 Full text Search (extract pieces of text using IFIlters)
Hello everyone ! Reading some articles on the web, I realized that to use SQL Server 2005 FTS (i think 2000 it's almost the same) you can index files like Word Documents, PDF, . . . that are stored in a SQL Server field. I know that, to index that, sql server use IFilters to create the index with words that are inside the documents (.doc, .pdf). I would like to know, if it's possible use IFilters to extract pieces of text from the documents using IFilters. Example: I have a ASPX page with codebehind in C# making the search in a table in SQL server 2005 that is full text indexed. I make a search looking for the word "peace", than SQL server will take care about the search and return it to me the rows that mat ...Show All
Windows Forms Listbox and SelectedItems
I searched for some information regarding listboxes on this forum and saw the following code: Dim items(ListBox1.SelectedItems.Count - 1) As String Dim index As Integer = 0 For Each item As Object In ListBox1.SelectedItems items(index) = item.ToString() index += 1 Next 'for test For Each item As String In items MessageBox.Show(item) Next When I tested this, the message box showed "System.Data.Datarowview". Why wouldn't it show the actual items that I selected in the listbox. if its bound to a datasource then I guess my suggestion would be to have direct access to the datasource and get the value you want by giving it the inde ...Show All
SQL Server how to connect to SQL server express 2005 database at the same time from both SSMSE and VB2005 application ?
Here is the situation: I have SQL server express 2005 installed on my pc as instance SQLEXPRESS. I have created a Visual Basic applicaion with the following as connection to the SQL server express 2005 running on the same PC: **************************************************************************************************** Dim lconnectionString As String Dim builder As New SqlConnectionStringBuilder Dim cmd As New SqlCommand Dim reader As SqlDataReader Dim parameter As SqlParameter builder("Data Source") = ".\SQLEXPRESS" builder("Initial Catalog") = "" builder("AttachDbFilename") = "C:\My Documents\Visual Studio 2005\Projects\abc\abc\abc.mdf" builder("Integrated Security") = True builder("User Instance") = Tr ...Show All
Windows Forms URL Variables
I'm passing a variable from an .asp page to a html page through the URL. Is it possible to use that variable in my html form The form will only work as a html file so .asp n .php is out of the question the url is as folloes: www.mywebsite.com id=3 Is it possible to just display the full URL in 1 of the forms text input boxes Thanks Col This forum contains questions and discussions about Microsoft's .NET Windows Forms controls and features. These posts should contain programming questions only. If you have questions regarding ASP.NET and WebForms, please visit the ASP.NET forum: http://forusm.asp.net OTP ...Show All
SQL Server SSIS..Problem Parsing FlatFile Source
I'm trying to Move data from a FlatFile Source to an SQL destination row delimiter {LF} Column Delimiter is "comma" Number of columns in each row : say 7 Example Rows Example 1: 1,1,1,1,1,1,1{LF}2,2,2,2,2,2,2{LF}3,3,3,3,3,3,3{LF}4,4,4,4,4,4,4{LF} Example 2: 1,1,1,1{LF}2,2,2,2,2,2,2{LF}3,3,3,3{LF}4,4{LF} There is no problem parsing Example 1: With Example 2. The Old DTS used to parse fine..when it encounters a row delimiter it fills the rest of the columns with null... While the New SSIS flat File source is following column count in each row...and is considering " 1{LF}2" as column item rather than a row delimiter... Is there any way around it or is it a bug Thanks for any help in advance ...Show All
Visual Basic Storing HTML source in string then saving
I need to open an HTML file as plain text, and store its contents in a string. I wrote some code to make minor changes to the string Then I need to save the string into a NEW html file. How would I go about doing this Hi, I would look into using StreamReader and StreamWriter mainly and maybe the String.Split method. See the url links in my post in this thread.>> http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1135010&SiteID=1 The MSDN library is a great resource for help on commands etcetera.>> http://msdn.microsoft.com/library/ Regards, S_DS ...Show All
SQL Server Sql Server 2000 to SLQ Broker - newbie question
Hi! I have a legacy database in SQL 2000 which I want to submit transactions thru triggers to SQL Broker, until I eventually upgrade this db to 2005. Can you tell me if this is possible Thanks Remus, just realized i'm not being clear as to my intent. Have SQL Server 2000 database on one server. I want to install 2005 on another server, write some triggers/sp's on the 2000 version to "talk" to the Service Broker on the 2005 version. Is this possible Thanks! ...Show All
