whenhowwho's Q&A profile
Visual C# How do I change values in a ListView programmatically?
I am writing a small program to discover devices on my home network by pinging the entire subnet, then reporting the results in a list view. There are other programs out there that do this already - this is just a learning project for me. I want to do this in a multi-threaded manner so it will be fast. I have the ping portion worked out, and I think I can handle creating the thread pool. My problem is that I want to list all of the IP addresses in the list view (so they will be in the right order) then have the list view update as nodes are found. It would look something like this: IP address Reply 192.168.1.1 ...Show All
Windows Forms detecting OS events
Hi guys, I want to write a program calculate the time that various exe programs are used in a computer. For example is a user opens MSWord then my program should be automatically started. And it should also get a notification when the user closes MSWord. Can this be done with win 32 API. Can you give me an idea on how to do this. Thanks a&nbs ...Show All
Windows Forms Extending DataGridTextBoxColumn
I am trying to use the extended DataGridTextBoxColumn that MS provided with the TaskVision sample project. In the code they use a DataTableStyles class with calls an extended version of the DataGridTextBoxColumn. The constructor accepts format as string but when I pass "c", my column does not format as currency. I also tried to add Alignment to one of  ...Show All
Visual Studio Express Editions urgent !!!!listbox inserting problem
hi everyone, I have a problem with manually inserting element into my listbox. There is the code I'm using: ListBox2.Items.Insert(0, ListBox1.SelectedItem) or Dim myItem = New ListItem myItem.value = "wisconsin" myItem.text = "Wisconsin" ListBox1.Items.Add(myItem) I've also tried using the add method but either way I do it it still insert the element twice in the listbox. Now I dont know if there is something I'm doing wrong or is that a bug. I'm using visual dev express 05 on windows xp pro. thk you. Have you put a breakpoint in the code I'd be willing to be ...Show All
Windows Forms Adding a blank selection to a databound dropdownlist
I'm databinding a DropDownList and need to add a blnak as a selection in the list (preferably at row 0) ... how can I do this Thanks for the help in advance, Cen To add a "select one" or blank record to a Databound DropDownList, change the DropDownList Property called "AppendDataBoundItems" to True. I believe by default it should be set to true. Why would someone add values and want the default set to false crazy ...Show All
Visual Basic Background image
How would you set a forms background image through coding not selecting it. Thanks ...Show All
Visual Studio Document Explorer Crashes on Search
Clean install of Windows xp Service Pack2, Sql Server 2005 Developer Edition installed, VS 2003 installed, Whenever I perfrom a search or filter I get Document Explorer has encountered a problem and needs to close. Document Explorer works fine for Sql Server Documentation, it only exhibits this behavior with Visual Studio Documentation and does not matter if it is launched from the IDE or from menu. Help!!! this is very frustrating. Thanks mgbee110: I've forwarded your question to the SQL folks. Hopefully we'll have an answer for you later today. Michael Blome Visual C# Documentation Manager ...Show All
Visual Basic back tab error from a empty number text box
i use vb.net 2003 at the empty number text box, when i use "back tab" command to go back to previous field, it prompts a error as follows. Unhandled exception has occurred in your application. if you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately. Input string was not in a correct format. it have three buttons for me to select, such as Details, Continue and Quit. When i click Continue and Quit, it quits the program. when i click the Details button, it shows the following. See the end of this message for details on invoking just-in ...Show All
Software Development for Windows Vista How Can I know the Icons that assisted with each Files Type ??
Hi I have List View control and I use it to load the files But my problem is when I try to add icon for each file .. because I don’t want to add any icon .. but I need to add the icons that assisted with the file in the operating system !!! So How Can I know or Get the Icons that assisted with each Files Type And thanks with my best regarding Fraas Sorry... try this link: http://www.vbaccelerator.com/home/NET/Code/Libraries/Shell_Projects/Getting_File_Icons_Using_The_Shell/article.asp ...Show All
Visual Studio Express Editions DataGridView changes not saved?????
Please help, I'm getting started with VB Express and Win Forms. I have run several examples where I change data in a DataGridView, and fields appear to have changed. Then I exit and restart and nothing was saved to SQL express DB. Then I tried Access mdb's, same thing, the changes don't take in the db. Very strange, no errors no nothing. Any ideas would be helpful. Thanks in advance! hi, its not a puzzle the problem in your databaase not in your datagridview, even time you run your program your database will be replaced by original copy without any changes so every time you runn your program you will not ...Show All
Visual Studio Team System Database scripts/ Projects in VSTS
We are using TFS as our SCM. We have ORacle database as well as Sql Server. Need to know how to create aproject for ORacle database projetc so that we can kepp all our scripts, stored proc etc.. in source control. Let me know Thanks If there is an Oracle project implementation available for VS, you should be able to use it and bind the project to TFS version control. Buck ...Show All
Windows Forms Windows XP look
What is the option to turn on so that controls on a winform show up with the Windows XP look You know, buttons, tabpages, etc thanks, joe For .NET Framework 1.1 it is: Application.EnableVisualStyles(); Application.DoEvents(); (The Application.DoEvents() methods is a cautionary measure which protects againt memory leaks and unexpected exceptions - details at http://www.codeproject.com/buglist/EnableVisualStylesBug.aspx ) For .NET Framework 1.0, you must use a manifest resource file, as detailed at http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnwxp/html/xpthemin ...Show All
Windows Forms How to Extract the Date From Datetime
In dt variable I have - 6/9/2004 2:36 PM I want compare it's only date part i.e. 6/9/2004 with today's date How should I do it The DateTime (structure it seems) supports the property Date for this purpose, several other properties exist. Take a peak on the help on DateTime! ...Show All
Windows Forms Passing parameter in Crystal Report
Hi all pro, I would like to seek for some professional regarding to the Crystal Report. I have created a report based on Parameter Passing. Whatever I pass it, it can't shown the correct result as well. Let's say for example, I have created one report which has to be filtered by selection criteria. Let's say i have using Sql server 2000. I have created one database which query the result based on "item", which has the fields of (itemcode, itemdesc,date), the itemcode which has a database type of varchar datatypes if I want to create a report using Crystal Report which let the user select the range from xxx to yyy, the ...Show All
Windows Forms DatagridView mysteriously makes existing display values blank when new row is added
Hi, I have worked with DataGridView and never faced this problem and I think it may have something to do with a property which is set differently.. I set the values in a particular cell with a call as follows: dataGridView1.Rows[RowIndex].Cells[1].Value = "An Example String"; This works fine. However, when I add a new row, any previous rows suddenly become blank. dataGridView1.Rows.Insert(dataGridView1.Rows.Count - 1, 1); &n ...Show All
