Chris4578's Q&A profile
Visual Studio Express Editions Add progress bar to html downloader
I have this code to download a file from the web. Try My .Computer.Network.DownloadFile( "http://rapidshare.com/files/14335493/Epic.Movie.TELESYNC.XViD-FuZe.part1.rar" , "c:\Epic.Movie.TELESYNC.XViD-FuZe.part1.rar" ) Catch ex As Exception MessageBox.Show( "Reason: " + ex.Message, "Could not copy File" , MessageBoxButtons.OK, MessageBoxIcon.Exclamation) End Try But now i want to know if you can add a progress bar and find out the size of the file and the speed it is downloading. Shirvo, Please take a look at the following link, there is a Download Progress Indicator Technology Sample . http://msdn2.microsoft.com/en-us/library/t8w6 ...Show All
Visual Studio Tools for Office Developing for both 2003 & 2007 with VSTO 2005 SE
Okay, maybe this is a stunned question, but I want to make sure I'm crystal clear before I head too far down the wrong path. I did a search, and I understand all but one thing... I want to make an add-in for both Outlook 2003 and Outlook 2007. I *do* understand that the best (only ) approach is to make a "stub" add-in for 2003 and another "stub" for 2007, and have them each call into common assemblies. No problem there. On my development machine, I have Office 2007 installed. That means I don't have the Office 2003 PIAs (since you can't have both Outlooks installed at once). So if I make a new VSTO 2005SE project for an Outlook 2003 add-in, it obviously bitches that it can't find the Office 2003 PIAs. My question is: is ...Show All
Windows Forms Accessing objects on a form via a class
I have a form with a text box and I need to access the textbox and some other events within the form class from a seperate class. How can I get access to that textbox The form is making a call to a method within the class class.getCommand(command); and then the getCommand method needs to be able to modify the textbox within the form. Any suggestions would be great! Thanks! Scionwest Hi, this overview and sample may point you in the right direction: http://themightycoder.spaces.live.com/blog/cns!EBFBA22CD769E10B!144.entry Mark. ...Show All
SQL Server Full-text catalog population issue (Content Index has been shutdown)
Hello all, I am trying to build a full-text search index on a table that contains about 33 million rows. Unfortunately this is not working as expected. As suggested in a msg in the event log I took a look at the .gthr file with the gthrlog.vbs tool. But I am still not any wiser, I cannot find more info on the error that I'm getting. For readability reasons I will post the full content of the resulting log in a reply to this message. Thanks in advance to anyone who can help me out with this issue. I already tried: deleting and recreating the catalog DBCC CHECKDB - no issues found Some more info: I am trying to build an index of a varchar(6000) column I have a primary key constraint (clustered) on one column (int, identity increment 1) the ...Show All
Visual C++ Adobe\Acrobat 7.0\ActiveX\pdfshell.dll appearing in my executable
During execution under the debugger of the debug configuration of MyOgm, I see the following in the output window. 'MyPgm.exe': Loaded 'C:\Program Files\Adobe\Acrobat 7.0\ActiveX\pdfshell.dll Since I am not using pdf or ActiveX in my program, where did this come from Is VC++ linking it into MyPgm How can I remove it, and all similar baggage pdfshell.dll does not appear as a linker input, either in the project or in my library which it uses. Dependency Walker does not show pdfshell.dll in its list of modules. A quick Google search doesn't turn up anything useful. Any other suggestions If I had to guess, I would suspect htmlhelp.lib, which is one of the additional linker inputs. ...Show All
Visual Studio 2008 (Pre-release) TextBlock versus Label
What is the difference When to use one versus the other Unlike Label, a TextBlock element can do ... Thank you in advance for your help. Pradeep Lee, Thank you for your help. I am still confused. I can display paragraph, etc. in a label as well. If I want richer text, I would use RichTextBox. There must be something a TextBlock can do that Label cannot. Regards, Pradeep ...Show All
.NET Development hi!! plz hurry up help ....i have a queue linklist data structure..
hi!! plz hurry up help ....i have a queue linklist data structures.......now in this queue objects are being stored.....problem arises when........i use the peek() function returns the object from the begining of the queue ,,,,,means it returns the first object ,,,,,but i have to returns all the object means first object ,second object ,third object,,,,in this queue,,,,,is there any function in c# which returns all the objects of queue or is there any way to do it..plz write a code in this respect,,,,,,,,,,,, thank u... You can read any of the data in the Queue by using an enumerator. Suppose your Queue is called q. The following code prints each member of the Queue without removing them. System.Collections.IEnumerator en = ...Show All
Visual Basic Program Execution Speed
How can i measure how long each part of my program takes to execute, so i can know where the slow parts are I am trying to find out what parts of my program are slow so i can make them faster. Private Sub Test () Dim StartTime As DateTime = Now 'DoSomething Dim ExecuteTime As TimeSpan = Now . Subtract ( StartTime ) Debug . Print ( ExecuteTime . ToString ) End Sub ...Show All
Visual Basic Dos batch stops on error (using Process.start method), how do I continue on error?
I have an applicaion that starts batch files on a schedule, the problem is when the application has an error the process stops. Example, the batch file gets an error "File not found" this causes the application to stop processing the batch file. When the batch file is run by itself in a command prompt it works fine, it shows the error and continues. Here is some of the code, stateInfo is a class containing the information for the job, ...Show All
Visual C# report logging
hey guys, i'm relatively new to c# and i've got a important project using c#.. why blame my school.. anyway, the project i'm working on, involves the saving of Logs.. for reference.. however, these logs only store 1 entry at any given time. should there be more than one user accessing the database at one time, it might cause the system to crash. it'll be so darn helpful if anyone can tell me what method i should do and stuff. or perhaps a certain phrase i can use to search up on relevant information. i'm in need of help badly.. thanks in advance. you can probably easily create the methods to insert data into the database.... create a method that splits the entries into fields by the comma seperator for exampl ...Show All
Visual Studio 2008 (Pre-release) Loading Specific Parts of Model Metadata Into an ObjectContext
Loading an ObjectContext with an entire model's metadata is a costly operation. NHibernate allows me to explicitly add specific pieces of metadata into its object context. I deeply appreciate this feature since it allows me to significantly truncate the time and resources needed to instantiate a context. This is especially useful in session-per-request scenarios in web apps. Is this ability also in ADO .NET Orcas' ObjectContext class or the metadata containers that it uses I don't see that you've really got an option but to deliver more performance with the metadata system for ADO .NET Orcas RTM. Well, I suppose you can, but NHibernate bloggers might have a field day with the inability for a well-funded, a ...Show All
Visual Basic How do I get all declarations in my IDE Method dropdown
I am fairly new to VB.Net 2005 - just installed it before the holidays and now I am converting old vb.net 2002 code to 2005. I have however worked with 2002 and 2003 for some time now. In the 2005 IDE I do not see all my declarations of code modules. I have the form selected in the class drop down but only some declarations show in the method drop down, not all of them that are in the form. 2002 and 2003 displayed all subroutines and funtions so is there a setting in the VB.Net 2005 IDE that will let me see all of the functions/subroutines that are in the form Thanks The methods that do not appear are all the ones that the system creates for you when you want to use an event for t ...Show All
.NET Development ftp sockets in c#
hello sir, iam using ftp server(c#), thru my client ftp program is connected to remote server ftp. but iam unable to access like listing files in the remote host, uploading and directory creation and removing . Is that do we need any permissions for doing above operations. my ftp client program is connected to remote server thats sure. but iam unable access the ftp commands mentioned below. means it showing like acces denied. iam using .net ver 1.1 i was written the in console application. any need to give permissions for the oprations like mkdir , upload, download to operate in the remote machine ...Show All
SQL Server DB Primary Key question
I am using the ASP.Net 2.0 Membership tables and would like to add my own User_Profile table and connect it back to the aspnet_Users table. Usually I always have the Primary Key be the same as the table name for example my User_Profiles table would have a UserProfileID, my Languages table would have a languageID. In this case I found this sample The first - which affords the greatest flexibility, but requires the most upfront effort - is to create a custom data store for this information. If you are using the SqlMembershipProvider, this would mean creating an additional database table that had as a primary key the UserId value from the aspnet_Users table and columns for each of the additional user properties. In th ...Show All
Windows Forms Updating a databinding
Hello. I have a ComboBox binding a DataTable, when i changes the values in the DataTable ... i don't see the changes in the ComboBox. Why Too, i have several ComboBox binding with a BindingSource, and it binding to a DataTable, and when i changes(add or modify) values in the DataTable ... i don't see the changes in the visual components. Why :( Regards. Um, no. That is not correct. You don't need to .AcceptChanges() (and in fact if you are saving your data to a backend database, you certainly do not want to do an .AcceptChanges() before you save the data). Could we see some code as to how you're doing your databinding Something must be wrong somewhere. ...Show All
