Izzy545's Q&A profile
.NET Development fast ping
Hi, I need to write a fast ping program to ping class C & D IP addresses. I have written a piece of code to open a socket, connect to it and receive data from it with a timeout. This is fast enough for a few IP addresses but I would need to ping 255x255 IP's. I have put this code on a separate thread which calls an asynchronous method to loop over the IPs. This is taking a minute for each set of class D IP's. How do I make it run faster Thanks PS: I am using the 1.1 framework do you mean socket shutdown... can you give an example of how i can do it. how about using icmp.dll, do you think that will be faster... apprec ...Show All
Windows Forms CollectionEditor questions Names in left pane
Hello all, CustomItem is a class which inherits Component. I then created a strongly typed CustomItemCollection which inherits CollectionBase. Next, I wrote a custom editor which inherits from CollectionEditor. It works well except that I can't figure out how to access the (Name) property in the PropertyGrid. I would like to change the names in the left pane away from Class0, Class1, Class2, etc. based on one of the properties in my CustomItem class. Thanks in advance for any ideas and/or suggestions. Hello mangelp, I believe GetDisplayText is VS2005, we are still using VS2003. I can't use the default because I need to change it after one of my properties has been set. Thanks for the response, ...Show All
Visual Studio diff chain size mismatch
Hi What is the cause of the error. We use VSS2005: There is a diff chain size mismatch in file 'abc.asp' (ebseaaaa) at version XX We are getting these error. and we can fix them with ssarc, but it’s loss of data, so how can we prevent them All files is UTF-8 so is it a bug or something Please help Kim Thanks I've got the hotfix, but don’t know if solves the problem. only time will tell. Regards Kim ...Show All
SQL Server Mapping of variables while passing a resultset to foreach
I have an Execute SQL Task1 that executes an extraction stored proc (say spe). spe returns a rowset that has 25 columns. For each row in the rowset, a load stored proc (say spl) has to be executed (spl is executed using Execute SQL Task2) . spl has 25 input parameters that match the 25 columns returned by spe (the column names returned by spe and input parameter names of spl are exactly same). To achieve this, in Execute SQL Task1 , I had to specify a variable in the Result Set (say User::resultset). After declaring 25 variables, in the foreach loop editor, I had to specify the Variable Mappings of these 25 variables to the column indices of the rowset returned by spe. After this, in Execute SQL Task 2 I had to specify in th ...Show All
Visual Studio 2008 (Pre-release) Vertical lines in the GridView
May be I am missing something, but I can't get the ListView with GridView to display vertical lines. -Alex LOL, I was trying to do the same thing last night- It is not supported. Adding a border around each cell kinda works, that is until you resize a col.... ...Show All
Software Development for Windows Vista How to create Wizard using Workflow?
Hi, I want to create a wizard for stepping through few steps of account opening. Application should be windows forms application but i want to incorporate Workflow as well to add some flexibility in to my application. Any idea how can i do that Any sample that I can look in to Thanks, Hiten Hi Vihang, I think the need is not for workflow is created using a wizard. It is about getting the workflow features in a custom wizard. Thanks -Advait ...Show All
Windows Forms Change the explorer shell by my clickOnce application...
Hello, I would like to replace the explorer shell on HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Winlogon for my clickOnce application. I try with name of the shortcut and it doesn’t work... Does anyone have an idea if it is possible and if yes how Thanks, Felix ...Show All
Visual Studio VS 2005: Panel sizes lost after VS is reponed
I've got a frustrating problem with VS where the panels (toolbox, solution explorer, ex.) are all shrunk as far as they will go every time I open VS. It happend right after trying to use Installshield 12 in TFS but thats a whole other story. I've tried deleting the settings file which obviously had no effect or I wouldnt be here. Any suggestions would be greatly appreciated. Thanks ...Show All
SQL Server Strange problem with mining model node_distribution.Attribute_value and its probability
Hi, all here, Thank you very much for your kind attention. I dont understand another problem within my mining model. When I query the mining model content ,finding that the same attribute_value have different support and probability for the same node within my clustering model. Why is that Really confused. And really need help for that. Thank you very much in advance for your help. With best regards, Yours sincerely, This is my guess as to what is happening based on your other posts. Guess #1 - you are using an OLAP Mining Model Guess #2 - you have a nested table Guess #3 - the level which is the key of the nested table has duplicate string names with different ids If all of these guesses are correc ...Show All
Visual Studio Trapping window messages in Visual studio
Hello, I am trapping Windows events in visual studio editor. For that I have subclassed editor's main window. I have registered active view at the time of window activation event. public void OnConnection(object application, Extensibility.ext_ConnectMode connectMode, object addInInst, ref System.Array custom) { applicationObject = (_DTE)application; EnvDTE.Events events = applicationObject.Events; windowsEvents = (EnvDTE.WindowEvents)events.get_WindowEvents(null); windowsEvents.WindowActivated += new _dispWindowEvents_WindowActivatedEventHandler(this.WindowActivated); MSVSIP.Helper.ServiceProvider sp = new MSVSIP.Helper.ServiceProvider((Microsoft.VisualStudio.OLE.Interop.IServiceProvider) this.applicationObject); vsTextMgr = (IVsTextManage ...Show All
.NET Development Problem using URI with FTP and DownloadFile
I need to download a file using the FTP protocol. The port will not always be 21, so I can't use the DownloadFile method "directly" since it has no port paramter. The method does however allow passing in a URI object, which has a "Port" member. So, I use a UriBuilder as follows: Dim U As New UriBuilder U.Host = " ftp://ftp.microsoft.com/ " U.Port = 21 U.Password = " anon@anon.com " U.UserName = "anonymous" U.Path = "Softlib/index.txt" My .Computer.Network.DownloadFile(U.Uri, LocalFilename, "anonymous", " anon@anon.com ", True , 500, True , FileIO.UICancelOption.ThrowException) I'm getting the message "Invalid URI: The hostname could ...Show All
Visual C# List view and icons
How to display icons next to items in a Details listview using VS.NET 2003 did you mean some thing like http://www.codeproject.com/cs/miscctrl/EXListView.asp http://www.codeproject.com/cs/miscctrl/XPTable.asp ...Show All
Visual C++ Optimizing Link Times
I'm trying to merge our multi-dll project into a single EXE to get more advantage out of LTCG. The problem I'm having is that making this change has taken link times from 20-30 seconds up to 2:20, without enabling LTCG (in a debug build). I have incremental linking and use library dependancy inputs enabled, and with the uber-verbose output, it appears to be functioning. My final exe size in debug is 38 MB, and my .ilk file is 127 MB. Are there any optimizations I'm missing that could get my link times back to a reasonable speed, or is this about what I should expect for this size project Thanks, Chris Sorry if I wasn't clear, but I'm seeing the slow builds without enabling LTCG, with incremental linking a ...Show All
Windows Forms Severe bug with multiple TextBoxes in FlowLayoutPanel?
In a FlowLayoutPanel I am adding a number of UserControls. Each of these has a TextBox in it. So the result is a strip of controls with TextBoxes running vertically down one side of the application which this is all situated within. This is fine. However, initially clicking on any of the TextBoxes (inside one of the Controls, in the FlowLayoutPanel) other than the topmost (first added) causes odd behaviour. The cursor appears in the TextBox I clicked into, but typed text appears in the topmost (first added) TextBox - where it remains. Clicking on the same control, or any other at this point, resumes normality and cursor+text are together in the correct TextBox I'm trying applying Focus. Seems like it's a bug in the FlowLayoutPanel as there ...Show All
SQL Server Poor performance processing data
I have a problem with performance during cube processing (using ProcessData). When I start processing a number of partitions (in parallel), the network utilisation is initially 100%. Over the next 30 minutes the network utilisation drops to 10 % on the AS box. I have checked the database server and it is a similar story there. The processing eventually completes after a number of hours. Way over what our existing AS 2000 setup would take. In order to checkout my setup I wrote a .Net 1.1 utility which runs the partition queries in parallel and writes the data to file. It is able to max out the Network utilisation for the duration of the queries on both the AS and SQL boxes.(5 in parallel, totalling 250 million rows came accross in ...Show All
