Bradley Reynolds's Q&A profile
Windows Live Developer Forums favorites api
Is there a Web Service API available to retrieve Windows Live Favorites ...Show All
Windows Forms Loading Image (Visual C# 2005)
Hey, I after these lines of code what should I put to make it load the image into a PictureBox openFileDialog1.DefaultExt = "*.gif" ; openFileDialog1.Filter = "Gif Images (*.gif)|*.gif|JPG Images (*.jpg)|*.jpg|TIF Images (*.tif), (*.tiff)|*.tif|PNG Images (*.png)|*.png|BMP Images (*.bmp)|*.bmp" ; openFileDialog1.InitialDirectory = "MyDocuments" ; openFileDialog1.CheckFileExists = true ; openFileDialog1.CheckPathExists = true ; Thanks :) oh, thats why, it is Visual basic code... hmmm...I will try to convert it in my head...lol..hmmm oh, C# right there..ok thanks guys I will try it EDIT: error: 'System.Windows.Forms.PictureBox' does not contain a definiti ...Show All
Visual Studio Express Editions missing output window
Hi all I seem to have a problem getting even a basic console app to work properly. The build goes fine without any errors, but there is no console window appearing. I am not sure what has happened, as Visual C++ Express was working fine last time I used it,about a month ago. The only thing new that I changed was to replace my old CRT with an LCD monitor. I have tried to make a "Hello World" console app just to test and see if it will display. Thanks hello I have tried to make a "Hello World" console app just to test and see if it will display. I assume this test failed to display the console window. Try to use task manager to see if your program is running after you exec ...Show All
.NET Development Missing DWMAPI.dll causes problem with COM interop in c#
I have recently installed IE7, and am now experiencing a problem with COM interop in one of my c# projects. It seems that there is a dependency on a dll called DWMAPI.dll from the COM dll. I have read a bunch of posts about similar problems, and it seems this dll comes with Vista, but is missing on XP machines. For some reason, installing IE7 makes it become a dependency for things like .NET interop. The only solution I have been able to find in the forums and posts is to uninstall IE7. Microsoft has not yet posted anything that I could find in regards to this issue. Does anyone know something I don't Any help is greatly appreciated. Thanks, Dan No, the problem isn't with access rights to the regi ...Show All
Windows Forms When does Form.Load event get raised?
When is the Form.Load event getting fired I cannot find explicit information about this from the web. Is the event handler of this supposed to be the best place for changing the state of any controls, like aTextBox.Text Will this event get fired by the VS.NET designer Will this event get fired in _any_ other occasions I would like more information about the raising of this event. I need to find out basically what the difference is between putting code in Load event's handler, versus putting code in the Form's constructor after the InitializeComponents() line, and try to avoid the code to be excuted inadvertently more often than intended should I put it in the event handler. Thanks a bunch! What about User ...Show All
Visual Studio 2008 (Pre-release) [Serious BUG] WPF doesn't paint anymore (lost DirectX ?)
I was upgrading my application to the latest bits (June CTP) when I encountered a very strange bug. My application first loads a NavigationWindow, and let the user toy around with some menus. Then, the window gets closed and a "regular" Window shows up. When the "regular" Windows gets closed, my application creates a new NavigationWindow and shows the same menus as before to the user (who has an option to quit). There's a huge bug in WPF with the third step (which was working in the previous build - beta 2 I think). The NavigationWindow shows up, but its contents don't paint. (more precisely: I get the "hall of mirror" effect, which you get when you forget to write your WM_PAINT handler in a non-WPF applicatio ...Show All
Gadgets Can I pay someone to build a gadget for me?
I would like to have a gadget that will allow me to watch IP cameras on my sidebar. I use Axis IP cameras around my home and would love to be able to have them on the side bar with the ability to click on it to enlarge. Is this possible Sure that wouldnt be too difficult, you could have it so you click it and the flyout opens with a bigger image, or you could undock it and have it enlarge. I could probably whip one up fairly quick if you give me an example of a stream (as i dont have an Axis IP camera myself. ...Show All
Visual C# Compare ArrayList
Hello, I have 2 sorted array lists. e.g. arrayList1 = a,b,c,d,e,f,h,k,l and arrayList2 = a,c,d,f,g,h,i,j ArrayList1 contains the list of strings that are to be compared against. Unfortunately there are thousands of strings in each. So I don't know if it would be any good doing something like; does arrayList[0] == arrayList[0]||arrayList[1]||.... (in a loop of course). Another thing, arrayList2 is getting its (distinct) data from a database so I can't really check it against arrayList1 there and then, as it would leave the connection open for longer... I don't know maybe this is an ok trade off I don't suppose there is an efficient arrayList1.compare(arrayList2) method out there ...Show All
Visual C++ Add function or variable bug
I open VS2005. I create a Class Library CLR project. A default class is created called Class1. I go to Class View. I click on Class1. I right click and choose "Add | Add Function..." and receive an Error message box with the message of "A Runtime Error has occurred. Do you wish to debug Line: 842 Error: 'ParameterTypeValueLength' is null or not an object." If I then click No I am taken to another Error message box with the message of ""A Runtime Error has occurred. Do you wish to debug Line: 498 Error: Object doesn't support this property or method." If I then click No I am taken to the "Add Member Function Wizard". Is this a known bug Never mind. I soon as th ...Show All
.NET Development General Question "Practical use of BitArray & BitVector32"
I'm studing for the MCTS and was reading over BitArray and BitVector32 i understand what they can do...But my question is how can they be applied in a Application what pratical use do they have Can a BitArray be applied to an object like a ComboBox,TextBox etc and when a Bit returns "True or False", different information is supplied in the ComboBox and vice versa.. Those classes are used when you must do bit-level operations to some data. Usually bit-level modifications to data are made in byte level using mask bytes and binary operations, but in some cases using BitArray and BitVector32 it can be more illustrative, than more or less cryptic masking operations. I don't know if there ...Show All
Visual C++ Monitor a variable for the entire execution
Hi, I was wondering if it possible to monitor the values of a variable for an entire execution of a code - for example I would like to know what is the maximum value that a variable takes for a particular execution cycle. I could do that with changes in my source code, but is there any easier way for this - because this thing comes up quite a lot many times and i would not like to add a few lines each time i need to monitor a variable. Is there any such option while debugging thanks. Other than manual observation through a debugger or with a trace, you cannot do this without adding more code. (Writes to memory locations cannot be caught by your own program.) In VC++ you can use __dec ...Show All
Visual Basic Why doesn't dataadapter.update(datatable) work?
I am trying to update a single table in an Access database. Heres my code: Dim strSql As String = "SELECT * FROM ProductDB" Dim da As OleDb.OleDbDataAdapter = New OleDb.OleDbDataAdapter Dim builder As OleDb.OleDbCommandBuilder = New OleDb.OleDbCommandBuilder(da) Dim dr as DataRow da.SelectCommand = New OleDb.OleDbCommand(strSql) da.SelectCommand.Connection = conn da.UpdateCommand = builder.GetUpdateCommand da.InsertCommand = builder.GetInsertCommand da.DeleteCommand = builder.GetDeleteCommand dr = dt.NewRow ' dr.BeginEdit() 'Superfluous dr.Item(0) = txtName.Text dr.Item(1) = txtBrand.Text dr.Item(2) = txtWeight.Text dr.Item(3) = txtColor.Text dr.Item(4) = txtPrice.Text ' dr.EndEd ...Show All
SQL Server Loop Through Flat Files Based On A Date Range
Hello, I currently have a For Each File container that loops through all files from a specific directory. The files have a naming convention that looks like this; CDNSC.CDNSC.SC00015.01012007 The last segment of the file name is the date of the data in the file (mmddyyyy). The create date for these files is always a day later than indicated in the file name. What I would like to do is to have more control over the 'range' of files that are looped through by using the date portion of the file name to define what group of files should be looped through. Ideally, I would like to have a 'StartDate' variable and an 'EndDate' variable that I could define at run time for the package, and the package would loop through all of the files ...Show All
Visual Studio Team System Data Generation Crach CTP5
While doing a data generation visual studio will crash. It only crashes when it reaches certain tables and this issue does not pertain to smallmoney issue raised in earlier threads. As anyone else experienced this issue Thanks for the hard work fellas, Pete Orologas Neudesic ################################# Here is one table it hates ################################# USE [Curriculum_Test] GO /****** Object: Table [dbo].[CourseYearCrossList] Script Date: 10/03/2006 17:48:48 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo] . [CourseYearCrossList] ( [AcademicYear] [smallint] NOT NULL, [CourseRowID] [uniquei ...Show All
Windows Forms access in another form
I have a datagridview and a button in one form named f1 when user clicks on button, i want to open another form containing the list box with column names of datagridview in form f1 how can i do it you would pretty much need to pass the appropriate parameters to the other form. So in your other form, you may have something like: private DataSet theDataSet; .. public Form1(DataSet dataSet) { this.theDataSet = dataSet; //now populate the column names by going each column of the dataset and getting the names } .. Main form: Form1 theForm = new Form1(theDataSet); theForm.Show(); that is an example. if you don't have a dataset bound to your datagrid ...Show All
