bwvick's Q&A profile
Windows Forms Order of Data in the dataset
Is there any way to find out the order of the data in the dataset. For eg. In my dataset I have 2000 rows, I have following set of values 200 10 40 79 28 I can't do order by clause, because order by will keep on changeing with order by se ...Show All
Visual Studio Express Editions ListView question
How do I select a row in ListView control programatically When I fill a ListView with items, none of them is selected. I want to programatically highlight/select an item as if I had clicked on it with the mouse. Thanks... You can set the SelectedIndex property to select an item. This will select the first item in a listbox ListBox1.SelectedIndex = 0 ...Show All
Visual Basic REALLY Weird "Threading Problem" - Hard to explain
Hello all. I''m currently in the [process of making an audio player application that will read out MP3 tag information using the Speech library (the MS Text-To-Speech thing - like the one in control panel.) Well, I had built the application using the VB .NET 2005 Betas, and it worked fine throughout - no problems. I downloaded the final version of both the framework and VB IDE itself. I compiled & ran, and got some strange error that ...Show All
Visual Basic Problem - save files to new type and folder, Net 2005
Have folder of image files with .tif type. Need to save each file to: (1) .jpg type, and (2) a new folder. If I open the file manually and "Save as" to new file type .jpg, the file is saved OK and the file size is reduced from 1194 KB to 76 KB. MSDN article "How to: Save Files Using the SaveFileDialog Component" has sample code, but not exactly what I need. http://msdn2.microsoft.com/en-us/library/sf ...Show All
Windows Forms When will the WinForms control reflect the results of data binding
I have a CheckedListBox which draws its contents from a datasource, and this is set at design time. When the form loads up, there are 8 items in the CheckedListBox, but no matter where I seem to intercept events before the form appears, there&n ...Show All
Visual Studio Team System Data driving unit tests but not from database
I love that the unit test framework lets you data drive your tests using the Data Source value in the TestMethod attribute. However, I don't love the idea of driving it from a database table. Creating a db table and populating it for each of my data driven test methods is a pain. This is overkill for the job. What I really want to do is just create a CSV file that I can use as the data source. I can then put the csv right in the project beside t ...Show All
Visual Studio 2008 (Pre-release) There is event when server is closed that send to client ?
Hi I write server and client in wcf(indigo self host). Sometimes the server is failed. I want to know how client can to know if server was failed, without accept exception when i call the server. There is event when server is failed that the client can accept. Hi Oren, What do you mean by saying that the server failed Do you mean that the server ...Show All
Visual Studio 2008 (Pre-release) WPF not working at all in a Windows Service?
Hello, WinFX documentation states that WPF in the context of a service is not supported ( http://windowssdk.msdn.microsoft.com/library/en-us/wcp_conceptual/html/bf7c18db-fe5d-4f72-81c7-14079aa4ecf4.asp ). Imagine we want to develop a server application that can receive documents / print jobs in various formats load, manipulate, save images create and format flow / fixed documents print / archive documents It is requi ...Show All
Windows Search Technologies WDS web search results in Firefox
I'm having trouble getting WDS to provide web search results in Firefox. I understood this function was simply supposed to load up my default browser (firefox) and pass it " example query". This should go to my default search page and list results for "example query". However, I'm taken to the page "file:///C:/ %20example%20query" instead. If I type the string " query" into the location bar in FF directly ...Show All
Visual Basic Can i sell what i make
can i sell what i make with visual basic 2005 beta 2 App will not be time restricted but the IDE will stop working I think. Also, the license says that the end user has to obtain the target from Microsoft which means that the .NET Framework Beta 2 may expire which means that your app also does not work. A good idea would be to change the date on ur machine to May 1th 2006 and see what happens - that will elimin ...Show All
Visual Basic Windows Forms Problem
Am I going mad I have a form with a bindingNavigator bar and a bunch of text box controls. It appears that Click events on the bindingNavigator buttons fire before the control that loses focus fires the Leave and LostFocus events Is this behaviour by accident or design or am I doing something wrong The order of events posted is fro entering and leaving the same control... I would suggest moving your code to the validating event. ...Show All
Visual Basic Updating a dataset help...
Allright, well it seems simple enough, but I'm kind of stuck. First of all, I'm using VS 2005. I've run into trouble while trying to use the save on the navigator tool bar that automaticaly appears when you drop a table onto a form. After I delete a row from my table, I want to save the data; thus, I click the save button on the navigator toolbar. Here is the code that is automatically generated when the toolbar is created to handle the save ...Show All
Visual Studio Team System GenericMethodsShouldProvideTypeParameter false positives
The GenericMethodsShouldProvideTypeParameter rule generates false positives. The following methods do not require type inference but fail FxCop's test. public static void Foo<T>(IEnumerable<T> bar) { ... } public static void Foo<T>(T bar) where T : struct { ... } public static void Foo<T>(IComparer<T> bar) { ... } public static void Foo<TKey, TValue>(KeyValuePair<TKey, TValue> bar) { ... } C# has n ...Show All
Windows Forms DataGridView problems
So I use the VS2005 designer to lay out my columns for the DataGridView and all looks well in the designer. When the form loads I'm trying to fill the DataGridView and as far as I can tell (AFAICT ) I can either use a datasource or just try to work with the actual cells. The first method seems more natural so I'm trying to take that route (this is in the form.Load event handler): DataTab ...Show All
Visual Basic Graphics Manipulations
I am a vb.net 2003 user. I just checked out http://maps.google.com and am very interested in implementing similar graphic manipulation capabilities. They have a map that I can scroll a window into the larger image with the mouse. Precently, I use horizontal and vertical scroll bars and would be interested in knowing how to scroll a large image within a picturebox more efficiently. thanks, Put a PictureBox in a Panel then scroll ...Show All
